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 TypeMethodDescriptionvoidclear()clone0()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) TSet<TMap.Entry<K, V>> entrySet()voidforEach(BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) booleanisEmpty()keySet()voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()values()Methods inherited from class org.teavm.classlib.java.util.TAbstractMap
clone, equals, hashCode, toStringMethods inherited from class org.teavm.classlib.java.lang.TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImplMethods 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:
containsKeyin interfaceTMap<K,V> - Overrides:
containsKeyin classTAbstractMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceTMap<K,V> - Overrides:
containsValuein classTAbstractMap<K,V>
-
entrySet
-
get
-
remove
-
replace
-
replace
-
getOrDefault
- Specified by:
getOrDefaultin interfaceTConcurrentMap<K,V> - Specified by:
getOrDefaultin interfaceTMap<K,V>
-
forEach
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceTConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceTMap<K,V>
-
replaceAll
- Specified by:
replaceAllin interfaceTConcurrentMap<K,V> - Specified by:
replaceAllin interfaceTMap<K,V>
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceTConcurrentMap<K,V> - Specified by:
computeIfAbsentin interfaceTMap<K,V>
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceTConcurrentMap<K,V> - Specified by:
computeIfPresentin interfaceTMap<K,V>
-
compute
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-