Class FlexibleHashMap<K,V>
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.misc.FlexibleHashMap<K,V>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedList<FlexibleHashMap.Entry<K,V>>[] protected final AbstractEqualityComparator<? super K> protected intstatic final intstatic final intprotected final intprotected final intstatic final doubleprotected intHow many elements in setprotected intwhen to expand -
Constructor Summary
ConstructorsConstructorDescriptionFlexibleHashMap(AbstractEqualityComparator<? super K> comparator) FlexibleHashMap(AbstractEqualityComparator<? super K> comparator, int initialCapacity, int initialBucketCapacity) -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
INITAL_CAPACITY
public static final int INITAL_CAPACITY- See Also:
-
INITAL_BUCKET_CAPACITY
public static final int INITAL_BUCKET_CAPACITY- See Also:
-
LOAD_FACTOR
public static final double LOAD_FACTOR- See Also:
-
comparator
-
buckets
-
n
protected int nHow many elements in set -
currentPrime
protected int currentPrime -
threshold
protected int thresholdwhen to expand -
initialCapacity
protected final int initialCapacity -
initialBucketCapacity
protected final int initialBucketCapacity
-
-
Constructor Details
-
FlexibleHashMap
public FlexibleHashMap() -
FlexibleHashMap
-
FlexibleHashMap
public FlexibleHashMap(AbstractEqualityComparator<? super K> comparator, int initialCapacity, int initialBucketCapacity)
-
-
Method Details
-
getBucket
-
get
-
put
-
remove
-
putAll
-
keySet
-
values
-
entrySet
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
hashCode
-
equals
-
expand
protected void expand() -
size
-
isEmpty
-
clear
-
toString
-
toTableString
-
main
-