K - type of keysV - type of valuespublic class LRUMapCapacityBound<K,V>
extends java.util.LinkedHashMap<K,V>
| Constructor and Description |
|---|
LRUMapCapacityBound(int capacity)
Initializes a new instance of the
LRUMapCapacityBound class with the specified capacity |
LRUMapCapacityBound(int capacity,
java.util.Map<? extends K,? extends V> values)
Initializes a new instance of the
LRUMapCapacityBound class with the specified capacity and initial values |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
removeEldestEntry(java.util.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, sizepublic LRUMapCapacityBound(int capacity)
LRUMapCapacityBound class with the specified capacitycapacity - the maximum capacity for the LRUMapCapacityBoundpublic LRUMapCapacityBound(int capacity,
java.util.Map<? extends K,? extends V> values)
LRUMapCapacityBound class with the specified capacity and initial valuescapacity - the maximum capacity for the LRUMapCapacityBoundvalues - initial values to populate the LRUMapCapacityBoundCopyright © 2018 Frederic Thevenet. All rights reserved.