Package com.google.common.collect
Class Maps.TransformedEntriesMap<K,V1,V2>
java.lang.Object
java.util.AbstractMap<K,V>
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 extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
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 TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) (package private) Spliterator<Map.Entry<K,V2>> voidforEach(BiConsumer<? super K, ? super V2> action) getOrDefault(Object key, V2 defaultValue) keySet()intsize()values()Methods inherited from class com.google.common.collect.Maps.IteratorBasedAbstractMap
entrySet, forEachEntryMethods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, put, putAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
containsKeyin interfaceMap<K,V1> - Overrides:
containsKeyin classAbstractMap<K,V2>
-
get
-
getOrDefault
-
remove
-
clear
public void clear() -
keySet
-
entryIterator
- Specified by:
entryIteratorin classMaps.IteratorBasedAbstractMap<K,V2>
-
entrySpliterator
Spliterator<Map.Entry<K,V2>> entrySpliterator()- Overrides:
entrySpliteratorin classMaps.IteratorBasedAbstractMap<K,V2>
-
forEach
-
values
-