Package com.google.common.collect
Class AbstractSortedKeySortedSetMultimap<K,V>
java.lang.Object
com.google.common.collect.AbstractMultimap<K,V>
com.google.common.collect.AbstractMapBasedMultimap<K,V>
com.google.common.collect.AbstractSetMultimap<K,V>
com.google.common.collect.AbstractSortedSetMultimap<K,V>
com.google.common.collect.AbstractSortedKeySortedSetMultimap<K,V>
- All Implemented Interfaces:
Multimap<K,
,V> SetMultimap<K,
,V> SortedSetMultimap<K,
,V> Serializable
- Direct Known Subclasses:
TreeMultimap
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.AbstractMapBasedMultimap
AbstractMapBasedMultimap.WrappedCollection, AbstractMapBasedMultimap.WrappedList, AbstractMapBasedMultimap.WrappedNavigableSet, AbstractMapBasedMultimap.WrappedSet, AbstractMapBasedMultimap.WrappedSortedSet
Nested classes/interfaces inherited from class com.google.common.collect.AbstractMultimap
AbstractMultimap.Entries, AbstractMultimap.EntrySet, AbstractMultimap.Values
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.AbstractSortedSetMultimap
createCollection, createUnmodifiableEmptyCollection, get, removeAll, replaceValues, unmodifiableCollectionSubclass, values, wrapCollection
Methods inherited from class com.google.common.collect.AbstractSetMultimap
entries, equals, put
Methods inherited from class com.google.common.collect.AbstractMapBasedMultimap
clear, containsKey, createAsMap, createCollection, createEntries, createKeys, createMaybeNavigableAsMap, createMaybeNavigableKeySet, createValues, entryIterator, entrySpliterator, forEach, setMap, size, valueIterator, valueSpliterator, wrapList
Methods inherited from class com.google.common.collect.AbstractMultimap
containsEntry, containsValue, hashCode, isEmpty, keys, putAll, putAll, remove, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.collect.Multimap
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, put, putAll, putAll, remove, size
Methods inherited from interface com.google.common.collect.SetMultimap
entries, equals
Methods inherited from interface com.google.common.collect.SortedSetMultimap
valueComparator
-
Constructor Details
-
AbstractSortedKeySortedSetMultimap
AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map)
-
-
Method Details
-
asMap
Description copied from class:AbstractSortedSetMultimap
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 supportsetValue
on its entries,put
, orputAll
.When passed a key that is present in the map,
asMap().get(Object)
has the same behavior asAbstractSortedSetMultimap.get(K)
, returning a live collection. When passed a key that is not present, however,asMap().get(Object)
returnsnull
instead of an empty collection.Though the method signature doesn't say so explicitly, the returned map has
SortedSet
values. -
backingMap
SortedMap<K,Collection<V>> backingMap()- Overrides:
backingMap
in classAbstractMapBasedMultimap<K,
V>
-
keySet
Description copied from interface:Multimap
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.
-
createKeySet
- Overrides:
createKeySet
in classAbstractMapBasedMultimap<K,
V>
-