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