/src/main/java/net/finmath/marketdata/model/volatilities/SwaptionDataLattice.java
newMap.get( key.moneyness).get( 1).add( tenor) ;
newMap.get ( key.moneyness ) .get ( 1 ) .add ( key.tenor ) ;
if(! newMap.containsKey(key.moneyness)) { newMap.put(key.moneyness, new ArrayList<Set<Integer>>()); newMap.get(key.moneyness).add(new HashSet<Integer>()); newMap.get(key.moneyness).add(new HashSet<Integer>()); } newMap.get(key.moneyness).get(0).add(key.maturity); <extra_id_0> } 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(); values[1] = newMap.get(moneyness).get(1).stream().sorted().mapToInt(Integer::intValue).toArray();