/src/main/java/net/finmath/singleswaprate/data/DataTableInterpolated.java
} else if( getMaturities( ).size( ) * getTerminations( ).size( )) {
} else if ( getTerminations ( ) .contains ( termination ) ) {
final double[] values = new double[terminations.length]; 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); <extra_id_0> final int[] maturities = getMaturitiesForTermination(termination).stream().mapToInt(Integer::intValue).toArray(); 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);