Class SimpleLinkedListIterator<E>
java.lang.Object
ch.nolix.base.foundation.linkedlist.SimpleLinkedListIterator<E>
- Type Parameters:
E- the type of the elements of the parentSimpleLinkedListof aSimpleLinkedListIterator.
- All Implemented Interfaces:
Iterator<E>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SimpleLinkedListIterator<T> static <T> SimpleLinkedListIterator<T> forStartNode(ch.nolix.base.foundation.linkedlist.SimpleLinkedListNode<T> startNode) booleanhasNext()next()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, remove
-
Method Details
-
forEmptyList
-
forStartNode
public static <T> SimpleLinkedListIterator<T> forStartNode(ch.nolix.base.foundation.linkedlist.SimpleLinkedListNode<T> startNode) -
hasNext
-
next
- Specified by:
nextin interfaceIterator<E>- Throws:
NoSuchElementException
-