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 void
clear()
boolean
containsKey(Object key)
Set<Map.Entry<K,V2>>
entrySet()
V2
get(Object key)
V2
put(K key, V2 value)
V2
remove(Object key)
int
size()
-
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:
containsKey
in interfaceMap<K,V1>
- Overrides:
containsKey
in classAbstractMap<K,V2>
-
clear
public void clear()
-
-