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 TypeMethodDescriptionboolean
containsKey
(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, remove
Methods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
entrySet, keySet, values
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, 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
-
keyPredicate
-
-
Constructor Details
-
FilteredKeyMap
-
-
Method Details
-
createEntrySet
Description copied from class:Maps.ViewCachingAbstractMap
Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet()
. This method is invoked at most once on a given map, at the time whenentrySet
is first called.- Specified by:
createEntrySet
in classMaps.ViewCachingAbstractMap<K,
V>
-
createKeySet
- Overrides:
createKeySet
in classMaps.ViewCachingAbstractMap<K,
V>
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classMaps.AbstractFilteredMap<K,
V>
-