|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.util.LRUList
public abstract class LRUList
Field Summary | |
---|---|
protected LRUNode |
head
|
protected LRUNode |
tail
|
Constructor Summary | |
---|---|
LRUList()
|
Method Summary | |
---|---|
abstract LRUAble |
getHead()
Obtain the frontmost node. |
abstract LRUAble |
getNext(LRUAble node)
Get the next node of this list. |
abstract LRUAble |
getPrev(LRUAble node)
Get the previous node of this list. |
abstract LRUAble |
getTail()
Obtain the backmost node. |
abstract LRUAble |
remove(LRUAble node)
Removes node if it's in list. |
abstract LRUAble |
removeTail()
Obtain the backmost node, and remove it from list too. |
abstract void |
toHead(LRUAble node)
Moves node to front of list. |
abstract void |
toTail(LRUAble node)
Moves node to back of list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LRUNode head
protected LRUNode tail
Constructor Detail |
---|
public LRUList()
Method Detail |
---|
public abstract void toHead(LRUAble node)
node
- the nodepublic abstract void toTail(LRUAble node)
node
- the nodepublic abstract LRUAble remove(LRUAble node)
node
- The node to remove
public abstract LRUAble getTail()
public abstract LRUAble getHead()
public abstract LRUAble removeTail()
public abstract LRUAble getNext(LRUAble node)
public abstract LRUAble getPrev(LRUAble node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |