Package com.google.common.collect
Class Maps.ViewCachingAbstractMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.google.common.collect.Maps.ViewCachingAbstractMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
- Direct Known Subclasses:
AbstractMapBasedMultimap.AsMap
,FilteredEntryMultimap.AsMap
,Maps.AbstractFilteredMap
,Maps.AsMapView
,Multimaps.AsMap
,StandardTable.Column
,StandardTable.ColumnMap
,StandardTable.RowMap
- Enclosing class:
Maps
AbstractMap
extension that makes it easy to cache customized keySet, values, and
entrySet views.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the entry set to be returned byentrySet()
.(package private) Collection
<V> entrySet()
keySet()
values()
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
entrySet
-
keySet
-
values
-
-
Constructor Details
-
ViewCachingAbstractMap
ViewCachingAbstractMap()
-
-
Method Details
-
createEntrySet
Creates the entry set to be returned byentrySet()
. This method is invoked at most once on a given map, at the time whenentrySet
is first called. -
entrySet
-
keySet
-
createKeySet
-
values
-
createValues
Collection<V> createValues()
-