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

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

extends FilteredEntryMultimap<K extends @Nullable Object, V extends @Nullable Object>
implements FilteredSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance
All Implemented Interfaces
com.google.common.collect.FilteredSetMultimap, com.google.common.collect.SetMultimap, com.google.common.collect.Multimap, com.google.common.collect.FilteredMultimap
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, com.google.common.base.Predicate, java.util.Map.Entry, .Set, javax.annotation.CheckForNull, org.checkerframework.checker.nullness.qual.Nullable

Implementation of Multimaps#filterEntries(SetMultimap, Predicate).
Author
Louis Wasserman

Field Summary

Inherited from com.google.common.collect.FilteredEntryMultimap:
predicateunfiltered

Constructor Summary

AccessConstructor and Description
pack-priv
FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> predicate)

Method Summary

Modifier and TypeMethod and Description
pack-priv Set<Map.Entry<K, V>>
public Set<Map.Entry<K, V>>
entries()

Overrides com.google.common.collect.AbstractMultimap.entries.

Implements com.google.common.collect.Multimap.entries, com.google.common.collect.SetMultimap.entries.

Returns a view collection of all key-value pairs contained in this multimap, as Entry instances.
public Set<V>
get(K key)

Overrides com.google.common.collect.FilteredEntryMultimap.get.

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

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

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

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

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

Constructor Detail

FilteredEntrySetMultimapback to summary
pack-priv FilteredEntrySetMultimap(SetMultimap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> predicate)

Method Detail

createEntriesback to summary
pack-priv Set<Map.Entry<K, V>> createEntries()

Overrides com.google.common.collect.FilteredEntryMultimap.createEntries.

Annotations
@Override
entriesback to summary
public Set<Map.Entry<K, V>> entries()

Overrides com.google.common.collect.AbstractMultimap.entries.

Implements com.google.common.collect.Multimap.entries, com.google.common.collect.SetMultimap.entries.

Doc from com.google.common.collect.SetMultimap.entries.

Returns a view collection of all key-value pairs contained in this multimap, as Entry instances.

Changes to the returned collection or the entries it contains will update the underlying multimap, and vice versa. However, adding to the returned collection is not possible.

Because a SetMultimap has unique values for a given key, this method returns a Set, instead of the java.util.Collection specified in the Multimap interface.

Annotations
@Override
getback to summary
public Set<V> get(K key)

Overrides com.google.common.collect.FilteredEntryMultimap.get.

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

Doc from com.google.common.collect.SetMultimap.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 a SetMultimap has unique values for a given key, this method returns a Set, instead of the java.util.Collection specified in the Multimap interface.

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

Overrides com.google.common.collect.FilteredEntryMultimap.removeAll.

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

Doc from com.google.common.collect.SetMultimap.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 a SetMultimap has unique values for a given key, this method returns a Set, instead of the java.util.Collection specified in the Multimap interface.

Returns:Set<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 Set<V> replaceValues(K key, Iterable<? extends V> values)

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

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

Doc from com.google.common.collect.SetMultimap.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 a SetMultimap has unique values for a given key, this method returns a Set, instead of the java.util.Collection specified in the Multimap interface.

Any duplicates in values will be stored in the multimap once.

Returns:Set<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 SetMultimap<K, V> unfiltered()

Overrides com.google.common.collect.FilteredEntryMultimap.unfiltered.

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

Annotations
@Override