K
- the type of keys maintained by this mapV
- the type of mapped valuespublic final class FifoMap<K,V> extends LinkedHashMap<K,V>
LinkedHashMap
. This class is not thread safe
(must be synchronized externally).Collections.synchronizedMap(Map)
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
FifoMap(int maxSize) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxSize() |
protected boolean |
removeEldestEntry(Map.Entry<K,V> entry) |
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 int getMaxSize()
protected boolean removeEldestEntry(Map.Entry<K,V> entry)
removeEldestEntry
in class LinkedHashMap<K,V>
Copyright © 2008–2023 Norconex Inc.. All rights reserved.