public class SimpleIndexHashMapWrapper<K,V> extends Object implements Map<K,V>
Constructor and Description |
---|
SimpleIndexHashMapWrapper() |
SimpleIndexHashMapWrapper(K[] keys) |
SimpleIndexHashMapWrapper(K[] keys,
int initialCapacity,
float load) |
SimpleIndexHashMapWrapper(SimpleIndexHashMapWrapper<K,V> wrapper,
boolean allocateOnly) |
Modifier and Type | Method and Description |
---|---|
void |
addKey(K key) |
void |
addKey(K key,
V value) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
V |
getByIndex(int index) |
K |
getKeyAtIndex(int index) |
int |
indexOf(K key) |
void |
initWithKeys(K[] keys) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
putAtIndex(int index,
V value) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public SimpleIndexHashMapWrapper()
public SimpleIndexHashMapWrapper(SimpleIndexHashMapWrapper<K,V> wrapper, boolean allocateOnly)
public SimpleIndexHashMapWrapper(K[] keys)
public SimpleIndexHashMapWrapper(K[] keys, int initialCapacity, float load)
public void initWithKeys(K[] keys)
public void addKey(K key)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public V getByIndex(int index)
public K getKeyAtIndex(int index)
public int indexOf(K key)
public void putAtIndex(int index, V value)
Copyright © 2015. All rights reserved.