Package com.google.common.collect
Class Maps.TransformedEntriesMap<K,V1,V2>
java.lang.Object
java.util.AbstractMap<K,V2>
com.google.common.collect.Maps.IteratorBasedAbstractMap<K,V2>
com.google.common.collect.Maps.TransformedEntriesMap<K,V1,V2>
- All Implemented Interfaces:
Map<K,
V2>
- Direct Known Subclasses:
Maps.TransformedEntriesSortedMap
- Enclosing class:
Maps
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Maps.EntryTransformer
<? super K, ? super V1, V2> -
Constructor Summary
ConstructorsConstructorDescriptionTransformedEntriesMap
(Map<K, V1> fromMap, Maps.EntryTransformer<? super K, ? super V1, V2> transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) (package private) Spliterator
<Map.Entry<K, V2>> void
forEach
(BiConsumer<? super K, ? super V2> action) getOrDefault
(Object key, V2 defaultValue) keySet()
int
size()
values()
Methods inherited from class com.google.common.collect.Maps.IteratorBasedAbstractMap
entrySet, forEachEntry
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, put, putAll, 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, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
fromMap
-
transformer
-
-
Constructor Details
-
TransformedEntriesMap
-
-
Method Details
-
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V1> - Overrides:
containsKey
in classAbstractMap<K,
V2>
-
get
-
getOrDefault
-
remove
-
clear
public void clear() -
keySet
-
entryIterator
- Specified by:
entryIterator
in classMaps.IteratorBasedAbstractMap<K,
V2>
-
entrySpliterator
Spliterator<Map.Entry<K,V2>> entrySpliterator()- Overrides:
entrySpliterator
in classMaps.IteratorBasedAbstractMap<K,
V2>
-
forEach
-
values
-