Package org.teavm.classlib.java.util
Class TWeakHashMap<K,V>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractMap<K,V>
org.teavm.classlib.java.util.TWeakHashMap<K,V>
- All Implemented Interfaces:
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> -
Constructor Summary
ConstructorsConstructorDescriptionTWeakHashMap
(int capacity) TWeakHashMap
(int capacity, float loadFactor) TWeakHashMap
(TMap<? extends K, ? extends V> map) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) TSet<TMap.Entry<K,
V>> entrySet()
boolean
isEmpty()
keySet()
void
Removes the mapping with the specified key from this map.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
-
TWeakHashMap
public TWeakHashMap() -
TWeakHashMap
public TWeakHashMap(int capacity) -
TWeakHashMap
public TWeakHashMap(int capacity, float loadFactor) -
TWeakHashMap
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceTMap<K,
V> - Overrides:
containsKey
in classTAbstractMap<K,
V>
-
entrySet
-
keySet
-
values
-
get
-
containsValue
- Specified by:
containsValue
in interfaceTMap<K,
V> - Overrides:
containsValue
in classTAbstractMap<K,
V>
-
isEmpty
public boolean isEmpty() -
put
-
putAll
-
remove
Removes the mapping with the specified key from this map. -
size
public int size()
-