What's the recommended approach for comparing hashmaps in Java for equality so that I can determine if they have identical keys and values?
Map<String,List<String>> data1 = new HashMap<>();
data1.put("file1", Arrays.asList("one","two","three"));
Map<String,List<String>> data2 = new HashMap<>();
data2.put("file1", Arrays.asList("one","two","three"));