K
- type of the keyV
- type of the parameterpublic final class LRUMap<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE
DEFAULT_SIZE
|
Constructor and Description |
---|
LRUMap()
default constructor
|
LRUMap(int _maxSize)
constructor
|
LRUMap(String sMaxSize)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,V> eldest) |
clear, containsValue, get
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static final int DEFAULT_SIZE
public LRUMap()
public LRUMap(String sMaxSize)
sMaxSize
- public LRUMap(int _maxSize)
_maxSize
- protected boolean removeEldestEntry(Map.Entry<K,V> eldest)
removeEldestEntry
in class LinkedHashMap<K,V>
Terrier 4.0. Copyright © 2004-2014 University of Glasgow