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 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.Objectpublic java.util.ArrayList<T> toArrayList()
Copyright © 2005-2016 Red Hat, Inc.. All Rights Reserved.