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, 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 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-2016 Aduna. All Rights Reserved.