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:
java.util.Map<K,V>
- Direct Known Subclasses:
Maps.FilteredEntryBiMap,Maps.FilteredEntrySortedMap
- Enclosing class:
- Maps
static class Maps.FilteredEntryMap<K,V> extends Maps.AbstractFilteredMap<K,V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classMaps.FilteredEntryMap.EntrySet(package private) classMaps.FilteredEntryMap.KeySet
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Set<java.util.Map.Entry<K,V>>filteredEntrySetEntries 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()(package private) static <K,V>
booleanremoveAllKeys(java.util.Map<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate, java.util.Collection<?> keyCollection)(package private) static <K,V>
booleanretainAllKeys(java.util.Map<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate, java.util.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
-
-
-
-
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>
-
removeAllKeys
static <K,V> boolean removeAllKeys(java.util.Map<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate, java.util.Collection<?> keyCollection)
-
retainAllKeys
static <K,V> boolean retainAllKeys(java.util.Map<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate, java.util.Collection<?> keyCollection)
-
-