@GwtCompatible abstract class AbstractSortedKeySortedSetMultimap<K,V> extends AbstractSortedSetMultimap<K,V>
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.
AbstractMapBasedMultimap.NavigableAsMap, AbstractMapBasedMultimap.NavigableKeySet, AbstractMapBasedMultimap.WrappedCollection, AbstractMapBasedMultimap.WrappedList, AbstractMapBasedMultimap.WrappedNavigableSet, AbstractMapBasedMultimap.WrappedSet, AbstractMapBasedMultimap.WrappedSortedSet
AbstractMultimap.Entries, AbstractMultimap.EntrySet, AbstractMultimap.Values
Constructor and Description |
---|
AbstractSortedKeySortedSetMultimap(java.util.SortedMap<K,java.util.Collection<V>> map) |
Modifier and Type | Method and Description |
---|---|
java.util.SortedMap<K,java.util.Collection<V>> |
asMap()
Returns a map view that associates each key with the corresponding values in the multimap.
|
(package private) java.util.SortedMap<K,java.util.Collection<V>> |
backingMap() |
(package private) java.util.Set<K> |
createKeySet() |
java.util.SortedSet<K> |
keySet()
Returns a view collection of all distinct keys contained in this multimap.
|
createCollection, createUnmodifiableEmptyCollection, get, removeAll, replaceValues, unmodifiableCollectionSubclass, values, wrapCollection
entries, equals, put
clear, containsKey, createAsMap, createCollection, createEntries, createKeys, createMaybeNavigableAsMap, createMaybeNavigableKeySet, createValues, entryIterator, entrySpliterator, forEach, setMap, size, valueIterator, valueSpliterator, wrapList
containsEntry, containsValue, hashCode, isEmpty, keys, putAll, putAll, remove, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
valueComparator
entries, equals
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, put, putAll, putAll, remove, size
public java.util.SortedMap<K,java.util.Collection<V>> asMap()
AbstractSortedSetMultimap
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 AbstractSortedSetMultimap.get(K)
, 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.
java.util.SortedMap<K,java.util.Collection<V>> backingMap()
backingMap
in class AbstractMapBasedMultimap<K,V>
public java.util.SortedSet<K> keySet()
Multimap
Changes to the returned set will update the underlying multimap, and vice versa. However, adding to the returned set is not possible.
java.util.Set<K> createKeySet()
createKeySet
in class AbstractMapBasedMultimap<K,V>