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
More Related Contents:
- What are the differences between a HashMap and a Hashtable in Java?
- Java Compare Two Lists
- Which Java Collection should I use?
- Why there is no ConcurrentHashSet against ConcurrentHashMap
- Performance ConcurrentHashmap vs HashMap
- Best way to create a hashmap of arraylist
- Java: how to convert HashMap to array
- get string value from HashMap depending on key name
- Is there a way to get the value of a HashMap randomly in Java?
- Difference between HashSet and HashMap?
- Shortcut for adding to List in a HashMap
- How does ConcurrentHashMap work internally?
- What is the difference between "collection" ,"Collection" and "Collections"? [duplicate]
- How to check if an integer is in a set of given ranges? [closed]
- Java 8 Streams hashmap
- Properly removing an Integer from a List
- java.lang.OutOfMemoryError: GC overhead limit exceeded [duplicate]
- Determine if two files store the same content
- Maximum size of HashSet, Vector, LinkedList
- Java HashMap performance optimization / alternative
- How to shuffle an ArrayList [duplicate]
- Check if an ArrayList contains every element from another ArrayList (or Collection)
- What exactly is bucket in hashmap?
- Changing HashMap keys during iteration
- ArrayList Vs LinkedList
- Java Collections and Garbage Collector
- Getting object with max date property from list of objects Java 8
- Hashmap implementation to count the occurrences of each character
- Perform operation on n random distinct elements from Collection using Streams API
- Explanation of HashMap#hash(int) method