public class LRUHashMap<K,V>
extends java.util.LinkedHashMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
private int |
capacity |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
LRUHashMap(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest) |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesprivate static final long serialVersionUID
private final int capacity