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

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

Introduction

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

The text is from its open source code.

Implementation

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

Method

Map>asMap()

Note: The returned map's values are guaranteed to be of type Set .

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 .
Set>entries()

Because a SetMultimap has unique values for a given key, this method returns a Set , instead of the java.util.Collection specified in the Multimap interface.

Setget(@Nullable K key)

Because a SetMultimap has unique values for a given key, this method returns a Set , instead of the java.util.Collection specified in the Multimap interface.

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.
SetremoveAll(@Nullable Object key)

Because a SetMultimap has unique values for a given key, this method returns a Set , instead of the java.util.Collection specified in the Multimap interface.

SetreplaceValues(K key, Iterable values)

Because a SetMultimap has unique values for a given key, this method returns a Set , instead of the java.util.Collection specified in the Multimap interface.

intsize()
Returns the number of key-value pairs in this multimap.
Collectionvalues()
Returns a view collection containing the value from each key-value pair contained in this multimap, without collapsing duplicates (so values().size() == size() ).