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