org.jscience.util.cache
Class SoftReferenceCache

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

public class SoftReferenceCache
extends java.lang.Object
implements Cache

Cache which is cleared according to memory pressure. This is simply a wrapper around java.lang.ref.SoftReference, and the performance will depend on the behaviour of SoftReference on your platform.

Since:
1.1

Constructor Summary
SoftReferenceCache()
           
 
Method Summary
 CacheReference makeReference(java.lang.Object o)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftReferenceCache

public SoftReferenceCache()
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!