| java.util.LinkedHashMap org.cougaar.util.LRUCache
LRUCache | public class LRUCache extends LinkedHashMap (Code) | | LRUCache is a simple extension of the standard LinkedHashMap
to implement a fixed-size, access-ordered LRU Cache.
This implementation does no system-time-based removes as
LRUExpireMap does.
|
Constructor Summary | |
public | LRUCache(int capacity) |
Method Summary | |
protected boolean | removeEldestEntry(Map.Entry eldest) Called by the LinkedHashMap when an entry is added,
this allows the cache to remove the LRU "eldest" entry. |
LRUCache | public LRUCache(int capacity)(Code) | | |
removeEldestEntry | protected boolean removeEldestEntry(Map.Entry eldest)(Code) | | Called by the LinkedHashMap when an entry is added,
this allows the cache to remove the LRU "eldest" entry.
|
|
|