org.apache.abdera.protocol.client.cache
Class LRUMap<A,B>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<A,B>
org.apache.abdera.protocol.client.cache.LRUMap<A,B>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<A,B>
public final class LRUMap<A,B>
- extends LinkedHashMap<A,B>
- See Also:
- Serialized Form
Constructor Summary |
LRUMap(int initialSize,
float loadFactor)
|
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
LRUMap
public LRUMap(int initialSize,
float loadFactor)
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<A,B> eldest)
- Overrides:
removeEldestEntry
in class LinkedHashMap<A,B>
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.