Example usage for Java com.google.common.collect Multimap fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | clear() Removes all key-value pairs from the multimap, leaving it #isEmpty empty . |
boolean | containsEntry(@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 . |
boolean | containsKey(@Nullable Object key) Returns true if this multimap contains at least one key-value pair with the key key . |
boolean | containsValue(@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. |
boolean | equals(@Nullable Object obj) Compares the specified object with this multimap for equality. |
Collection | get(@Nullable K key) Returns a view collection of the values associated with key in this multimap, if any. |
Class> | getClass() Returns the runtime class of this Object . |
boolean | isEmpty() Returns true if this multimap contains no key-value pairs. |
Multiset | keys() Returns a view collection containing the key from each key-value pair in this multimap, without collapsing duplicates. |
Set | keySet() Returns a view collection of all distinct keys contained in this multimap. |
boolean | put(@Nullable K key, @Nullable V value) Stores a key-value pair in this multimap. |
boolean | putAll(Multimap extends K, ? extends V> multimap) Stores all key-value pairs of multimap in this multimap, in the order returned by multimap.entries() . |
boolean | putAll(@Nullable K key, Iterable extends V> values) Stores a key-value pair in this multimap for each of values , all using the same key, key . |
boolean | remove(@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. |
Collection | removeAll(@Nullable Object key) Removes all values associated with the key key . |
Collection | replaceValues(@Nullable K key, Iterable extends V> values) Stores a collection of values with the same key, replacing any existing values for that key. |
int | size() Returns the number of key-value pairs in this multimap. |
String | toString() Returns a string representation of the object. |
Collection | values() Returns a view collection containing the value from each key-value pair contained in this multimap, without collapsing duplicates (so values().size() == size() ). |