public class SimpleLinkedList<T> extends AbstractLinkedList<T,SimpleLinkedList.LinkedListNode<T>,SimpleLinkedList<T>>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleLinkedList.LinkedListNode<T> |
protected class |
SimpleLinkedList.ListIter |
protected class |
SimpleLinkedList.NodeIteratorReverse |
AbstractLinkedList.Node<T,N extends AbstractLinkedList.Node<T,N>>, AbstractLinkedList.NodeIterator| Constructor and Description |
|---|
SimpleLinkedList() |
| Modifier and Type | Method and Description |
|---|---|
void |
forEachReverse(java.util.function.Consumer<T> consumer) |
Iterator<T> |
iteratorReverse() |
ListIterator<T> |
listIterator() |
protected SimpleLinkedList.LinkedListNode<T> |
newNode(T item)
Called whenever a node is created, including the
AbstractLinkedList.head node. |
protected void |
onAdd(SimpleLinkedList.LinkedListNode<T> previous,
SimpleLinkedList.LinkedListNode<T> next) |
add, clear, consume, head, isEmpty, iterator, join, tail, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic void forEachReverse(java.util.function.Consumer<T> consumer)
public ListIterator<T> listIterator()
protected SimpleLinkedList.LinkedListNode<T> newNode(T item)
AbstractLinkedListAbstractLinkedList.head node.newNode in class AbstractLinkedList<T,SimpleLinkedList.LinkedListNode<T>,SimpleLinkedList<T>>item - -> The item that will become the value for this node. Expect a
null for the head node.protected void onAdd(SimpleLinkedList.LinkedListNode<T> previous, SimpleLinkedList.LinkedListNode<T> next)
onAdd in class AbstractLinkedList<T,SimpleLinkedList.LinkedListNode<T>,SimpleLinkedList<T>>Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.