Class LinkedNodeList<T extends LinkedNode<T>>
java.lang.Object
org.apache.activemq.store.kahadb.disk.util.LinkedNodeList<T>
- Direct Known Subclasses:
SequenceSet
Provides a list of LinkedNode objects.
- Author:
- chirino
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirst(LinkedNodeList<T> list) voidvoidaddLast(LinkedNodeList<T> list) voidvoidclear()getHead()getTail()booleanisEmpty()reparent(LinkedNodeList<T> list) rotate()Move the head to the tail and returns the new head node.voidMove the head to the tail and returns the new head node.intsize()Copies the nodes of the LinkedNodeList to an ArrayList.toString()
-
Constructor Details
-
LinkedNodeList
public LinkedNodeList()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
addLast
-
addFirst
-
getHead
-
getTail
-
clear
public void clear() -
addLast
-
addFirst
-
reparent
-
rotate
Move the head to the tail and returns the new head node.- Returns:
-
rotateTo
Move the head to the tail and returns the new head node. -
size
public int size() -
toString
-
toArrayList
Copies the nodes of the LinkedNodeList to an ArrayList.- Returns:
-