private static class Maps.FilteredKeyMap<K,V> extends Maps.AbstractFilteredMap<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) Predicate<? super K> |
keyPredicate |
predicate, unfiltered
Constructor and Description |
---|
FilteredKeyMap(java.util.Map<K,V> unfiltered,
Predicate<? super K> keyPredicate,
Predicate<? super java.util.Map.Entry<K,V>> entryPredicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key) |
protected java.util.Set<java.util.Map.Entry<K,V>> |
createEntrySet()
Creates the entry set to be returned by
Maps.ImprovedAbstractMap.entrySet() . |
(package private) java.util.Set<K> |
createKeySet() |
apply, createValues, get, isEmpty, put, putAll, remove
entrySet, keySet, values
clear, clone, containsValue, equals, hashCode, size, toString
protected java.util.Set<java.util.Map.Entry<K,V>> createEntrySet()
Maps.ImprovedAbstractMap
Maps.ImprovedAbstractMap.entrySet()
. This method
is invoked at most once on a given map, at the time when entrySet
is first called.createEntrySet
in class Maps.ImprovedAbstractMap<K,V>
java.util.Set<K> createKeySet()
createKeySet
in class Maps.ImprovedAbstractMap<K,V>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<K,V>
containsKey
in class Maps.AbstractFilteredMap<K,V>