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