public class TConcurrentHashMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TConcurrentHashMap.CollectionView<K> |
static class |
TConcurrentHashMap.EntrySetView<K,V> |
static class |
TConcurrentHashMap.KeySetView<K> |
static class |
TConcurrentHashMap.ValuesView<V> |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TConcurrentHashMap() |
TConcurrentHashMap(int initialCapacity) |
TConcurrentHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel) |
TConcurrentHashMap(Map<K,V> data) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
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 o) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
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() |
ConcurrentHashMap.KeySetView |
keySet() |
long |
mappingCount() |
V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
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() |
clonepublic TConcurrentHashMap()
public TConcurrentHashMap(int initialCapacity)
public TConcurrentHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel)
public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>public V getOrDefault(Object key, V defaultValue)
getOrDefault in interface ConcurrentMap<K,V>getOrDefault in interface Map<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 ConcurrentMap<K,V>replaceAll in interface Map<K,V>public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
computeIfAbsent in interface ConcurrentMap<K,V>computeIfAbsent in interface Map<K,V>public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent in interface ConcurrentMap<K,V>computeIfPresent in interface Map<K,V>public int size()
public boolean isEmpty()
public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public void clear()
public ConcurrentHashMap.KeySetView keySet()
public Collection<V> values()
public boolean equals(Object o)
public int hashCode()
public String toString()
toString in class AbstractMap<K,V>public boolean contains(Object o)
public long mappingCount()
Copyright © 2021 Systemprogrammierung Mirko Sertic. All rights reserved.