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, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic LRUMap()
public LRUMap(int capacity)
capacity - - maximal cache capacity.protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry in class LinkedHashMap<K,V>Copyright © 2012 JBoss by Red Hat. All Rights Reserved.