Package org.biojava.utils.cache
Class WeakCacheMap
java.lang.Object
org.biojava.utils.cache.WeakCacheMap
- All Implemented Interfaces:
CacheMap
A cache which retains weak references to objects
- Since:
- 1.3
- Author:
- Thomas Down
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the Object associated with the key, or null if either no value has been associated or if the key's value has been cleared by the cache.void
Associate a value with a key.void
Explicitly remove an object.
-
Constructor Details
-
WeakCacheMap
public WeakCacheMap()
-
-
Method Details
-
put
Description copied from interface:CacheMap
Associate a value with a key. The association may be broken at any time. -
get
Description copied from interface:CacheMap
Retrieve the Object associated with the key, or null if either no value has been associated or if the key's value has been cleared by the cache. -
remove
Description copied from interface:CacheMap
Explicitly remove an object.
-