public abstract class SortedLinkedListNode<T extends SortedLinkedListNode<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SortedLinkedList<T> |
list |
protected T |
next |
protected T |
prev |
| Constructor and Description |
|---|
SortedLinkedListNode() |
| Modifier and Type | Method and Description |
|---|---|
T |
getHeadNode() |
SortedLinkedList<T> |
getList() |
T |
getNext() |
T |
getNextCircular() |
T |
getPrevious() |
T |
getPreviousCircular() |
abstract long |
getSequence() |
T |
getTailNode() |
boolean |
isHeadNode() |
boolean |
isLinked() |
boolean |
isTailNode() |
protected void |
linkAfter(T node) |
protected void |
linkBefore(T node) |
protected void |
linkToHead(SortedLinkedList<T> target)
Adds the specified node to the head of the list.
|
boolean |
unlink()
Removes this node out of the linked list it is chained in.
|
protected SortedLinkedList<T extends SortedLinkedListNode<T>> list
protected T extends SortedLinkedListNode<T> next
protected T extends SortedLinkedListNode<T> prev
public T getHeadNode()
public T getTailNode()
public T getNext()
public T getPrevious()
public T getNextCircular()
public T getPreviousCircular()
public boolean isHeadNode()
public boolean isTailNode()
public boolean unlink()
protected void linkToHead(SortedLinkedList<T> target)
sub - The sub listprotected void linkAfter(T node)
node - the node to link after this node.protected void linkBefore(T node)
node - the node to link after this node.public abstract long getSequence()
public boolean isLinked()
public SortedLinkedList<T> getList()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.