/src/main/java/net/finmath/marketdata/model/volatilities/SwaptionDataLattice.java
values[i] = newMap.get( moneyness).get( i).stream( ).sorted( ).mapToInt( Integer::intValue).toArray( ) ;
values[1] = newMap.get ( moneyness ) .get ( 1 ) .stream ( ) .sorted ( ) .mapToInt ( Integer::intValue ) .toArray ( ) ;
newMap.get(key.moneyness).get(1).add(key.tenor); } final Map<Integer, int[][]> keyMap = new TreeMap<>(); for(final int moneyness : newMap.keySet()) { final int[][] values = new int[2][]; values[0] = newMap.get(moneyness).get(0).stream().sorted().mapToInt(Integer::intValue).toArray(); <extra_id_0> keyMap.put(moneyness, values); } this.keyMap = keyMap; return Collections.unmodifiableMap(keyMap); } public Map<Pair<Integer, Integer>, int[]> getMoneynessPerGridNode() {