K
- The map keyV
- The map valuepublic class LRUMapCache<K,V>
extends java.util.LinkedHashMap<K,V>
Constructor and Description |
---|
LRUMapCache(int capacity)
The constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key) |
V |
get(java.lang.Object key) |
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
clone, entrySet, isEmpty, keySet, put, putAll, remove, size, values