| Modifier and Type | Field and Description |
|---|---|
| protected MutableMap | |
| protected int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | AbstractMutableMultimap(Pair<K, V>...
the mappings to initialize the multimap. pairs) |
| protected | AbstractMutableMultimap(Iterable<Pair<K, V>>
the mappings to initialize the multimap. inputIterable) |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | |
| protected void | |
| protected abstract MutableMap | |
| protected abstract MutableMap | |
| protected void | |
| public C | get(K key)
Implements org. Returns a view of all values associated with the given key. |
| public C | getIfAbsentPutAll(K key, Iterable<? extends V> values)
Implements org. Puts values into multimap if there are no values already associated with key. |
| private C | |
| protected MutableMap | |
| protected void | |
| public boolean | isEmpty()
Implements org. Returns |
| public SetIterable | keySet()
Implements org. Returns an unmodifiable |
| public boolean | |
| public boolean | putAll(K key, Iterable<? extends V> values)
Implements org.
|
| public <KK extends K, VV extends V> boolean | putAll(Multimap<KK, VV> multimap)
Implements org.
|
| private <KK extends K, VV extends V> boolean | |
| private boolean | |
| private <KK extends K, VV extends V> boolean | |
| public void | |
| pack-priv void | |
| public boolean | remove(Object key, Object value)
Implements org.
|
| public C | |
| public C | replaceValues(K key, Iterable<? extends V> values)
Implements org.
|
| public int | size()
Implements org. Use the size method directly instead of totalSize internally so subclasses can override if necessary. |
| public int | sizeDistinct()
Implements org. Returns the number of distinct keys. |
| protected void | subtractFromTotalSize(int value)
This method is provided to allow for subclasses to provide the behavior. |
| public MutableMap | toMap()
Implements org. Returns a new |
| public <R extends Collection | toMap(Function0<R> collectionFactory)
Implements org. Returns a new |
| public void |
| map | back to summary |
|---|---|
| protected MutableMap<K, C> map | |
| totalSize | back to summary |
|---|---|
| protected int totalSize | |
| AbstractMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap() | |
| AbstractMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap(MutableMap<K, C> newMap) | |
| AbstractMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap(int size) | |
| AbstractMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap(Pair<K, V>... pairs) Constructs a
| |
| AbstractMutableMultimap | back to summary |
|---|---|
| protected AbstractMutableMultimap(Iterable<Pair<K, V>> inputIterable) | |
| addToTotalSize | back to summary |
|---|---|
| protected void addToTotalSize(int value) This method is provided to allow for subclasses to provide the behavior. It should add the specified amount to the value that is returned by calling size(). | |
| clear | back to summary |
|---|---|
| public void clear() Implements org.
| |
| clearTotalSize | back to summary |
|---|---|
| protected void clearTotalSize() This method is provided to allow for subclasses to provide the behavior. It should set the value returned by size() to 0. | |
| createMap | back to summary |
|---|---|
| protected abstract MutableMap | |
| createMapWithKeyCount | back to summary |
|---|---|
| protected abstract MutableMap | |
| decrementTotalSize | back to summary |
|---|---|
| protected void decrementTotalSize() This method is provided to allow for subclasses to provide the behavior. It should remove 1 from the value that is returned by calling size(). | |
| 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
| |
| getIfAbsentPutAll | back to summary |
|---|---|
| public C getIfAbsentPutAll(K key, Iterable<? extends V> values) Implements org. Doc from org. Puts values into multimap if there are no values already associated with key.
Then returns a view of the values associated with key, like the result of
| |
| getIfAbsentPutCollection | back to summary |
|---|---|
| private C getIfAbsentPutCollection(K key) | |
| getMap | back to summary |
|---|---|
| protected MutableMap Implements abstract org.
| |
| incrementTotalSize | back to summary |
|---|---|
| protected void incrementTotalSize() This method is provided to allow for subclasses to provide the behavior. It should add 1 to the value that is returned by calling size(). | |
| 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
| |
| put | back to summary |
|---|---|
| public boolean put(K key, V value) Implements org.
| |
| putAll | back to summary |
|---|---|
| public boolean putAll(K key, Iterable<? extends V> values) Implements org.
| |
| putAll | back to summary |
|---|---|
| public <KK extends K, VV extends V> boolean putAll(Multimap<KK, VV> multimap) Implements org.
| |
| putAllAbstractMutableMultimap | back to summary |
|---|---|
| private <KK extends K, VV extends V> boolean putAllAbstractMutableMultimap(AbstractMutableMultimap<KK, VV, MutableCollection<VV>> other) | |
| putAllNotEmpty | back to summary |
|---|---|
| private boolean putAllNotEmpty(K key, Iterable<? extends V> values) | |
| putAllReadOnlyMultimap | back to summary |
|---|---|
| private <KK extends K, VV extends V> boolean putAllReadOnlyMultimap(Multimap<KK, VV> multimap) | |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException | |
| readValuesFrom | back to summary |
|---|---|
| pack-priv void readValuesFrom(ObjectInput in) throws IOException, ClassNotFoundException | |
| remove | back to summary |
|---|---|
| public boolean remove(Object key, Object value) Implements org.
| |
| removeAll | back to summary |
|---|---|
| public C removeAll(Object key) Implements org.
| |
| replaceValues | back to summary |
|---|---|
| public C replaceValues(K key, Iterable<? extends V> values) Implements org.
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Use the size method directly instead of totalSize internally so subclasses can override if necessary.
| |
| sizeDistinct | back to summary |
|---|---|
| public int sizeDistinct() Implements org. Doc from org. Returns the number of distinct keys.
| |
| subtractFromTotalSize | back to summary |
|---|---|
| protected void subtractFromTotalSize(int value) This method is provided to allow for subclasses to provide the behavior. It should subtract the specified amount from the value that is returned by calling size(). | |
| 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
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException | |