- Type Parameters:
E
- the list element type
- All Superinterfaces:
Iterator<E>
- All Known Subinterfaces:
DoublyLinkedList.ListNodeIterator<E>
- Enclosing class:
- DoublyLinkedList<E>
-
Method Summary
Modifier and TypeMethodDescriptiondefault E
next()
nextNode()
Returns the nextDoublyLinkedList.ListNode
in the list and advances the cursor position.Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, remove
-
Method Details
-
next
-
nextNode
DoublyLinkedList.ListNode<E> nextNode()Returns the nextDoublyLinkedList.ListNode
in the list and advances the cursor position.- Returns:
- the next
ListNode
- See Also:
-