Java com.google.common.collect Multimap fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect Multimap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect Multimap.

The text is from its open source code.

Implementation

com.google.common.collect.Multimap has the following implementations.
Click this link to see all its implementation.

Constructor

Method

Map>asMap()
Returns a view of this multimap as a Map from each distinct key to the nonempty collection of that key's associated values.
voidclear()
Removes all key-value pairs from the multimap, leaving it #isEmpty empty .
booleancontainsEntry(@Nullable Object key, @Nullable Object value)
Returns true if this multimap contains at least one key-value pair with the key key and the value value .
booleancontainsKey(@Nullable Object key)
Returns true if this multimap contains at least one key-value pair with the key key .
booleancontainsValue(@Nullable Object value)
Returns true if this multimap contains at least one key-value pair with the value value .
Collection>entries()
Returns a view collection of all key-value pairs contained in this multimap, as Map.Entry instances.
booleanequals(@Nullable Object obj)
Compares the specified object with this multimap for equality.
Collectionget(@Nullable K key)
Returns a view collection of the values associated with key in this multimap, if any.
ClassgetClass()
Returns the runtime class of this Object .
booleanisEmpty()
Returns true if this multimap contains no key-value pairs.
Multisetkeys()
Returns a view collection containing the key from each key-value pair in this multimap, without collapsing duplicates.
SetkeySet()
Returns a view collection of all distinct keys contained in this multimap.
booleanput(@Nullable K key, @Nullable V value)
Stores a key-value pair in this multimap.
booleanputAll(Multimap multimap)
Stores all key-value pairs of multimap in this multimap, in the order returned by multimap.entries() .
booleanputAll(@Nullable K key, Iterable values)
Stores a key-value pair in this multimap for each of values , all using the same key, key .
booleanremove(@Nullable Object key, @Nullable Object value)
Removes a single key-value pair with the key key and the value value from this multimap, if such exists.
CollectionremoveAll(@Nullable Object key)
Removes all values associated with the key key .
CollectionreplaceValues(@Nullable K key, Iterable values)
Stores a collection of values with the same key, replacing any existing values for that key.
intsize()
Returns the number of key-value pairs in this multimap.
StringtoString()
Returns a string representation of the object.
Collectionvalues()
Returns a view collection containing the value from each key-value pair contained in this multimap, without collapsing duplicates (so values().size() == size() ).