Top Description Constructors Methods
com.google.common.collect

pack-priv abstract Class AbstractSortedKeySortedSetMultimap<K extends @Nullable Object, V extends @Nullable Object>

extends AbstractSortedSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
Class Inheritance
Known Direct Subclasses
com.google.common.collect.TreeMultimap
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, java.util.Collection, .Set, .SortedMap, .SortedSet, org.checkerframework.checker.nullness.qual.Nullable

Basic implementation of a SortedSetMultimap with a sorted key set.

This superclass allows TreeMultimap to override methods to return navigable set and map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides.

Author
Louis Wasserman

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public SortedMap<K, Collection<V>>
pack-priv SortedMap<K, Collection<V>>
pack-priv Set<K>
public SortedSet<K>
keySet()

Overrides com.google.common.collect.AbstractMultimap.keySet.

Implements com.google.common.collect.Multimap.keySet.

Returns a view collection of all distinct keys contained in this multimap.
Inherited from com.google.common.collect.AbstractSortedSetMultimap:
createCollectioncreateUnmodifiableEmptyCollectiongetremoveAllreplaceValuesunmodifiableCollectionSubclassvalueswrapCollection

Constructor Detail

AbstractSortedKeySortedSetMultimapback to summary
pack-priv AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map)

Method Detail

asMapback to summary
public SortedMap<K, Collection<V>> asMap()

Overrides com.google.common.collect.AbstractSortedSetMultimap.asMap.

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

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

Returns a map view that associates each key with the corresponding values in the multimap. Changes to the returned map, such as element removal, will update the underlying multimap. The map does not support setValue on its entries, put, or putAll.

When passed a key that is present in the map, asMap().get(Object) has the same behavior as get, returning a live collection. When passed a key that is not present, however, asMap().get(Object) returns null instead of an empty collection.

Though the method signature doesn't say so explicitly, the returned map has SortedSet values.

Annotations
@Override
backingMapback to summary
pack-priv SortedMap<K, Collection<V>> backingMap()

Overrides com.google.common.collect.AbstractMapBasedMultimap.backingMap.

Annotations
@Override
createKeySetback to summary
pack-priv Set<K> createKeySet()

Overrides com.google.common.collect.AbstractMapBasedMultimap.createKeySet.

Annotations
@Override
keySetback to summary
public SortedSet<K> keySet()

Overrides com.google.common.collect.AbstractMultimap.keySet.

Implements com.google.common.collect.Multimap.keySet.

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

Returns a view collection of all distinct keys contained in this multimap. Note that the key set contains a key if and only if this multimap maps that key to at least one value.

Changes to the returned set will update the underlying multimap, and vice versa. However, adding to the returned set is not possible.

Annotations
@Override