Class WeakHashMap<K,V>
java.lang.Object
com.codename1.ui.util.WeakHashMap<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all elements from thisMap, leaving it empty.booleancontainsKey(Object key) Returns whether thisMapcontains the specified key.booleancontainsValue(Object value) This method is unsupported in the weak hash mapentrySet()Unsupported operationReturns the value of the mapping with the specified key.booleanisEmpty()Returns whether this map is empty.keySet()Returns a set of the keys contained in thisMap.Maps the specified key to the specified value.voidCopies every mapping in the specifiedMapto thisMap.Removes a mapping with the specified key from thisMap.intsize()Returns the number of mappings in thisMap.values()Unsupported operation
-
Constructor Details
-
WeakHashMap
public WeakHashMap()
-
-
Method Details
-
size
-
isEmpty
-
containsKey
Returns whether thisMapcontains the specified key.- Specified by:
containsKeyin interfaceMap<K,V> - Parameters:
key- the key to search for.- Returns:
trueif this map contains the specified key,falseotherwise.
-
containsValue
This method is unsupported in the weak hash map- Specified by:
containsValuein interfaceMap<K,V> - Parameters:
value- the value to search for.- Returns:
trueif this map contains the specified value,falseotherwise.
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-