Class THashMap<K,V>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractMap<K,V>
org.teavm.classlib.java.util.THashMap<K,V>
- All Implemented Interfaces:
TSerializable, TCloneable, TMap<K,V>
- Direct Known Subclasses:
TLinkedHashMap
-
Nested Class Summary
Nested classes/interfaces inherited from class TAbstractMap
TAbstractMap.SimpleEntry<K,V>, TAbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface TMap
TMap.Entry<K1,V1> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone0()booleancontainsKey(Object key) booleancontainsValue(Object value) TSet<TMap.Entry<K, V>> entrySet()voidforEach(BiConsumer<? super K, ? super V> action) booleanisEmpty()keySet()static <K,V> THashMap <K, V> newHashMap(int size) voidvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()values()Methods inherited from class TAbstractMap
clone, equals, hashCode, toStringMethods inherited from class TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0Methods inherited from interface TMap
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace
-
Constructor Details
-
THashMap
public THashMap() -
THashMap
public THashMap(int capacity) -
THashMap
public THashMap(int capacity, float loadFactor) Constructs a newHashMapinstance with the specified capacity and load factor.- Parameters:
capacity- the initial capacity of this hash map.loadFactor- the initial load factor.- Throws:
IllegalArgumentException- when the capacity is less than zero or the load factor is less or equal to zero.
-
THashMap
-
-
Method Details
-
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
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceTMap<K,V>
-
newHashMap
-