|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.cache.fifo.FifoList<T> org.egothor.cache.lru.LruList<T>
T
- items stored in the listpublic class LruList<T>
Represents a LRU (Least Recently Used) list.
Constructor Summary | |
---|---|
LruList(int intendedCapacity)
Constructor for the LruList object. |
Method Summary | |
---|---|
boolean |
update(T entry)
Removes the item from the current position and adds it to the newest (MRU) position. |
Methods inherited from class org.egothor.cache.fifo.FifoList |
---|
add, clear, contains, getNewest, getOldest, remove, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LruList(int intendedCapacity)
intendedCapacity
- maximum number of items this list can hold (but can be exceeded whenever needed)Method Detail |
---|
public boolean update(T entry)
entry
- item to update
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |