@GwtCompatible public abstract class ForwardingListMultimap<K,V> extends ForwardingMultimap<K,V> implements ListMultimap<K,V>
| Modifier and Type | Method and Description |
|---|---|
List<V> |
get(K key)
Returns a collection view containing the values associated with
key
in this multimap, if any. |
List<V> |
removeAll(Object key)
Removes all values associated with a given key.
|
List<V> |
replaceValues(K key,
Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing
values for that key.
|
asMap, clear, containsEntry, containsKey, containsValue, entries, equals, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, valuestoStringasMap, equalspublic List<V> get(@Nullable K key)
Multimapkey
in this multimap, if any. Note that even when (containsKey(key) is
false, get(key) still returns an empty collection, not null.
Changes to the returned collection will update the underlying multimap, and vice versa.
public List<V> removeAll(@Nullable Object key)
MultimapOnce this method returns, key will not be mapped to any values,
so it will not appear in Multimap.keySet(), Multimap.asMap(), or any other
views.
removeAll in interface ListMultimap<K,V>removeAll in interface Multimap<K,V>removeAll in class ForwardingMultimap<K,V>key - key of entries to remove from the multimappublic List<V> replaceValues(K key, Iterable<? extends V> values)
MultimapIf values is empty, this is equivalent to
removeAll(key).
replaceValues in interface ListMultimap<K,V>replaceValues in interface Multimap<K,V>replaceValues in class ForwardingMultimap<K,V>key - key to store in the multimapvalues - values to store in the multimapCopyright © 2010 - 2020 Adobe. All Rights Reserved