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 operationMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-