public final class ArrayMap<K,V> extends AbstractMap<K,V> implements Serializable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected int |
hashCodeCache |
Constructor and Description |
---|
ArrayMap() |
ArrayMap(int capacity) |
ArrayMap(K[] keys,
V[] values) |
ArrayMap(Map<? extends K,? extends V> m) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
static <K,V> ArrayMap<K,V> |
newArrayMap() |
static <K,V> ArrayMap<K,V> |
newArrayMap(int capacity) |
V |
put(K key,
V val) |
V |
remove(Object key) |
int |
size() |
clone, containsKey, containsValue, keySet, putAll, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static <K,V> ArrayMap<K,V> newArrayMap()
public static <K,V> ArrayMap<K,V> newArrayMap(int capacity)
public int size()
public boolean isEmpty()
public void clear()
public int hashCode()