SoftHashMap

Map which stores items using SoftReference. Items can be garbage collected and removed. It is not a general purpose cache, as it doesn't implement some methods, and others not according to the map definition, to improve speed.

Methods
void clear()
void clear()
Set entrySet()
Set entrySet()
V get(Object key)
V get(Object key)
V put(K key, V value)
Store the object.
V put(K key, V value)
Store the object. The return value of this method is null or a SoftReference.
Parameters:
key - the key
value - the value
Returns:
null or the old object.
V remove(Object key)
Remove an object.
V remove(Object key)
Remove an object.
Parameters:
key - the key
Returns:
null or the old object