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

pack-priv Class EmptyImmutableListMultimap

extends ImmutableListMultimap<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
Jared Levy

Field Summary

Modifier and TypeField and Description
pack-priv static final EmptyImmutableListMultimap
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.ListMultimap.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.ImmutableListMultimap:
buildercopyOfcopyOfflatteningToImmutableListMultimapfromMapEntriesgetinverseofofofofofofremoveAllreplaceValuestoImmutableListMultimap

Field Detail

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

Hides com.google.common.collect.ImmutableListMultimap.serialVersionUID.

Constructor Detail

EmptyImmutableListMultimapback to summary
private EmptyImmutableListMultimap()

Method Detail

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

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

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

Doc from com.google.common.collect.ListMultimap.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 List. To obtain this map with the more specific generic type Map<K, List<V>>, call Multimaps#asMap(ListMultimap) instead.

Annotations
@Override
readResolveback to summary
private Object readResolve()