- Type Parameters:
E
- the list element type
- All Superinterfaces:
DoublyLinkedList.NodeIterator<E>
,Iterator<E>
,ListIterator<E>
- Enclosing class:
- DoublyLinkedList<E>
public static interface DoublyLinkedList.ListNodeIterator<E>
extends ListIterator<E>, DoublyLinkedList.NodeIterator<E>
-
Method Summary
Modifier and TypeMethodDescriptiondefault E
next()
default E
previous()
Returns the previousDoublyLinkedList.ListNode
in the list and moves the cursor position backwards.Methods inherited from interface org.jgrapht.util.DoublyLinkedList.NodeIterator
nextNode
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, nextIndex, previousIndex, remove, set
-
Method Details
-
next
- Specified by:
next
in interfaceDoublyLinkedList.NodeIterator<E>
- Specified by:
next
in interfaceIterator<E>
- Specified by:
next
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<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:
-