- 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 E
next()
default E
previous()
DoublyLinkedList.ListNode<E>
previousNode()
Returns the previousDoublyLinkedList.ListNode
in the list and moves the cursor position backwards.
-
Method Details
-
next
- Specified by:
next
in interfaceDoublyLinkedList.NodeIterator<E>
- Specified by:
next
in interfacejava.util.Iterator<E>
- Specified by:
next
in interfacejava.util.ListIterator<E>
-
previous
- Specified by:
previous
in interfacejava.util.ListIterator<E>
-
previousNode
DoublyLinkedList.ListNode<E> previousNode()Returns the previousDoublyLinkedList.ListNode
in the list and moves the cursor position backwards.- Returns:
- the previous
ListNode
- See Also:
ListIterator.previous()
-