|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
java.util.LinkedHashMap
jadex.util.collection.LRU
public class LRU
A least recently used map.
Constructor Summary | |
---|---|
LRU(int max)
Create a new LRU. |
|
LRU(int max,
ILRUEntryCleaner cleaner)
Create a new LRU. |
Method Summary | |
---|---|
int |
getMaxEntries()
Get the maximum number of the |
boolean |
removeEldestEntry(Map.Entry eldest)
Remove the eldest entry. |
void |
setCleaner(ILRUEntryCleaner cleaner)
Set the cleaner object. |
void |
setMaxEntries(int max)
Set the maximum number of entries. |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public LRU(int max)
max
- The maximum number of entries.public LRU(int max, ILRUEntryCleaner cleaner)
max
- The maximum number of entries.Method Detail |
---|
public int getMaxEntries()
public void setMaxEntries(int max)
max
- The maximum number of entries.public void setCleaner(ILRUEntryCleaner cleaner)
cleaner
- The cleaner object.public boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry
in class LinkedHashMap
eldest
- The eldest entry.
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.