org.jscience.util.cache
Class FixedSizeCache

java.lang.Object
  extended by org.jscience.util.cache.FixedSizeCache
All Implemented Interfaces:
Cache

public class FixedSizeCache
extends java.lang.Object
implements Cache

Cache which stores up to limit Objects.

Since:
1.1

Constructor Summary
FixedSizeCache(int limit)
          Creates a new FixedSizeCache object.
 
Method Summary
 int getLimit()
          DOCUMENT ME!
 CacheReference makeReference(java.lang.Object o)
          DOCUMENT ME!
 void setLimit(int limit)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedSizeCache

public FixedSizeCache(int limit)
Creates a new FixedSizeCache object.

Parameters:
limit - DOCUMENT ME!
Method Detail

makeReference

public CacheReference makeReference(java.lang.Object o)
DOCUMENT ME!

Specified by:
makeReference in interface Cache
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!

getLimit

public int getLimit()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setLimit

public void setLimit(int limit)
DOCUMENT ME!

Parameters:
limit - DOCUMENT ME!