Package com.landawn.abacus.util
Class ArrayHashMap<K,V>
java.lang.Object
com.landawn.abacus.util.ArrayHashMap<K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
Map<K,
V>
- Direct Known Subclasses:
LinkedArrayHashMap
It's designed to supported primitive/object array key.
The elements in the array must not be modified after the array is put into the map as key.
- Since:
- 0.8
- Author:
- Haiyang Li
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionArrayHashMap
(int initialCapacity) ArrayHashMap
(Class<? extends Map> mapType) ArrayHashMap
(Map<? extends K, ? extends V> m) -
Method Summary
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ArrayHashMap
public ArrayHashMap() -
ArrayHashMap
public ArrayHashMap(int initialCapacity) - Parameters:
initialCapacity
-
-
ArrayHashMap
- Parameters:
mapType
-
-
ArrayHashMap
- Parameters:
m
-
-
-
Method Details
-
get
-
put
-
putAll
-
remove
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Parameters:
key
-- Returns:
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V> - Parameters:
value
-- Returns:
-
keySet
-
values
-
entrySet
-
size
public int size() -
isEmpty
public boolean isEmpty()Checks if is empty. -
clear
public void clear()Clear. -
hashCode
public int hashCode() -
equals
-
toString
-