Modifier and Type | Class and Description |
---|---|
protected class |
DoublyLinkedList.DoublyLinkedListIterator |
Modifier and Type | Field and Description |
---|---|
protected ListNode2<T> |
head |
protected int |
size |
protected ListNode2<T> |
tail |
Constructor and Description |
---|
DoublyLinkedList() |
Modifier and Type | Method and Description |
---|---|
void |
add(ListNode2<T> node) |
ListNode2<T> |
add(T value)
Append to head of list
|
void |
addAfter(ListNode2<T> node,
ListNode2<T> newNode) |
ListNode2<T> |
addAfter(ListNode2<T> node,
T value) |
ListNode2<T> |
enqueue(T value)
Prepend to tail of list
|
T |
first() |
ListNode2<T> |
head() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
last() |
void |
remove(ListNode2<T> node) |
int |
size() |
ListNode2<T> |
tail() |
T[] |
toArray() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
Copyright © 2019. All rights reserved.