Class LinkedNodeList<T extends LinkedNode<T>>
- java.lang.Object
-
- org.apache.activemq.store.kahadb.disk.util.LinkedNodeList<T>
-
- Direct Known Subclasses:
SequenceSet
public class LinkedNodeList<T extends LinkedNode<T>> extends Object
Provides a list of LinkedNode objects.- Author:
- chirino
-
-
Constructor Summary
Constructors Constructor Description LinkedNodeList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFirst(LinkedNodeList<T> list)voidaddFirst(T node)voidaddLast(LinkedNodeList<T> list)voidaddLast(T node)voidclear()TgetHead()TgetTail()booleanisEmpty()Treparent(LinkedNodeList<T> list)Trotate()Move the head to the tail and returns the new head node.voidrotateTo(T head)Move the head to the tail and returns the new head node.intsize()ArrayList<T>toArrayList()Copies the nodes of the LinkedNodeList to an ArrayList.StringtoString()
-
-
-
Constructor Detail
-
LinkedNodeList
public LinkedNodeList()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
addLast
public void addLast(LinkedNodeList<T> list)
-
addFirst
public void addFirst(LinkedNodeList<T> list)
-
reparent
public T reparent(LinkedNodeList<T> list)
-
size
public int size()
-
toArrayList
public ArrayList<T> toArrayList()
Copies the nodes of the LinkedNodeList to an ArrayList.- Returns:
-
-