Class HashTrieMap<K,V>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap<K,V>
com.github.andrewoma.dexx.collection.internal.hashmap.HashTrieMap<K,V>
-
Field Summary
FieldsFields inherited from class com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<U> void
protected V
get0
(K key, int hash, int level, KeyFunction<K, V> keyFunction) (package private) CompactHashMap
<K, V> getElem
(int index, KeyFunction<K, V> keyFunction) (package private) Object[]
getElems()
iterator
(KeyFunction<K, V> kf) protected CompactHashMap
<K, V> removed0
(K key, int hash, int level, KeyFunction<K, V> keyFunction) int
size()
protected CompactHashMap
<K, V> Methods inherited from class com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap
computeHash, elemHashCode, empty, get, improve, makeHashTrieMap, put, remove, unwrap, wrap
-
Field Details
-
bitmap
private final int bitmap -
elems
-
size
private final int size
-
-
Constructor Details
-
HashTrieMap
HashTrieMap(int bitmap, Object[] elems, int size)
-
-
Method Details
-
size
public int size()- Overrides:
size
in classCompactHashMap<K,
V>
-
getElems
Object[] getElems() -
getElem
-
get0
- Overrides:
get0
in classCompactHashMap<K,
V>
-
updated0
protected CompactHashMap<K,V> updated0(K key, int hash, int level, V value, Pair<K, V> kv, KeyFunction<K, V> keyFunction) - Overrides:
updated0
in classCompactHashMap<K,
V>
-
removed0
- Overrides:
removed0
in classCompactHashMap<K,
V>
-
forEach
- Overrides:
forEach
in classCompactHashMap<K,
V>
-
iterator
- Overrides:
iterator
in classCompactHashMap<K,
V>
-