Class AbstractMutableMultimap<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>
- All Implemented Interfaces:
Multimap<K,,V> MutableMultimap<K,V>
- Direct Known Subclasses:
AbstractMutableBagMultimap,AbstractMutableListMultimap,AbstractMutableSetMultimap,AbstractSynchronizedPutMultimap,TreeBagMultimap,TreeBagMultimap,TreeBagMultimap,TreeSortedSetMultimap
public abstract class AbstractMutableMultimap<K,V,C extends MutableCollection<V>>
extends AbstractMultimap<K,V,C>
implements MutableMultimap<K,V>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getIfAbsentPutAll(K key, Iterable<? extends V> values) booleanisEmpty()keySet()booleanbooleanvoidbooleanreplaceValues(K key, Iterable<? extends V> values) intsize()Use the size method directly instead of totalSize internally so subclasses can override if necessary.inttoMap()<R extends Collection<V>>
MutableMap<K,R> voidMethods 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, valuesViewMethods 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, valuesViewMethods inherited from interface org.eclipse.collections.api.multimap.MutableMultimap
add, asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, newEmpty, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, withKeyMultiValues, withKeyValue
-
Method Details
-
size
public int size()Use the size method directly instead of totalSize internally so subclasses can override if necessary. -
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceMultimap<K,V>
-
isEmpty
public boolean isEmpty() -
put
- Specified by:
putin interfaceMutableMultimap<K,V>
-
remove
- Specified by:
removein interfaceMutableMultimap<K,V>
-
putAll
- Specified by:
putAllin interfaceMutableMultimap<K,V>
-
putAll
- Specified by:
putAllin interfaceMutableMultimap<K,V>
-
replaceValues
- Specified by:
replaceValuesin interfaceMutableMultimap<K,V>
-
removeAll
- Specified by:
removeAllin interfaceMutableMultimap<K,V>
-
clear
public void clear()- Specified by:
clearin interfaceMutableMultimap<K,V>
-
keySet
-
get
-
getIfAbsentPutAll
- Specified by:
getIfAbsentPutAllin interfaceMutableMultimap<K,V>
-
toMap
-
toMap
-
writeExternal
- Throws:
IOException
-
readExternal
- Throws:
IOExceptionClassNotFoundException
-