void (Map<String, String> map) { List<Pair<String, String>> result = new ArrayList<>(); for (Map.Entry<String, String> e : map.entrySet()) { result.add(Pair.create(e.getKey(), e.getValue())); } setData(result); }