Class AbstractSynchronizedPutMultimap<K,V,C extends MutableCollection<V>>
- java.lang.Object
-
- org.eclipse.collections.impl.multimap.AbstractMultimap<K,V,C>
-
- org.eclipse.collections.impl.multimap.AbstractMutableMultimap<K,V,C>
-
- org.eclipse.collections.impl.multimap.AbstractSynchronizedPutMultimap<K,V,C>
-
- All Implemented Interfaces:
Multimap<K,V>,MutableMultimap<K,V>
- Direct Known Subclasses:
SynchronizedPutFastListMultimap,SynchronizedPutHashBagMultimap,SynchronizedPutTreeSortedSetMultimap,SynchronizedPutUnifiedSetMultimap
public abstract class AbstractSynchronizedPutMultimap<K,V,C extends MutableCollection<V>> extends AbstractMutableMultimap<K,V,C>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetIfAbsentPutAll(K key, Iterable<? extends V> values)booleanput(K key, V value)intsize()Use the size method directly instead of totalSize internally so subclasses can override if necessary.MutableMultimap<K,V>withKeyMultiValues(K key, V... values)-
Methods inherited from class org.eclipse.collections.impl.multimap.AbstractMutableMultimap
clear, get, isEmpty, keySet, putAll, putAll, readExternal, remove, removeAll, replaceValues, sizeDistinct, toMap, toMap, writeExternal
-
Methods inherited from class org.eclipse.collections.impl.multimap.AbstractMultimap
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesView
-
Methods inherited from interface org.eclipse.collections.api.multimap.Multimap
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
-
Methods inherited from interface org.eclipse.collections.api.multimap.MutableMultimap
add, asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, newEmpty, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, withKeyValue
-
-
-
-
Method Detail
-
size
public int size()
Description copied from class:AbstractMutableMultimapUse the size method directly instead of totalSize internally so subclasses can override if necessary.
-
put
public boolean put(K key, V value)
- Specified by:
putin interfaceMutableMultimap<K,V>- Overrides:
putin classAbstractMutableMultimap<K,V,C extends MutableCollection<V>>
-
withKeyMultiValues
public MutableMultimap<K,V> withKeyMultiValues(K key, V... values)
-
getIfAbsentPutAll
public C getIfAbsentPutAll(K key, Iterable<? extends V> values)
- Specified by:
getIfAbsentPutAllin interfaceMutableMultimap<K,V>- Overrides:
getIfAbsentPutAllin classAbstractMutableMultimap<K,V,C extends MutableCollection<V>>
-
-