public abstract class AbstractMutableMultimap<K,V,C extends MutableCollection<V>> extends AbstractMultimap<K,V,C> implements MutableMultimap<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
C |
get(K key) |
C |
getIfAbsentPutAll(K key,
Iterable<? extends V> values) |
boolean |
isEmpty() |
SetIterable<K> |
keySet() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
Iterable<? extends V> values) |
<KK extends K,VV extends V> |
putAll(Multimap<KK,VV> multimap) |
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() |
MutableMap<K,RichIterable<V>> |
toMap() |
<R extends Collection<V>> |
toMap(Function0<R> collectionFactory) |
void |
writeExternal(ObjectOutput out) |
collectKeyMultiValues, collectKeysValues, collectValues, containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyMultiValues, forEachKeyValue, forEachValue, hashCode, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, toString, valuesViewadd, asSynchronized, collectKeyMultiValues, collectKeysValues, collectValues, flip, newEmpty, putAllPairs, putAllPairs, rejectKeysMultiValues, rejectKeysValues, selectKeysMultiValues, selectKeysValues, withKeyMultiValues, withKeyValuecollectKeyMultiValues, collectKeysValues, 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()
sizeDistinct in interface Multimap<K,V>public boolean remove(Object key, Object value)
remove in interface MutableMultimap<K,V>public boolean putAll(K key, Iterable<? extends V> values)
putAll in interface MutableMultimap<K,V>public <KK extends K,VV extends V> boolean putAll(Multimap<KK,VV> multimap)
putAll in interface MutableMultimap<K,V>public C replaceValues(K key, Iterable<? extends V> values)
replaceValues in interface MutableMultimap<K,V>public void clear()
clear in interface MutableMultimap<K,V>public C getIfAbsentPutAll(K key, Iterable<? extends V> values)
getIfAbsentPutAll in interface MutableMultimap<K,V>public MutableMap<K,RichIterable<V>> toMap()
public <R extends Collection<V>> MutableMap<K,R> toMap(Function0<R> collectionFactory)
public void writeExternal(ObjectOutput out) throws IOException
IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2004–2022. All rights reserved.