Interface for storing key-value pairs.
All keys are unique, no duplications.
Each key is associated to a single value.
The Map contains of 3 sets:
set of keys
set of values
set of key-value associations (mapping)
Implementing classes: HashMap, EnumMap, LinkedHashMap, WeakHashMap, TreeMap.
Extending interfaces: SortedMap, NavigableMap, ConcurrentMap.
EXAMPLE FOR CREATING AN INSTANCE BY USING ONE OF THE SUBCLASSES OF MAP:
All methods of the Collection interface is available. Specific methods follow.
EXAMPLE FOR REPLACEALL():