Java: Map
What is Map
In Java, map is a Interface for datatypes that's a set of key-value pairs. In other languages called {hash table, dictionary, map, associative list}.
The full name is java.util.Map
Methods of Map Interface
The map interface has methods like the following.
get(key)keySet()values()put(key, value)containsKey(value)containsValue(value)
Children of Map Interface
The Map interface has the following children:
- java.util.SortedMap
- java.util.NavigableMap
- java.util.concurrent.ConcurrentMap
- java.util.concurrent.ConcurrentNavigableMap
Implementations of Map Interface
- AbstractMap
- Attributes
- AuthProvider
- ConcurrentHashMap
- ConcurrentSkipListMap
- EnumMap
- HashMap
- Hashtable
- IdentityHashMap
- LinkedHashMap
- PrinterStateReasons
- Properties
- Provider
- RenderingHints
- SimpleBindings
- TabularDataSupport
- TreeMap
- UIDefaults
- WeakHashMap