org.kde.qt
Class WeakValueMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.kde.qt.WeakValueMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class WeakValueMap
extends java.util.HashMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
WeakValueMap()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void reap()
           
 java.lang.Object remove(java.lang.Object key)
          Force an entry to be removed if it is known to be invalid, rather than waiting for the garbage collector to put it on the reaped queue.
 int size()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

WeakValueMap

public WeakValueMap()
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap

remove

public java.lang.Object remove(java.lang.Object key)
Force an entry to be removed if it is known to be invalid, rather than waiting for the garbage collector to put it on the reaped queue.

Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.HashMap

size

public int size()
Specified by:
size in interface java.util.Map
Overrides:
size in class java.util.HashMap

reap

public void reap()