| Modifier and Type | Field and Description |
|---|---|
| protected final ImmutableMap |
| Access | Constructor and Description |
|---|---|
| protected | AbstractImmutableMultimap(MutableMap<K, C>
place to store the mapping from each key to its corresponding values map)Creates a new multimap that clones the provided map into an ImmutableMap. |
| protected | AbstractImmutableMultimap(ImmutableMap<K, C>
place to store the mapping from each key to its corresponding values immutableMap)Creates a new multimap that uses the provided immutableMap. |
| Modifier and Type | Method and Description |
|---|---|
| public C | get(K key)
Implements org. Returns a view of all values associated with the given key. |
| protected ImmutableMap | |
| public boolean | isEmpty()
Implements org. Returns |
| public SetIterable | keySet()
Implements org. Returns an unmodifiable |
| protected Object | |
| public int | size()
Implements org. Returns the number of key-value entry pairs. |
| public int | sizeDistinct()
Implements org. Returns the number of distinct keys. |
| public ImmutableMultimap | toImmutable()
Implements org. Returns an immutable copy of this Multimap if it is not already immutable. |
| public MutableMap | toMap()
Implements org. Returns a new |
| public <R extends Collection | toMap(Function0<R> collectionFactory)
Implements org. Returns a new |
| map | back to summary |
|---|---|
| protected final ImmutableMap<K, C> map | |
| AbstractImmutableMultimap | back to summary |
|---|---|
| protected AbstractImmutableMultimap(MutableMap<K, C> map) Creates a new multimap that clones the provided map into an ImmutableMap.
| |
| AbstractImmutableMultimap | back to summary |
|---|---|
| protected AbstractImmutableMultimap(ImmutableMap<K, C> immutableMap) Creates a new multimap that uses the provided immutableMap.
| |
| get | back to summary |
|---|---|
| public C get(K key) Implements org. Doc from org. Returns a view of all values associated with the given key. If the given key does not exist, an empty
| |
| getMap | back to summary |
|---|---|
| protected ImmutableMap Implements abstract org.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Returns
| |
| keySet | back to summary |
|---|---|
| public SetIterable Implements org. Doc from org. Returns an unmodifiable
| |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() throws ObjectStreamException | |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns the number of key-value entry pairs. This method is implemented with O(1) (constant-time) performance.
| |
| sizeDistinct | back to summary |
|---|---|
| public int sizeDistinct() Implements org. Doc from org. Returns the number of distinct keys.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableMultimap Implements org. Doc from org. Returns an immutable copy of this Multimap if it is not already immutable. If the Multimap is immutable, it will return itself. The returned Multimap will be
| |
| toMap | back to summary |
|---|---|
| public MutableMap Implements org. Doc from org. Returns a new
| |
| toMap | back to summary |
|---|---|
| public <R extends Collection Implements org. Doc from org. Returns a new
| |