| java.lang.Object org.w3c.util.LRUList
All known Subclasses: org.w3c.util.SyncLRUList, org.w3c.util.AsyncLRUList,
LRUList | abstract public class LRUList (Code) | | |
Constructor Summary | |
public | LRUList() |
getHead | abstract public LRUAble getHead()(Code) | | Obtain the frontmost node.
the frontmost node, or null if list is empty |
getNext | abstract public LRUAble getNext(LRUAble node)(Code) | | Get the next node of this list.
The next node, or null if this one waslast. |
getPrev | abstract public LRUAble getPrev(LRUAble node)(Code) | | Get the previous node of this list.
The previous node, or null if this one waslast. |
getTail | abstract public LRUAble getTail()(Code) | | Obtain the backmost node.
the backmost node, or null if list is empty |
remove | abstract public LRUAble remove(LRUAble node)(Code) | | Removes node if it's in list.
Does nothing if it's not.
When a node is removed, both its links are set to null.
Parameters: node - The node to remove the same node |
removeTail | abstract public LRUAble removeTail()(Code) | | Obtain the backmost node, and remove it from list too.
the backmost node, or null if list is empty |
toHead | abstract public void toHead(LRUAble node)(Code) | | Moves node to front of list. It can be a new node, or it can be
an existing node.
Parameters: node - the node |
toTail | abstract public void toTail(LRUAble node)(Code) | | Moves node to back of list. It can be a new node, or it can be
an existing node.
Parameters: node - the node |
|
|