| org.archive.util.LRU
LRU | public class LRU extends LinkedHashMap (Code) | | A least-recently used cache. As new entries are added to the map, the
least-recently accessed entries are removed.
author: pjack< Parameters: K - > The key type of the LRU< Parameters: V - > The value type of the LRU |
Constructor Summary | |
public | LRU(int max) Constructor. |
LRU | public LRU(int max)(Code) | | Constructor.
Parameters: max - the maximum number of entries to cache |
removeEldestEntry | protected boolean removeEldestEntry(Map.Entry<K, V> entry)(Code) | | |
|
|