Class CompactHashMap<K,V>
java.lang.Object
com.github.andrewoma.dexx.collection.internal.hashmap.CompactHashMap<K,V>
- Direct Known Subclasses:
HashMap1
,HashMapCollision1
,HashTrieMap
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
computeHash
(K key) protected int
elemHashCode
(K key) static <K,
V> CompactHashMap <K, V> empty()
<U> void
get
(K key, KeyFunction<K, V> keyFunction) protected V
get0
(K key, int hash, int level, KeyFunction<K, V> keyFunction) protected final int
improve
(int hashCode) iterator
(KeyFunction<K, V> kf) protected static <K,
V> HashTrieMap <K, V> makeHashTrieMap
(int hash0, CompactHashMap<K, V> elem0, int hash1, CompactHashMap<K, V> elem1, int level, int size) remove
(K key, KeyFunction<K, V> keyFunction) protected CompactHashMap
<K, V> removed0
(K key, int hash, int level, KeyFunction<K, V> keyFunction) int
size()
protected static <K,
V> Object unwrap
(CompactHashMap<K, V> hashMap) protected CompactHashMap
<K, V> protected CompactHashMap
<K, V> wrap
(Object object, KeyFunction<K, V> keyFunction)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
CompactHashMap
public CompactHashMap()
-
-
Method Details
-
iterator
-
size
public int size() -
empty
-
forEach
-
get
-
put
-
remove
-
elemHashCode
-
improve
protected final int improve(int hashCode) -
computeHash
-
get0
-
updated0
-
removed0
-
makeHashTrieMap
protected static <K,V> HashTrieMap<K,V> makeHashTrieMap(int hash0, CompactHashMap<K, V> elem0, int hash1, CompactHashMap<K, V> elem1, int level, int size) -
unwrap
-
wrap
-