Package com.google.common.collect
Class Maps.FilteredKeyMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.google.common.collect.Maps.ViewCachingAbstractMap<K,V>
com.google.common.collect.Maps.AbstractFilteredMap<K,V>
com.google.common.collect.Maps.FilteredKeyMap<K,V>
- All Implemented Interfaces:
Map<K,V>
- Enclosing class:
Maps
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsFields inherited from class com.google.common.collect.Maps.AbstractFilteredMap
predicate, unfiltered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().Methods inherited from class com.google.common.collect.Maps.AbstractFilteredMap
apply, createValues, get, isEmpty, put, putAll, removeMethods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
entrySet, keySet, valuesMethods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, size, toStringMethods 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
-
keyPredicate
-
-
Constructor Details
-
FilteredKeyMap
-
-
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,V>
-
createKeySet
- Overrides:
createKeySetin classMaps.ViewCachingAbstractMap<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classMaps.AbstractFilteredMap<K,V>
-