public final class ArrayMap<K,V>
extends java.util.AbstractMap<K,V>
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
hashCodeCache |
Constructor and Description |
---|
ArrayMap() |
ArrayMap(int capacity) |
ArrayMap(K[] keys,
V[] values) |
ArrayMap(java.util.Map<? extends K,? extends V> m) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.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(java.lang.Object key) |
int |
size() |
clone, containsKey, containsValue, keySet, putAll, toString, values
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 V get(java.lang.Object key)
public V remove(java.lang.Object key)
public int hashCode()