public class LinkedNodeList<T extends LinkedNode<T>> extends 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() |
ArrayList<T> |
toArrayList()
Copies the nodes of the LinkedNodeList to an ArrayList.
|
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 ArrayList<T> toArrayList()
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.