| java.util.LinkedHashMap fr.aliacom.util.LRUCache
LRUCache | public class LRUCache extends LinkedHashMap (Code) | | This hashmap implements LRU cache policy.
The eldest entries will be automagically removed
so that the number of elements is always lesser or equal
to the specified maxsize.
author: tom author: (C) 2001, 2002 Thomas Cataldo |
Constructor Summary | |
public | LRUCache(int maxsize) Creates an hashmap that will cache maxsize elements. |
LRUCache | public LRUCache(int maxsize)(Code) | | Creates an hashmap that will cache maxsize elements.
The eldest elements are automagically removed (LRU eviction policy).
Parameters: maxsize - |
removeEldestEntry | protected boolean removeEldestEntry()(Code) | | |
|
|