final class BoundedLinkedHashMap<K,V>
extends java.util.LinkedHashMap<K,V>
Modifier and Type | Field and Description |
---|---|
private int |
maxSize |
private static long |
serialVersionUID |
Constructor and Description |
---|
BoundedLinkedHashMap(int maxSize) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getMaxSize()
Returns the maximum size of this map beyond which the eldest entry
will get removed.
|
protected boolean |
removeEldestEntry(java.util.Map.Entry<K,V> eldest)
Returns true if the size of this map exceeds the maximum.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
private static final long serialVersionUID
private final int maxSize