Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
org.apache.kahadb.util
public class: LinkedNode [javadoc | source]
java.lang.Object
   org.apache.kahadb.util.LinkedNode

Direct Known Subclasses:
    WriteCommand, ReadOnlyDataFile, DataFile, Sequence

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.
Field Summary
protected  LinkedNodeList<T> list     
protected  T next     
protected  T prev     
Constructor:
 public LinkedNode() 
Method from org.apache.kahadb.util.LinkedNode Summary:
getHeadNode,   getList,   getNext,   getNextCircular,   getPrevious,   getPreviousCircular,   getTailNode,   isHeadNode,   isLinked,   isTailNode,   linkAfter,   linkAfter,   linkBefore,   linkBefore,   linkToHead,   linkToTail,   splitAfter,   splitBefore,   unlink
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.util.LinkedNode Detail:
 public T getHeadNode() 
 public LinkedNodeList<T> getList() 
 public T getNext() 
 public T getNextCircular() 
 public T getPrevious() 
 public T getPreviousCircular() 
 public T getTailNode() 
 public boolean isHeadNode() 
 public boolean isLinked() 
 public boolean isTailNode() 
 public  void linkAfter(T node) 
 public  void linkAfter(LinkedNodeList<T> rightList) 
 public  void linkBefore(T node) 
 public  void linkBefore(LinkedNodeList<T> leftList) 
 public  void linkToHead(LinkedNodeList<T> target) 
 public  void linkToTail(LinkedNodeList<T> target) 
 public LinkedNodeList<T> splitAfter() 
    Splits the list into 2 lists. This node becomes the tail of this list. Then 2nd list is returned.
 public LinkedNodeList<T> splitBefore() 
    Splits the list into 2 lists. This node becomes the head of this list. Then 2nd list is returned.
 public boolean unlink() 
    Removes this node out of the linked list it is chained in.