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

pack-priv Class EmptyImmutableSetMultimap

extends ImmutableSetMultimap<Object, Object>
Class Inheritance
Annotations
@GwtCompatible
serializable:true
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, java.util.Collection

Implementation of ImmutableListMultimap with no entries.
Author
Mike Ward

Field Summary

Modifier and TypeField and Description
pack-priv static final EmptyImmutableSetMultimap
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ImmutableMap<Object, Collection<Object>>
asMap()

Overrides com.google.common.collect.ImmutableMultimap.asMap.

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

Returns a view of this multimap as a Map from each distinct key to the nonempty collection of that key's associated values.
private Object
Inherited from com.google.common.collect.ImmutableSetMultimap:
buildercopyOfcopyOfentriesflatteningToImmutableSetMultimapfromMapEntriesgetinverseofofofofofofremoveAllreplaceValuestoImmutableSetMultimapvalueComparator

Field Detail

INSTANCEback to summary
pack-priv static final EmptyImmutableSetMultimap INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.google.common.collect.ImmutableSetMultimap.serialVersionUID.

Constructor Detail

EmptyImmutableSetMultimapback to summary
private EmptyImmutableSetMultimap()

Method Detail

asMapback to summary
public ImmutableMap<Object, Collection<Object>> asMap()

Overrides com.google.common.collect.ImmutableMultimap.asMap.

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

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

Returns a view of this multimap as a Map from each distinct key to the nonempty collection of that key's associated values. Note that this.asMap().get(k) is equivalent to this.get(k) only when k is a key contained in the multimap; otherwise it returns null as opposed to an empty collection.

Changes to the returned map or the collections that serve as its values will update the underlying multimap, and vice versa. The map does not support put or putAll, nor do its entries support setValue.

Note

The returned map's values are guaranteed to be of type Set. To obtain this map with the more specific generic type Map<K, Set<V>>, call Multimaps#asMap(SetMultimap) instead.

Annotations
@Override
readResolveback to summary
private Object readResolve()