public class LRUMap extends LinkedHashMap implements Serializable
Map interface. Instances
are not thread-safe and should be synchronized externally, for instance by
using Collections.synchronizedMap(java.util.Map<K, V>).AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LRUMap(int maxEntries) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(Map.Entry eldest) |
clear, containsValue, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringprotected boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry in class LinkedHashMapCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved