Modifier and Type | Method and Description |
---|---|
Node<E> |
Node.getNext()
Get the next node in the sequence.
|
Node<E> |
NodeIterator.next()
Returns the next node in the sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setNext(Node<E> next)
Set the next node in the sequence.
|
Constructor and Description |
---|
Node(E element,
Node<E> next)
Create a node holding the given data element and having
the given next node in the sequence.
|
NodeIterator(Node<E> head)
Create an iterator that starts iterating at the node
head |