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>
-
class HashTrieMap<K,V> extends CompactHashMap<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private intbitmapprivate java.lang.Object[]elemsprivate intsize-
Fields inherited from class com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap
EMPTY
-
-
Constructor Summary
Constructors Constructor Description HashTrieMap(int bitmap, java.lang.Object[] elems, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U> voidforEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)protected Vget0(K key, int hash, int level, KeyFunction<K,V> keyFunction)(package private) CompactHashMap<K,V>getElem(int index, KeyFunction<K,V> keyFunction)(package private) java.lang.Object[]getElems()java.util.Iterator<Pair<K,V>>iterator(KeyFunction<K,V> kf)protected CompactHashMap<K,V>removed0(K key, int hash, int level, KeyFunction<K,V> keyFunction)intsize()protected CompactHashMap<K,V>updated0(K key, int hash, int level, V value, Pair<K,V> kv, KeyFunction<K,V> keyFunction)-
Methods inherited from class com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap
computeHash, elemHashCode, empty, get, improve, makeHashTrieMap, put, remove, unwrap, wrap
-
-
-
-
Method Detail
-
size
public int size()
- Overrides:
sizein classCompactHashMap<K,V>
-
getElems
java.lang.Object[] getElems()
-
getElem
CompactHashMap<K,V> getElem(int index, KeyFunction<K,V> keyFunction)
-
get0
protected V get0(K key, int hash, int level, KeyFunction<K,V> keyFunction)
- Overrides:
get0in 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:
updated0in classCompactHashMap<K,V>
-
removed0
protected CompactHashMap<K,V> removed0(K key, int hash, int level, KeyFunction<K,V> keyFunction)
- Overrides:
removed0in classCompactHashMap<K,V>
-
forEach
public <U> void forEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)
- Overrides:
forEachin classCompactHashMap<K,V>
-
iterator
public java.util.Iterator<Pair<K,V>> iterator(KeyFunction<K,V> kf)
- Overrides:
iteratorin classCompactHashMap<K,V>
-
-