public class LRUMap<K,V> extends LinkedHashMap<K,V> implements Serializable
LinkedHashMap
for details.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LRUMap()
Default capacity constructor
|
LRUMap(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> entry) |
clear, containsValue, get
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public LRUMap()
public LRUMap(int capacity)
capacity
- - maximal cache capacity.protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry
in class LinkedHashMap<K,V>
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.