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, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
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 Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow