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 AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayHashMap.MapEntry<K,V>[] private static final floatprivate intprivate static final longprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) entrySet()(package private) static final intprivate ArrayHashMap.MapEntry<K,V>[] resize(ArrayHashMap.MapEntry<K, V>[] table) private voidresizeIfLoadHigh(ArrayHashMap.MapEntry<K, V>[] table) private voidsetEntries(ArrayHashMap.MapEntry[] entries) intsize()Methods inherited from class AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, valuesMethods inherited from interface 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
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
get
-
clear
-
put
-
resizeIfLoadHigh
-
resize
-
remove
-
entrySet
-