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:
java.util.Map<K,V>
- Enclosing class:
- Maps
private static class Maps.FilteredKeyMap<K,V> extends Maps.AbstractFilteredMap<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Predicate<? super K>keyPredicate-
Fields inherited from class com.google.common.collect.Maps.AbstractFilteredMap
predicate, unfiltered
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(java.lang.Object key)protected java.util.Set<java.util.Map.Entry<K,V>>createEntrySet()Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().(package private) java.util.Set<K>createKeySet()-
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
-
-
-
-
Method Detail
-
createEntrySet
protected java.util.Set<java.util.Map.Entry<K,V>> 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
java.util.Set<K> createKeySet()
- Overrides:
createKeySetin classMaps.ViewCachingAbstractMap<K,V>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map<K,V>- Overrides:
containsKeyin classMaps.AbstractFilteredMap<K,V>
-
-