Interface Multimap<K,​V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears the multimap
      java.util.Collection<java.util.Map.Entry<K,​java.util.Collection<V>>> entrySet()
      Get all associations of the multimap.
      java.util.Collection<V> get​(K key)
      Get all values associated with the key
      boolean isEmpty()
      Checks if multimap is empty
      java.util.Collection<K> keys()
      Keys in the map
      void merge​(Multimap<K,​V> other)  
      void put​(K key, V value)
      Put the element pair.
      void putAll​(K k, java.util.Collection<V> vs)
      Put multiple pairs.
      void remove​(K key)  
      java.util.Collection<V> values()  
    • Method Detail

      • put

        void put​(K key,
                 V value)
        Put the element pair.
        Parameters:
        key - key
        value - value
      • putAll

        void putAll​(K k,
                    java.util.Collection<V> vs)
        Put multiple pairs.
        Parameters:
        k - key
        vs - values
      • get

        java.util.Collection<V> get​(K key)
        Get all values associated with the key
        Parameters:
        key - key
        Returns:
        collection of values
      • entrySet

        java.util.Collection<java.util.Map.Entry<K,​java.util.Collection<V>>> entrySet()
        Get all associations of the multimap. The method is intended for read-only view.
        Returns:
        entry set of the multimap
      • isEmpty

        boolean isEmpty()
        Checks if multimap is empty
        Returns:
        true, if empty
      • clear

        void clear()
        Clears the multimap
      • keys

        java.util.Collection<K> keys()
        Keys in the map
        Returns:
        collection of keys
      • values

        java.util.Collection<V> values()
      • remove

        void remove​(K key)