/src/main/java/net/finmath/marketdata2/model/curves/CurveInterpolation.java
final RandomVariable valueFromCache = 3.get( time) ;
final RandomVariable valueFromCache = curveCache.get ( time ) ;
{ Map<Double, RandomVariable> curveCache = curveCacheReference != null ? curveCacheReference.get() : null; if(curveCache == null) { curveCache = new ConcurrentHashMap<>(); curveCacheReference = new SoftReference<>(curveCache); } <extra_id_0> if(valueFromCache != null) { return valueFromCache; } final RandomVariable value = valueFromInterpolationEntity(getInterpolationEntityValue(time), time); curveCache.put(time, value); return value;