- Type Parameters:
E- the list element type
- All Superinterfaces:
DoublyLinkedList.NodeIterator<E>,java.util.Iterator<E>,java.util.ListIterator<E>
- Enclosing class:
- DoublyLinkedList<E>
public static interface DoublyLinkedList.ListNodeIterator<E> extends java.util.ListIterator<E>, DoublyLinkedList.NodeIterator<E>
-
Method Summary
Modifier and Type Method Description default Enext()default Eprevious()DoublyLinkedList.ListNode<E>previousNode()Returns the previousDoublyLinkedList.ListNodein the list and moves the cursor position backwards.
-
Method Details
-
next
- Specified by:
nextin interfaceDoublyLinkedList.NodeIterator<E>- Specified by:
nextin interfacejava.util.Iterator<E>- Specified by:
nextin interfacejava.util.ListIterator<E>
-
previous
- Specified by:
previousin interfacejava.util.ListIterator<E>
-
previousNode
DoublyLinkedList.ListNode<E> previousNode()Returns the previousDoublyLinkedList.ListNodein the list and moves the cursor position backwards.- Returns:
- the previous
ListNode - See Also:
ListIterator.previous()
-