src/models/Table.java
BeforeProposed
+1−1
33public final class Table {
44 public final SortedMap<String,SortedMap<String,List<Integer>>> cells=new TreeMap<>();
55 public void add(String name, String token, int production) {
6 cells.computeIfAbsent(name,key -> new TreeMap<>()).put(token,new ArrayList<>(List.of(production)));
6 cells.computeIfAbsent(name,key -> new TreeMap<>()).computeIfAbsent(token,key -> new ArrayList<>()).add(production);
77 }
88 public List<Map<String,Object>> conflicts() {
99 List<Map<String,Object>> result=new ArrayList<>();