public abstract class ArrayMap<K,V> extends AbstractMap<K,V>
get(Object)
, put(Object, Object)
, remove(Object)
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected Object[] |
keys |
protected int |
modCount |
protected int |
size |
protected Object[] |
values |
Constructor and Description |
---|
ArrayMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
abstract V |
get(Object key) |
Set<K> |
keySet() |
abstract V |
put(K key,
V value) |
abstract V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, hashCode, isEmpty, putAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected int size
protected Object[] keys
protected Object[] values
protected int modCount
public int size()
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class AbstractMap<K,V>
public Collection<V> values()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.