Class BaseMultimap<K,​V,​C extends Collection<V>>

    • Constructor Detail

      • BaseMultimap

        public BaseMultimap()
    • Method Detail

      • removeAll

        public C removeAll​(Object key)
        Description copied from interface: Multimap
        Removes all values for the given key.
        Specified by:
        removeAll in interface Multimap<K,​V>
        Parameters:
        key - the key
        Returns:
        the collection of values associated with the key
      • replace

        public void replace​(K key,
                            Iterable<? extends V> values)
        Description copied from interface: Multimap
        Replaces the values for a given key with the given new values
        Specified by:
        replace in interface Multimap<K,​V>
        Parameters:
        key - the key
        values - the values
      • asMap

        public Map<K,​Collection<V>> asMap()
        Description copied from interface: Multimap
        A map representation of the multimap where the values are represented in a Collection.
        Specified by:
        asMap in interface Multimap<K,​V>
        Returns:
        the map
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object