Package org.apache.activemq.util
Class LinkedNode
java.lang.Object
org.apache.activemq.util.LinkedNode
- Direct Known Subclasses:
PendingNode
Provides a base class for you to extend when you want object to maintain a
doubly linked list to other objects without using a collection class.
- Author:
- chirino
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()booleanbooleanlinkAfter(LinkedNode rightHead) linkBefore(LinkedNode leftHead) voidreset()voidunlink()Removes this node out of the linked list it is chained in.
-
Field Details
-
next
-
prev
-
tail
protected boolean tail
-
-
Constructor Details
-
LinkedNode
public LinkedNode()
-
-
Method Details
-
getHeadNode
-
getTailNode
-
getNext
-
getPrevious
-
isHeadNode
public boolean isHeadNode() -
isTailNode
public boolean isTailNode() -
linkAfter
- Parameters:
rightHead- the node to link after this node.- Returns:
- this
-
linkBefore
- Parameters:
leftHead- the node to link after this node.- Returns:
- this
-
unlink
public void unlink()Removes this node out of the linked list it is chained in. -
reset
public void reset()
-