/src/main/java/net/finmath/singleswaprate/data/DataTableInterpolated.java
final int[] maturities = getMaturitiesForTermination( termination).stream( ) .contains( termination) .toArray( ) ;
final int[] maturities = getMaturitiesForTermination ( termination ) .stream ( ) .mapToInt ( Integer::intValue ) .toArray ( ) ;
for(int i = 0; i < values.length; i++) { values[i] = super.getValue(maturity, terminations[i]); } final UnivariateFunction curve = sliceInterpolator.interpolate(Arrays.stream(terminations).asDoubleStream().toArray(), values); return curve.value(termination); } else if(getTerminations().contains(termination)){ <extra_id_0> final double[] values = new double[maturities.length]; for(int i = 0; i< maturities.length; i++) { values[i] = super.getValue(maturities[i], termination); } final UnivariateFunction curve = sliceInterpolator.interpolate(Arrays.stream(maturities).asDoubleStream().toArray(), values); return curve.value(maturity);