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, get
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
protected boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry
in class LinkedHashMap
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved