public interface MutableMultimap<K,V> extends Multimap<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
MutableCollection<V> |
get(K key)
Returns a view of all values associated with the given key.
|
MutableMultimap<K,V> |
newEmpty()
Creates a new instance of the same implementation type, using the default capacity and growth parameters.
|
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) |
boolean |
putAllPairs(Pair<K,V>... pairs) |
boolean |
remove(Object key,
Object value) |
RichIterable<V> |
removeAll(Object key) |
RichIterable<V> |
replaceValues(K key,
Iterable<? extends V> values) |
containsKey, containsKeyAndValue, containsValue, equals, forEachKey, forEachKeyValue, forEachValue, hashCode, isEmpty, keyBag, keyMultiValuePairsView, keysView, keyValuePairsView, multiValuesView, notEmpty, size, sizeDistinct, toImmutable, toMap, toMap, toMutable, valuesView
MutableMultimap<K,V> newEmpty()
Multimap
MutableCollection<V> get(K key)
Multimap
RichIterable
is returned.RichIterable<V> replaceValues(K key, Iterable<? extends V> values)
RichIterable<V> removeAll(Object key)
void clear()
Copyright © 2004–2018. All rights reserved.