Package org.jclouds.collect
Class TransformingMap<K,V1,V2>
- java.lang.Object
-
- java.util.AbstractMap<K,V2>
-
- org.jclouds.collect.TransformingMap<K,V1,V2>
-
- All Implemented Interfaces:
Map<K,V2>
public class TransformingMap<K,V1,V2> extends AbstractMap<K,V2>
A map that transforms values on the way in and out. Inspired by the guava methodMaps.transformValues.
-
-
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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)Set<Map.Entry<K,V2>>entrySet()V2get(Object key)V2put(K key, V2 value)V2remove(Object key)intsize()-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
-
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
-
-
-
-
Method Detail
-
size
public int size()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V1>- Overrides:
containsKeyin classAbstractMap<K,V2>
-
clear
public void clear()
-
-