Class ResultHolder<T>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<Transformation,T>
-
- it.bancaditalia.oss.vtl.impl.transform.util.ResultHolder<T>
-
- Type Parameters:
T
- The type of the transient results
- All Implemented Interfaces:
Serializable
,ConcurrentMap<Transformation,T>
,Map<Transformation,T>
public class ResultHolder<T> extends ConcurrentHashMap<Transformation,T>
Keeps transient results used in computations. Each computation can store a single result of a given type.- Author:
- Valentino Pinna
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
-
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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
computeIfAbsent(Transformation key, Function<? super Transformation,? extends T> mappingFunction)
static <T> ResultHolder<T>
getInstance(TransformationScheme scheme, Class<T> valueType)
-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
-
Methods inherited from class java.util.AbstractMap
clone
-
-
-
-
Method Detail
-
getInstance
public static <T> ResultHolder<T> getInstance(TransformationScheme scheme, Class<T> valueType)
-
computeIfAbsent
public T computeIfAbsent(Transformation key, Function<? super Transformation,? extends T> mappingFunction)
- Specified by:
computeIfAbsent
in interfaceConcurrentMap<Transformation,T>
- Specified by:
computeIfAbsent
in interfaceMap<Transformation,T>
- Overrides:
computeIfAbsent
in classConcurrentHashMap<Transformation,T>
-
-