| Modifier and Type | Field and Description |
|---|---|
T |
data |
LinkedListNode<T> |
predecessor |
LinkedListNode<T> |
successor |
| Constructor and Description |
|---|
LinkedListNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(LinkedListNode<T> node) |
static <S> LinkedListNode<S> |
create(Iterable<? extends S> it) |
boolean |
isFirst() |
boolean |
isHead() |
boolean |
isLast() |
boolean |
isTail() |
Iterator<T> |
iterator()
Iterator over the items in the linked list
|
Iterator<LinkedListNode<T>> |
nodeIterator()
Iterator over the node objects (of which each holds an item) in the list
|
void |
relink() |
int |
size()
Remaining size of the list from this node
|
List<T> |
toList() |
String |
toString() |
void |
unlink() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic T data
public LinkedListNode<T> predecessor
public LinkedListNode<T> successor
public void append(LinkedListNode<T> node)
public void unlink()
public void relink()
public boolean isHead()
public boolean isTail()
public boolean isFirst()
public boolean isLast()
public static <S> LinkedListNode<S> create(Iterable<? extends S> it)
public int size()
public Iterator<LinkedListNode<T>> nodeIterator()
Copyright © 2018. All rights reserved.