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 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 TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) TSet<TMap.Entry<K, V>> entrySet()booleanisEmpty()keySet()voidRemoves the mapping with the specified key from this map.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, 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
-
containsKey
- Specified by:
containsKeyin interfaceTMap<K,V> - Overrides:
containsKeyin classTAbstractMap<K,V>
-
entrySet
-
keySet
-
values
-
get
-
containsValue
- Specified by:
containsValuein interfaceTMap<K,V> - Overrides:
containsValuein classTAbstractMap<K,V>
-
isEmpty
-
put
-
putAll
-
remove
Removes the mapping with the specified key from this map. -
size
-