Interface DoublyLinkedList.ListNodeIterator<E>
- Type Parameters:
E- the list element type
- All Superinterfaces:
DoublyLinkedList.NodeIterator<E>, Iterator<E>, ListIterator<E>
- All Known Implementing Classes:
DoublyLinkedList.ListNodeIteratorImpl
- Enclosing class:
DoublyLinkedList<E>
public static interface DoublyLinkedList.ListNodeIterator<E>
extends ListIterator<E>, DoublyLinkedList.NodeIterator<E>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Enext()default Eprevious()Returns the previousDoublyLinkedList.ListNodein the list and moves the cursor position backwards.Methods inherited from interface DoublyLinkedList.NodeIterator
nextNodeMethods inherited from interface Iterator
forEachRemainingMethods inherited from interface ListIterator
add, hasNext, hasPrevious, nextIndex, previousIndex, remove, set
-
Method Details
-
next
- Specified by:
nextin interfaceDoublyLinkedList.NodeIterator<E>- Specified by:
nextin interfaceIterator<E>- Specified by:
nextin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>
-
previousNode
DoublyLinkedList.ListNode<E> previousNode()Returns the previousDoublyLinkedList.ListNodein the list and moves the cursor position backwards.- Returns:
- the previous
ListNode - See Also:
-