Package org.biojava.utils.cache
Class FixedSizeMap
java.lang.Object
org.biojava.utils.cache.FixedSizeMap
- All Implemented Interfaces:
CacheMap
A cache that only remembers a given number of keys.
- Since:
- 1.2
- Author:
- Matthew Pocock
-
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.intvoidAssociate a value with a key.voidExplicitly remove an object.
-
Constructor Details
-
FixedSizeMap
-
-
Method Details
-
getMaxSize
-
put
Description copied from interface:CacheMapAssociate a value with a key. The association may be broken at any time. -
get
Description copied from interface:CacheMapRetrieve 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:CacheMapExplicitly remove an object.
-