Class LRUMap<K,V> 
java.lang.Object
org.apache.commons.jcs3.utils.struct.AbstractLRUMap<K,V>
 
org.apache.commons.jcs3.utils.struct.LRUMap<K,V> 
- Type Parameters:
- K-
- V-
- All Implemented Interfaces:
- Map<K,- V> 
- Direct Known Subclasses:
- BlockDiskKeyStore.LRUMapCountLimited,- IndexedDiskCache.LRUMapCountLimited
Simple LRUMap implementation that keeps the number of the objects below or equal maxObjects
- 
Nested Class Summary
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.commons.jcs3.utils.struct.AbstractLRUMapclear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getQuiet, getStatistics, isEmpty, keySet, processRemovedLRU, put, putAll, remove, size, values, verifyCacheMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
LRUMappublic LRUMap()
- 
LRUMap- Parameters:
- maxObjects- maximum number to keep in the map
 
 
- 
- 
Method Details- 
shouldRemove- Specified by:
- shouldRemovein class- AbstractLRUMap<K,- V> 
 
 
-