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) class
Nested 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, 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
-
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.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>
-
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)
-