Package com.googlecode.aviator.utils
Class ArrayHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.googlecode.aviator.utils.ArrayHashMap<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,
V>
public class ArrayHashMap<K,V>
extends AbstractMap<K,V>
implements Map<K,V>, Cloneable, Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayHashMap.MapEntry<K,
V>[] private static final float
private int
private static final long
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) entrySet()
(package private) static final int
private ArrayHashMap.MapEntry<K,
V>[] resize
(ArrayHashMap.MapEntry<K, V>[] table) private void
resizeIfLoadHigh
(ArrayHashMap.MapEntry<K, V>[] table) private void
setEntries
(ArrayHashMap.MapEntry[] entries) int
size()
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, values
-
Field Details
-
LOAD_FACTOR
private static final float LOAD_FACTOR- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
entries
-
size
private int size -
loadThreshold
private int loadThreshold
-
-
Constructor Details
-
ArrayHashMap
public ArrayHashMap()
-
-
Method Details
-
hash
-
setEntries
-
size
public int size() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V> - Overrides:
containsKey
in classAbstractMap<K,
V>
-
get
-
clear
public void clear() -
put
-
resizeIfLoadHigh
-
resize
-
remove
-
entrySet
-