|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fusesource.hawtdb.util.list.LinkedNodeList<T>
public class LinkedNodeList<T extends LinkedNode<T>>
Provides a list of LinkedNode objects.
Constructor Summary | |
---|---|
LinkedNodeList()
|
Method Summary | |
---|---|
void |
addFirst(LinkedNodeList<T> list)
|
void |
addFirst(T node)
|
void |
addLast(LinkedNodeList<T> list)
|
void |
addLast(T node)
|
void |
clear()
|
T |
getHead()
|
T |
getTail()
|
boolean |
isEmpty()
|
java.util.Iterator<T> |
iterator()
|
T |
reparent(LinkedNodeList<T> list)
|
T |
rotate()
Move the head to the tail and returns the new head node. |
void |
rotateTo(T head)
Move the head to the tail and returns the new head node. |
int |
size()
|
T[] |
toArray(T[] array)
Copies the nodes of the LinkedNodeList to the specified array. |
java.util.ArrayList<T> |
toArrayList()
Copies the nodes of the LinkedNodeList to an ArrayList. |
java.util.ArrayList<T> |
toArrayListReversed()
Copies the nodes of the LinkedNodeList to an ArrayList in reverse order. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkedNodeList()
Method Detail |
---|
public boolean isEmpty()
public void addLast(T node)
public void addFirst(T node)
public T getHead()
public T getTail()
public void clear()
public void addLast(LinkedNodeList<T> list)
public void addFirst(LinkedNodeList<T> list)
public T reparent(LinkedNodeList<T> list)
public T rotate()
public void rotateTo(T head)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ArrayList<T> toArrayList()
public T[] toArray(T[] array)
public java.util.ArrayList<T> toArrayListReversed()
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T extends LinkedNode<T>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |