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, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic 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.2. Copyright © 2004-2019, University of Glasgow