Package org.postgresql.util
Class LruCache.LimitedMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<Key,Value>
-
- org.postgresql.util.LruCache.LimitedMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<Key,Value>
- Enclosing class:
- LruCache<Key,Value extends CanEstimateSize>
private class LruCache.LimitedMap extends java.util.LinkedHashMap<Key,Value>
-
-
Constructor Summary
Constructors Constructor Description LimitedMap(int initialCapacity, float loadFactor, boolean accessOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
removeEldestEntry(java.util.Map.Entry<Key,Value> eldest)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
removeEldestEntry
protected boolean removeEldestEntry(java.util.Map.Entry<Key,Value> eldest)
- Overrides:
removeEldestEntry
in classjava.util.LinkedHashMap<Key,Value extends CanEstimateSize>
-
-