Modifier and Type | Class and Description |
---|---|
static class |
FlexibleHashMap.Entry<K,V> |
Modifier and Type | Field and Description |
---|---|
protected LinkedList<FlexibleHashMap.Entry<K,V>>[] |
buckets |
protected AbstractEqualityComparator<? super K> |
comparator |
protected int |
currentPrime |
static int |
INITAL_BUCKET_CAPACITY |
static int |
INITAL_CAPACITY |
protected int |
initialBucketCapacity |
static double |
LOAD_FACTOR |
protected int |
n
How many elements in set
|
protected int |
threshold |
Constructor and Description |
---|
FlexibleHashMap() |
FlexibleHashMap(AbstractEqualityComparator<? super K> comparator) |
FlexibleHashMap(AbstractEqualityComparator<? super K> comparator,
int initialCapacity,
int initialBucketCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
protected void |
expand() |
V |
get(Object key) |
protected int |
getBucket(K key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
static void |
main(String[] args) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
String |
toTableString() |
Collection<V> |
values() |
public static final int INITAL_CAPACITY
public static final int INITAL_BUCKET_CAPACITY
public static final double LOAD_FACTOR
@NotNull protected final AbstractEqualityComparator<? super K> comparator
protected LinkedList<FlexibleHashMap.Entry<K,V>>[] buckets
protected int n
protected int threshold
protected int currentPrime
protected int initialBucketCapacity
public FlexibleHashMap()
public FlexibleHashMap(@Nullable AbstractEqualityComparator<? super K> comparator)
public FlexibleHashMap(@Nullable AbstractEqualityComparator<? super K> comparator, int initialCapacity, int initialBucketCapacity)
protected int getBucket(K key)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public int hashCode()
public boolean equals(Object o)
protected void expand()
public String toTableString()
public static void main(String[] args)
Copyright © 1992-2013 ANTLR. All Rights Reserved.