Package org.teavm.classlib.java.util
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 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
ConstructorsConstructorDescriptionTIdentityHashMap
(int capacity) TIdentityHashMap
(int capacity, float loadFactor) Constructs a newHashMap
instance with the specified capacity and load factor.TIdentityHashMap
(TMap<? extends K, ? extends V> map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone0()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) TSet<TMap.Entry<K,
V>> entrySet()
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, 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 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.
-
TIdentityHashMap
-
-
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
-