Package com.google.common.collect
Class Maps.FilteredEntryMap<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.FilteredEntryMap<K,V>
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
Maps.FilteredEntryBiMap,Maps.FilteredEntrySortedMap
- Enclosing class:
Maps
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class(package private) classNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionEntries in this set satisfy the predicate, but they don't validate the input toEntry.setValue().Fields inherited from class com.google.common.collect.Maps.AbstractFilteredMap
predicate, unfiltered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().(package private) static <K,V> boolean removeAllKeys(Map<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate, Collection<?> keyCollection) (package private) static <K,V> boolean retainAllKeys(Map<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate, Collection<?> keyCollection) Methods inherited from class com.google.common.collect.Maps.AbstractFilteredMap
apply, containsKey, 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
-
filteredEntrySet
Entries in this set satisfy the predicate, but they don't validate the input toEntry.setValue().
-
-
Constructor Details
-
FilteredEntryMap
-
-
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>
-
removeAllKeys
static <K,V> boolean removeAllKeys(Map<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate, Collection<?> keyCollection) -
retainAllKeys
static <K,V> boolean retainAllKeys(Map<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate, Collection<?> keyCollection)
-