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.WrappedSortedSetAbstractMultimap.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, wrapCollectionentries, equals, putclear, containsKey, createAsMap, createCollection, createEntries, createKeys, createMaybeNavigableAsMap, createMaybeNavigableKeySet, createValues, entryIterator, entrySpliterator, forEach, setMap, size, valueIterator, valueSpliterator, wrapListcontainsEntry, containsValue, hashCode, isEmpty, keys, putAll, putAll, remove, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitvalueComparatorentries, equalsclear, containsEntry, containsKey, containsValue, forEach, 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.
java.util.Set<K> createKeySet()
createKeySet in class AbstractMapBasedMultimap<K,V>