Package org.teavm.classlib.java.util
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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone0()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
TSet<TMap.Entry<K,V>>
entrySet()
void
forEach(BiConsumer<? super K,? super V> action)
boolean
isEmpty()
keySet()
void
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.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 newHashMap
instance 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
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
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
forEach
-