@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.WrappedNavigableSetAbstractMultimap.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() |
java.util.SortedSet<K> |
keySet()
Returns a view collection of all distinct keys contained in this
multimap.
|
createCollection, createUnmodifiableEmptyCollection, get, removeAll, replaceValues, valuesentries, equals, putclear, containsKey, createAsMap, createCollection, createKeySet, entryIterator, setMap, size, unmodifiableCollectionSubclass, valueIterator, wrapCollectioncontainsEntry, containsValue, createEntries, createKeys, createValues, hashCode, isEmpty, keys, putAll, putAll, remove, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitvalueComparatorentries, equalsclear, containsEntry, containsKey, containsValue, hashCode, isEmpty, keys, put, putAll, putAll, remove, sizepublic java.util.SortedMap<K,java.util.Collection<V>> asMap()
AbstractSortedSetMultimapsetValue
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()
MultimapChanges to the returned set will update the underlying multimap, and vice versa. However, adding to the returned set is not possible.