-
- 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
All Methods Instance Methods Abstract Methods Default Methods 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.-
Methods inherited from interface org.jgrapht.util.DoublyLinkedList.NodeIterator
nextNode
-
-
-
-
Method Detail
-
next
default E next()
- Specified by:
next
in interfaceDoublyLinkedList.NodeIterator<E>
- Specified by:
next
in interfacejava.util.Iterator<E>
- Specified by:
next
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()
-
-