K - the type of the keys in the mappingV - the type of the values in the mappingpublic class LRUMap<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LRUMap() |
LRUMap(int maxSize) |
LRUMap(int maxSize,
int initialCapacity) |
LRUMap(int maxSize,
int initialCapacity,
float loadFactor) |
LRUMap(Map<? extends K,? extends V> m) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSize() |
protected boolean |
removeEldestEntry(Map.Entry<K,V> entry) |
void |
setMaxSize(int i) |
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 LRUMap()
public LRUMap(int maxSize)
public LRUMap(int maxSize,
int initialCapacity)
public LRUMap(int maxSize,
int initialCapacity,
float loadFactor)
protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry in class LinkedHashMap<K,V>public int getMaxSize()
public void setMaxSize(int i)
Copyright © 2001–2015 Aduna. All rights reserved.