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.WrappedSortedSetNested 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, wrapCollectionMethods inherited from class com.google.common.collect.AbstractSetMultimap
entries, equals, putMethods inherited from class com.google.common.collect.AbstractMapBasedMultimap
clear, containsKey, createAsMap, createCollection, createEntries, createKeys, createMaybeNavigableAsMap, createMaybeNavigableKeySet, createValues, entryIterator, entrySpliterator, forEach, setMap, size, valueIterator, valueSpliterator, wrapListMethods inherited from class com.google.common.collect.AbstractMultimap
containsEntry, containsValue, hashCode, isEmpty, keys, putAll, putAll, remove, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.collect.Multimap
clear, containsEntry, containsKey, containsValue, forEach, hashCode, isEmpty, keys, put, putAll, putAll, remove, sizeMethods inherited from interface com.google.common.collect.SetMultimap
entries, equalsMethods 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:AbstractSortedSetMultimapReturns 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 supportsetValueon 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)returnsnullinstead of an empty collection.Though the method signature doesn't say so explicitly, the returned map has
SortedSetvalues. -
backingMap
SortedMap<K,Collection<V>> backingMap()- Overrides:
backingMapin classAbstractMapBasedMultimap<K,V>
-
keySet
Description copied from interface:MultimapReturns 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:
createKeySetin classAbstractMapBasedMultimap<K,V>
-