org.w3c.util
Class AsyncLRUList
java.lang.Object
|
+--org.w3c.util.LRUList
|
+--org.w3c.util.AsyncLRUList
- public class AsyncLRUList
- extends LRUList
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AsyncLRUList
public AsyncLRUList()
toHead
public final void toHead(LRUAble node)
- Description copied from class: LRUList
- Moves node to front of list. It can be a new node, or it can be
an existing node.
- Overrides:
- toHead in class LRUList
- Tags copied from class: LRUList
- Parameters:
node
- the node
toTail
public final void toTail(LRUAble node)
- Description copied from class: LRUList
- Moves node to back of list. It can be a new node, or it can be
an existing node.
- Overrides:
- toTail in class LRUList
- Tags copied from class: LRUList
- Parameters:
node
- the node
remove
public final LRUAble remove(LRUAble node)
- Description copied from class: LRUList
- 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.
- Overrides:
- remove in class LRUList
- Tags copied from class: LRUList
- Parameters:
node
- The node to remove- Returns:
- the same node
getTail
public final LRUAble getTail()
- Description copied from class: LRUList
- Obtain the backmost node.
- Overrides:
- getTail in class LRUList
- Tags copied from class: LRUList
- Returns:
- the backmost node, or null if list is empty
getHead
public final LRUAble getHead()
- Description copied from class: LRUList
- Obtain the frontmost node.
- Overrides:
- getHead in class LRUList
- Tags copied from class: LRUList
- Returns:
- the frontmost node, or null if list is empty
removeTail
public final LRUAble removeTail()
- Description copied from class: LRUList
- Obtain the backmost node, and remove it from list too.
- Overrides:
- removeTail in class LRUList
- Tags copied from class: LRUList
- Returns:
- the backmost node, or null if list is empty
getNext
public final LRUAble getNext(LRUAble node)
- Description copied from class: LRUList
- Get the next node of this list.
- Overrides:
- getNext in class LRUList
- Tags copied from class: LRUList
- Returns:
- The next node, or null if this one was
last.
getPrev
public final LRUAble getPrev(LRUAble node)
- Description copied from class: LRUList
- Get the previous node of this list.
- Overrides:
- getPrev in class LRUList
- Tags copied from class: LRUList
- Returns:
- The previous node, or null if this one was
last.