Class TIdentityHashMap<K,V>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractMap<K,V>
org.teavm.classlib.java.util.TIdentityHashMap<K,V>
- All Implemented Interfaces:
TSerializable, TCloneable, TMap<K,V>
-
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
ConstructorsConstructorDescriptionTIdentityHashMap(int capacity) TIdentityHashMap(int capacity, float loadFactor) Constructs a newHashMapinstance with the specified capacity and load factor.TIdentityHashMap(TMap<? extends K, ? extends V> map) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone0()booleancontainsKey(Object key) booleancontainsValue(Object value) TSet<TMap.Entry<K, V>> entrySet()booleanisEmpty()keySet()voidintsize()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, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
TIdentityHashMap
public TIdentityHashMap() -
TIdentityHashMap
public TIdentityHashMap(int capacity) -
TIdentityHashMap
public TIdentityHashMap(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.
-
TIdentityHashMap
-
-
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
-