How can I best compare two HashMaps, if I want to find out if none of them contains different keys than the other, and if the values of that keys match each oth
HashMap
Simply use :
mapA.equals(mapB);
Compares the specified object with this map for equality. Returns true if the given object is also a map and the two maps represent the same mappings