public class ArrayMap<K,V> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected K[] |
keys |
protected int |
size |
protected V[] |
values |
Constructor and Description |
---|
ArrayMap(K[] keys) |
ArrayMap(K[] keys,
V[] values) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
Object[] |
getKeys() |
V[] |
getValues() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
remove(Object key) |
void |
setKeys(K[] keys) |
void |
setValues(V[] values) |
int |
size() |
Collection<V> |
values() |
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public ArrayMap(K[] keys)
public Object[] getKeys()
public void setKeys(K[] keys)
public V[] getValues()
public void setValues(V[] values)
public int size()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class AbstractMap<K,V>
public boolean equals(Object o)
public boolean isEmpty()
public Collection<V> values()
public void clear()