com.liferay.portal.kernel.util
Class LRUMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.liferay.portal.kernel.util.LRUMap<K,V>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,V>
public class LRUMap<K,V>
- extends LinkedHashMap<K,V>
- See Also:
- Serialized Form
|
Constructor Summary |
LRUMap(int capacity)
|
| Methods inherited from class java.util.HashMap |
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size |
| Methods inherited from interface java.util.Map |
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size |
LRUMap
public LRUMap(int capacity)
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
- Overrides:
removeEldestEntry in class LinkedHashMap<K,V>