Class TConcurrentHashMap<K,V>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractMap<K,V>
org.teavm.classlib.java.util.concurrent.TConcurrentHashMap<K,V>
- All Implemented Interfaces:
TSerializable
,TCloneable
,TConcurrentMap<K,
,V> TMap<K,
V>
public class TConcurrentHashMap<K,V>
extends TAbstractMap<K,V>
implements TConcurrentMap<K,V>, TCloneable, TSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.teavm.classlib.java.util.TAbstractMap
TAbstractMap.SimpleEntry<K,
V>, TAbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface org.teavm.classlib.java.util.TMap
TMap.Entry<K1,
V1> -
Constructor Summary
ConstructorsConstructorDescriptionTConcurrentHashMap
(int capacity) TConcurrentHashMap
(int capacity, float loadFactor) TConcurrentHashMap
(TMap<? extends K, ? extends V> map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone0()
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) TSet<TMap.Entry<K,
V>> entrySet()
void
forEach
(BiConsumer<? super K, ? super V> action) getOrDefault
(Object key, V defaultValue) boolean
isEmpty()
keySet()
void
putIfAbsent
(K key, V value) boolean
boolean
void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) int
size()
values()
Methods inherited from class org.teavm.classlib.java.util.TAbstractMap
clone, equals, hashCode, toString
Methods inherited from class org.teavm.classlib.java.lang.TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
Methods inherited from interface org.teavm.classlib.java.util.concurrent.TConcurrentMap
merge
-
Constructor Details
-
TConcurrentHashMap
public TConcurrentHashMap() -
TConcurrentHashMap
public TConcurrentHashMap(int capacity) -
TConcurrentHashMap
public TConcurrentHashMap(int capacity, float loadFactor) -
TConcurrentHashMap
-
-
Method Details
-
clear
public void clear() -
clone0
-
containsKey
- Specified by:
containsKey
in interfaceTMap<K,
V> - Overrides:
containsKey
in classTAbstractMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceTMap<K,
V> - Overrides:
containsValue
in classTAbstractMap<K,
V>
-
entrySet
-
get
-
remove
-
replace
-
replace
-
getOrDefault
- Specified by:
getOrDefault
in interfaceTConcurrentMap<K,
V> - Specified by:
getOrDefault
in interfaceTMap<K,
V>
-
forEach
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceTConcurrentMap<K,
V> - Specified by:
putIfAbsent
in interfaceTMap<K,
V>
-
replaceAll
- Specified by:
replaceAll
in interfaceTConcurrentMap<K,
V> - Specified by:
replaceAll
in interfaceTMap<K,
V>
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceTConcurrentMap<K,
V> - Specified by:
computeIfAbsent
in interfaceTMap<K,
V>
-
computeIfPresent
- Specified by:
computeIfPresent
in interfaceTConcurrentMap<K,
V> - Specified by:
computeIfPresent
in interfaceTMap<K,
V>
-
compute
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-