|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.tools.cache.CacheEntry
public class CacheEntry
An entry in the cache implementation.
A cache entries "importance" is expressed by a "sample". The CacheEntry with the smallest sample is considered the least valuable.
This implementation supports a simple "most recently used" strategy.
Method Summary | |
---|---|
int |
compareTo(Object o)
|
Object |
getKey()
The key of the cache entry. |
int |
getSample()
The sample representing the "importance" of the entry. |
Object |
getValue()
The value of the cache entry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int compareTo(Object o)
compareTo
in interface Comparable
public Object getKey()
public int getSample()
public Object getValue()
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |