|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.util.MapList | +--anthill.util.HashList
This class implements a HashList, which is a combination of a HashMap and a doubly linked list. The linked listed is always in sorted order according to the least recently used (LRU) scheme.
Inner classes inherited from class anthill.util.MapList |
MapList.Pair |
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Fields inherited from class anthill.util.MapList |
map |
Constructor Summary | |
HashList(int maxsize)
Instantiate a new HashList object by setting the maximum number of key, value pairs which may be contained in it. |
|
HashList(int maxsize,
int maxtime)
Instantiate a new HashList object by setting the maximum number of composite Pair objects which may be contained in it. |
Methods inherited from class anthill.util.MapList |
add, clear, containsKey, containsValue, end, entrySet, get, getHeadKey, getMaxsize, getMaxtime, isEmpty, keyList, keySet, put, putAll, remove, removeChunck, run, setMaxsize, setMaxtime, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public HashList(int maxsize, int maxtime)
Pair
objects which may be contained in it.maxsize
- maximum number of pair objects which may
be contained in this HashList. If zero, there is no upper
limit to the the size.maxtime
- maximum numberpublic HashList(int maxsize)
maxsize
- Maximum number of objects which may be contained in
this HashList. If zero, there is no upper limit to the the size.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |