Class LruCache<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
org.jxmpp.util.cache.LruCache<K,V>
Type Parameters:
K - the type of the keys of this cache.
V - the type of the values this cache caches.
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>, Cache<K,V>

public class LruCache<K,V> extends LinkedHashMap<K,V> implements Cache<K,V>
A specialized Map that is size-limited (using an LRU algorithm). The Map is thread-safe.
See Also: