public abstract class AbstractMutableMultimap<K,V,C extends org.eclipse.collections.api.collection.MutableCollection<V>> extends AbstractMultimap<K,V,C> implements org.eclipse.collections.api.multimap.MutableMultimap<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.eclipse.collections.api.tuple.Pair<K,V> keyValuePair) |
void |
clear() |
C |
get(K key) |
boolean |
isEmpty() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
Iterable<? extends V> values) |
<KK extends K,VV extends V> |
putAll(org.eclipse.collections.api.multimap.Multimap<KK,VV> multimap) |
boolean |
putAllPairs(org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
void |
readExternal(ObjectInput in) |
boolean |
remove(Object key,
Object value) |
C |
removeAll(Object key) |
C |
replaceValues(K key,
Iterable<? extends V> values) |
int |
size()
Use the size method directly instead of totalSize internally so subclasses can override if necessary.
|
int |
sizeDistinct() |
org.eclipse.collections.api.map.MutableMap<K,org.eclipse.collections.api.RichIterable<V>> |
toMap() |
<R extends Collection<V>> |
toMap(org.eclipse.collections.api.block.function.Function0<R> collectionFactory) |
void |
writeExternal(ObjectOutput out) |
collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesViewcollectKeysValues, collectValues, flip, newEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValuescollectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toImmutable, toMutable, valuesViewpublic int size()
public int sizeDistinct()
public boolean isEmpty()
public <KK extends K,VV extends V> boolean putAll(org.eclipse.collections.api.multimap.Multimap<KK,VV> multimap)
public void clear()
public org.eclipse.collections.api.map.MutableMap<K,org.eclipse.collections.api.RichIterable<V>> toMap()
public <R extends Collection<V>> org.eclipse.collections.api.map.MutableMap<K,R> toMap(org.eclipse.collections.api.block.function.Function0<R> collectionFactory)
public void writeExternal(ObjectOutput out) throws IOException
IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2004–2017. All rights reserved.