org.apache.kahadb.util
public class LinkedNodeList<T extends LinkedNode<T>> extends java.lang.Object
Constructor and Description |
---|
LinkedNodeList() |
Modifier and Type | Method and Description |
---|---|
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() |
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() |
java.util.ArrayList<T> |
toArrayList()
Copies the nodes of the LinkedNodeList to an ArrayList.
|
java.lang.String |
toString() |
public LinkedNodeList()
public boolean isEmpty()
public void clear()
public void addLast(LinkedNodeList<T> list)
public void addFirst(LinkedNodeList<T> list)
public T reparent(LinkedNodeList<T> list)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ArrayList<T> toArrayList()
Copyright © 2005-2014. All Rights Reserved.