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 volatile LinkedNodeList<T extends LinkedNode<T>> list
protected volatile T extends LinkedNode<T> next
protected volatile T extends LinkedNode<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 void linkAfter(T node)
node
- the node to link after this node.public void linkAfter(LinkedNodeList<T> rightList)
rightList
- the node to link after this node.public void linkBefore(T node)
node
- the node to link after this node.public void linkBefore(LinkedNodeList<T> leftList)
leftList
- the node to link after this node.public void linkToTail(LinkedNodeList<T> target)
public void linkToHead(LinkedNodeList<T> target)
public boolean unlink()
public LinkedNodeList<T> splitAfter()
public LinkedNodeList<T> splitBefore()
public boolean isLinked()
public LinkedNodeList<T> getList()
Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.