Top Description Fields Constructors Methods
com.google.common.collect

pack-priv final Class FilteredKeyListMultimap<K extends @Nullable Object, V extends @Nullable Object>

extends FilteredKeyMultimap<K extends @Nullable Object, V extends @Nullable Object>
implements ListMultimap<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance
All Implemented Interfaces
com.google.common.collect.ListMultimap, com.google.common.collect.Multimap
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, com.google.common.base.Predicate, java.util.List, javax.annotation.CheckForNull, org.checkerframework.checker.nullness.qual.Nullable

Implementation of Multimaps#filterKeys(ListMultimap, Predicate).
Author
Louis Wasserman

Field Summary

Inherited from com.google.common.collect.FilteredKeyMultimap:
keyPredicateunfiltered

Constructor Summary

AccessConstructor and Description
pack-priv
FilteredKeyListMultimap(ListMultimap<K, V> unfiltered, Predicate<? super K> keyPredicate)

Method Summary

Modifier and TypeMethod and Description
public List<V>
get(K key)

Overrides com.google.common.collect.FilteredKeyMultimap.get.

Implements com.google.common.collect.ListMultimap.get, com.google.common.collect.Multimap.get.

Returns a view collection of the values associated with key in this multimap, if any.
public List<V>
public List<V>
replaceValues(K key, Iterable<? extends V> values)

Overrides com.google.common.collect.AbstractMultimap.replaceValues.

Implements com.google.common.collect.ListMultimap.replaceValues, com.google.common.collect.Multimap.replaceValues.

Stores a collection of values with the same key, replacing any existing values for that key.
public ListMultimap<K, V>
Inherited from com.google.common.collect.FilteredKeyMultimap:
clearcontainsKeycreateAsMapcreateEntriescreateKeyscreateKeySetcreateValuesentryIteratorentryPredicatesizeunmodifiableEmptyCollection

Constructor Detail

FilteredKeyListMultimapback to summary
pack-priv FilteredKeyListMultimap(ListMultimap<K, V> unfiltered, Predicate<? super K> keyPredicate)

Method Detail

getback to summary
public List<V> get(K key)

Overrides com.google.common.collect.FilteredKeyMultimap.get.

Implements com.google.common.collect.ListMultimap.get, com.google.common.collect.Multimap.get.

Doc from com.google.common.collect.ListMultimap.get.

Returns a view collection of the values associated with key in this multimap, if any. Note that when containsKey(key) is false, this returns an empty collection, not null.

Changes to the returned collection will update the underlying multimap, and vice versa.

Because the values for a given key may have duplicates and follow the insertion ordering, this method returns a List, instead of the java.util.Collection specified in the Multimap interface.

Annotations
@Override
removeAllback to summary
public List<V> removeAll(Object key)

Overrides com.google.common.collect.FilteredKeyMultimap.removeAll.

Implements com.google.common.collect.ListMultimap.removeAll, com.google.common.collect.Multimap.removeAll.

Doc from com.google.common.collect.ListMultimap.removeAll.

Removes all values associated with the key key.

Once this method returns, key will not be mapped to any values, so it will not appear in keySet(), asMap(), or any other views.

Because the values for a given key may have duplicates and follow the insertion ordering, this method returns a List, instead of the java.util.Collection specified in the Multimap interface.

Returns:List<V>

Doc from com.google.common.collect.Multimap.removeAll.

the values that were removed (possibly empty). The returned collection may be modifiable, but updating it will have no effect on the multimap.

Annotations
@Override
replaceValuesback to summary
public List<V> replaceValues(K key, Iterable<? extends V> values)

Overrides com.google.common.collect.AbstractMultimap.replaceValues.

Implements com.google.common.collect.ListMultimap.replaceValues, com.google.common.collect.Multimap.replaceValues.

Doc from com.google.common.collect.ListMultimap.replaceValues.

Stores a collection of values with the same key, replacing any existing values for that key.

If values is empty, this is equivalent to removeAll(key).

Because the values for a given key may have duplicates and follow the insertion ordering, this method returns a List, instead of the java.util.Collection specified in the Multimap interface.

Returns:List<V>

Doc from com.google.common.collect.Multimap.replaceValues.

the collection of replaced values, or an empty collection if no values were previously associated with the key. The collection may be modifiable, but updating it will have no effect on the multimap.

Annotations
@Override
unfilteredback to summary
public ListMultimap<K, V> unfiltered()

Overrides com.google.common.collect.FilteredKeyMultimap.unfiltered.

Implements com.google.common.collect.FilteredMultimap.unfiltered.

Annotations
@Override