| Modifier and Type | Field and Description |
|---|---|
protected LinkedNodeList<T> |
list |
protected T |
next |
protected T |
prev |
| Constructor and Description |
|---|
LinkedNode() |
| Modifier and Type | Method and Description |
|---|---|
T |
getHeadNode() |
LinkedNodeList<T> |
getList() |
T |
getNext() |
T |
getNextCircular() |
T |
getPrevious() |
T |
getPreviousCircular() |
T |
getTailNode() |
boolean |
isHeadNode() |
boolean |
isLinked() |
boolean |
isTailNode() |
void |
linkAfter(LinkedNodeList<T> rightList) |
void |
linkAfter(T node) |
void |
linkBefore(LinkedNodeList<T> leftList) |
void |
linkBefore(T node) |
void |
linkToHead(LinkedNodeList<T> target) |
void |
linkToTail(LinkedNodeList<T> target) |
LinkedNodeList<T> |
splitAfter()
Splits the list into 2 lists.
|
LinkedNodeList<T> |
splitBefore()
Splits the list into 2 lists.
|
boolean |
unlink()
Removes this node out of the linked list it is chained in.
|
protected LinkedNodeList<T extends LinkedNode<T>> list
protected T extends LinkedNode<T> next
protected T extends LinkedNode<T> prev
public final T getHeadNode()
public final T getTailNode()
public final T getNext()
public final T getPrevious()
public final T getNextCircular()
public final T getPreviousCircular()
public final boolean isHeadNode()
public final boolean isTailNode()
public final void linkAfter(T node)
node - the node to link after this node.public final void linkAfter(LinkedNodeList<T> rightList)
rightList - the node to link after this node.public final void linkBefore(T node)
node - the node to link after this node.public final void linkBefore(LinkedNodeList<T> leftList)
leftList - the node to link after this node.public final void linkToTail(LinkedNodeList<T> target)
public final void linkToHead(LinkedNodeList<T> target)
public final boolean unlink()
public final LinkedNodeList<T> splitAfter()
public final LinkedNodeList<T> splitBefore()
public final boolean isLinked()
public final LinkedNodeList<T> getList()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.