| java.lang.Object com.triactive.jdo.util.ReferenceValueMap
All known Subclasses: com.triactive.jdo.util.WeakValueMap, com.triactive.jdo.util.SoftValueMap,
ReferenceValueMap | abstract public class ReferenceValueMap implements Map,Cloneable(Code) | | A java.util.Map implementation using reference values.
The values are stored in the map as references. If the garbage collector
clears the reference, the corresponding key is automatically removed from the
map.
author: Mike Martin version: $Revision: 1.4 $ See Also: java.lang.ref.Reference |
Inner Class :public interface ValueReference | |
ReferenceValueMap | public ReferenceValueMap()(Code) | | |
ReferenceValueMap | public ReferenceValueMap(int initialCapacity)(Code) | | |
ReferenceValueMap | public ReferenceValueMap(int initialCapacity, float loadFactor)(Code) | | |
ReferenceValueMap | public ReferenceValueMap(Map m)(Code) | | |
clear | public void clear()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
newValueReference | abstract protected ValueReference newValueReference(Object key, Object value, ReferenceQueue queue)(Code) | | Returns a new Reference object to be inserted into the map.
Subclasses must implement this method to construct Reference
objects of the desired type (e.g. SoftReference , etc.).
Parameters: key - The key that will be inserted. Parameters: value - The associated value to be referenced. Parameters: queue - The ReferenceQueue with which to register thenew Reference object. |
|
|