Multimap<K,V>, MutableMultimap<K,V>SynchronizedPutFastListMultimap, SynchronizedPutHashBagMultimap, SynchronizedPutTreeSortedSetMultimap, SynchronizedPutUnifiedSetMultimappublic abstract class AbstractSynchronizedPutMultimap<K,V,C extends MutableCollection<V>> extends AbstractMutableMultimap<K,V,C>
| Modifier and Type | Method | Description |
|---|---|---|
C |
getIfAbsentPutAll(K key,
Iterable<? extends V> values) |
Puts values into multimap if there are no values already associated with key.
|
boolean |
put(K key,
V value) |
|
int |
size() |
Use the size method directly instead of totalSize internally so subclasses can override if necessary.
|
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesViewclear, get, isEmpty, keySet, putAll, putAll, readExternal, remove, removeAll, replaceValues, sizeDistinct, toMap, toMap, writeExternalcollectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toImmutable, toMutable, valuesViewadd, asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, newEmpty, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValuespublic int size()
AbstractMutableMultimappublic boolean put(K key, V value)
put in interface MutableMultimap<K,V>put in class AbstractMutableMultimap<K,V,C extends MutableCollection<V>>public C getIfAbsentPutAll(K key, Iterable<? extends V> values)
MutableMultimapMultimap.get(Object)getIfAbsentPutAll in interface MutableMultimap<K,V>getIfAbsentPutAll in class AbstractMutableMultimap<K,V,C extends MutableCollection<V>>Copyright © 2004–2019. All rights reserved.