public class CacheEntry<T> extends Object implements Comparable
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.
public int compareTo(Object o)
compareTo in interface Comparablepublic Object getKey()
public int getSample()
public T getValue()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.