void (Object aValue, int rowIndex, int columnIndex) { Map.Entry<String, String> entry = parameterList.get(rowIndex); String key = entry.getKey(); String value = entry.getValue(); switch (columnIndex) { case 0 -> key = (String)aValue; case 1 -> value = (String)aValue; } Map<String, String> map = new HashMap<>(); map.put(key, value); parameterList.set(rowIndex, map.entrySet().iterator().next()); setParameterList(parameterList); }