- java.lang.Object
-
- net.finmath.util.Cached<K,V>
-
- Type Parameters:
K- The type of the cache key.V- The type of the value.
- All Implemented Interfaces:
Function<K,V>
public class Cached<K,V> extends Object implements Function<K,V>
A simple wrapper, wrapping a Function<K,V> such that all calculations are cached in a ConcurrentHashMap<K,V>- Author:
- Christian Fries
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vapply(K key)static <K,V>
Function<K,V>of(Function<K,V> mappingFunction)
-