public class FastHashtable<K,V> extends Hashtable<K,V>
Constructor and Description |
---|
FastHashtable() |
FastHashtable(int initialCapacity) |
FastHashtable(int initialCapacity,
float loadFactor) |
FastHashtable(Map<? extends K,? extends V> t) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
FastHashtable<K,V> |
clone() |
V |
compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfAbsent(K key,
Function<? super K,? extends V> mappingFunction) |
V |
computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
contains(Object value) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Enumeration<V> |
elements() |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super K,? super V> action) |
V |
get(Object key) |
V |
getOrDefault(Object key,
V defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Enumeration<K> |
keys() |
ConcurrentHashMap.KeySetView<K,V> |
keySet() |
ConcurrentHashMap.KeySetView<K,V> |
keySet(V mappedValue) |
long |
mappingCount() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
static <K,V> FastHashtable<K,V> |
of(Hashtable<K,V> other) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
protected void |
rehash() |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(BiFunction<? super K,? super V,? extends V> function) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
public FastHashtable(int initialCapacity, float loadFactor)
public FastHashtable(int initialCapacity)
public FastHashtable()
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class Hashtable<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class Hashtable<K,V>
public void clear()
public ConcurrentHashMap.KeySetView<K,V> keySet()
public Collection<V> values()
public int hashCode()
public boolean equals(Object o)
public V putIfAbsent(K key, V value)
putIfAbsent
in interface Map<K,V>
putIfAbsent
in class Hashtable<K,V>
public V getOrDefault(Object key, V defaultValue)
getOrDefault
in interface Map<K,V>
getOrDefault
in class Hashtable<K,V>
public void forEach(BiConsumer<? super K,? super V> action)
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
replaceAll
in interface Map<K,V>
replaceAll
in class Hashtable<K,V>
public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent
in interface Map<K,V>
computeIfAbsent
in class Hashtable<K,V>
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent
in interface Map<K,V>
computeIfPresent
in class Hashtable<K,V>
public long mappingCount()
public ConcurrentHashMap.KeySetView<K,V> keySet(V mappedValue)
public static <K,V> FastHashtable<K,V> of(Hashtable<K,V> other)
Copyright © 2017 JBoss by Red Hat. All rights reserved.