Package com.google.common.collect
Class AbstractMapBasedMultimap.AsMap
java.lang.Object
java.util.AbstractMap<K,V>
com.google.common.collect.Maps.ViewCachingAbstractMap<K,Collection<V>>
com.google.common.collect.AbstractMapBasedMultimap.AsMap
- All Implemented Interfaces:
Map<K,Collection<V>>
- Direct Known Subclasses:
AbstractMapBasedMultimap.SortedAsMap
- Enclosing class:
- AbstractMapBasedMultimap<K,
V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) classIterator across all keys and value collections.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Map<K,Collection<V>> Usually the same as map, but smaller for the headMap(), tailMap(), or subMap() of a SortedAsMap. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) protected Set<Map.Entry<K,Collection<V>>> Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().booleaninthashCode()keySet()intsize()toString()(package private) Map.Entry<K,Collection<V>> wrapEntry(Map.Entry<K, Collection<V>> entry) Methods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
createKeySet, createValues, entrySet, valuesMethods inherited from class java.util.AbstractMap
clone, containsValue, isEmpty, put, putAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
submap
Usually the same as map, but smaller for the headMap(), tailMap(), or subMap() of a SortedAsMap.
-
-
Constructor Details
-
AsMap
AsMap(Map<K, Collection<V>> submap)
-
-
Method Details
-
createEntrySet
Description copied from class:Maps.ViewCachingAbstractMapCreates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet(). This method is invoked at most once on a given map, at the time whenentrySetis first called.- Specified by:
createEntrySetin classMaps.ViewCachingAbstractMap<K,Collection<V>>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,Collection<V>> - Overrides:
containsKeyin classAbstractMap<K,Collection<V>>
-
get
- Specified by:
getin interfaceMap<K,Collection<V>> - Overrides:
getin classAbstractMap<K,Collection<V>>
-
keySet
- Specified by:
keySetin interfaceMap<K,Collection<V>> - Overrides:
keySetin classMaps.ViewCachingAbstractMap<K,Collection<V>>
-
size
public int size()- Specified by:
sizein interfaceMap<K,Collection<V>> - Overrides:
sizein classAbstractMap<K,Collection<V>>
-
remove
- Specified by:
removein interfaceMap<K,Collection<V>> - Overrides:
removein classAbstractMap<K,Collection<V>>
-
equals
- Specified by:
equalsin interfaceMap<K,Collection<V>> - Overrides:
equalsin classAbstractMap<K,Collection<V>>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMap<K,Collection<V>> - Overrides:
hashCodein classAbstractMap<K,Collection<V>>
-
toString
- Overrides:
toStringin classAbstractMap<K,Collection<V>>
-
clear
public void clear()- Specified by:
clearin interfaceMap<K,Collection<V>> - Overrides:
clearin classAbstractMap<K,Collection<V>>
-
wrapEntry
-