Multimap<K,V>
, MutableMultimap<K,V>
SynchronizedPutFastListMultimap
, SynchronizedPutHashBagMultimap
, SynchronizedPutTreeSortedSetMultimap
, SynchronizedPutUnifiedSetMultimap
public 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, valuesView
clear, get, isEmpty, keySet, putAll, putAll, readExternal, remove, removeAll, replaceValues, sizeDistinct, toMap, toMap, writeExternal
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toImmutable, toMutable, valuesView
add, asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, newEmpty, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues
public int size()
AbstractMutableMultimap
public 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)
MutableMultimap
Multimap.get(Object)
getIfAbsentPutAll
in interface MutableMultimap<K,V>
getIfAbsentPutAll
in class AbstractMutableMultimap<K,V,C extends MutableCollection<V>>
Copyright © 2004–2019. All rights reserved.