Package org.biojava.utils.cache
Class FixedSizeCache
- java.lang.Object
- 
- org.biojava.utils.cache.FixedSizeCache
 
- 
- All Implemented Interfaces:
- Cache
 
 public class FixedSizeCache extends Object implements Cache Cache which stores up tolimitObjects.- Since:
- 1.1
- Author:
- Thomas Down
 
- 
- 
Constructor SummaryConstructors Constructor Description FixedSizeCache(int limit)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLimit()CacheReferencemakeReference(Object o)Construct a temporary reference to an object.voidsetLimit(int limit)
 
- 
- 
- 
Constructor Detail- 
FixedSizeCachepublic FixedSizeCache(int limit) 
 
- 
 - 
Method Detail- 
makeReferencepublic CacheReference makeReference(Object o) Description copied from interface:CacheConstruct a temporary reference to an object. The reference persists until it becomes dereferenced itself, it is explicitly cleared by the user, or the cache determines that it is a candidate for disposal.- Specified by:
- makeReferencein interface- Cache
 
 - 
getLimitpublic int getLimit() 
 - 
setLimitpublic void setLimit(int limit) 
 
- 
 
-