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:
java.util.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
abstract static class Maps.ViewCachingAbstractMap<K,V> extends java.util.AbstractMap<K,V>
AbstractMap
extension that makes it easy to cache customized keySet, values, and entrySet views.
-
-
Constructor Summary
Constructors Constructor Description ViewCachingAbstractMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract java.util.Set<java.util.Map.Entry<K,V>>
createEntrySet()
Creates the entry set to be returned byentrySet()
.(package private) java.util.Set<K>
createKeySet()
(package private) java.util.Collection<V>
createValues()
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
java.util.Set<K>
keySet()
java.util.Collection<V>
values()
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size, toString
-
-
-
-
Method Detail
-
createEntrySet
abstract java.util.Set<java.util.Map.Entry<K,V>> 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.
-
keySet
public java.util.Set<K> keySet()
-
createKeySet
java.util.Set<K> createKeySet()
-
values
public java.util.Collection<V> values()
-
createValues
java.util.Collection<V> createValues()
-
-