-
- 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
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
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, nextIndex, previousIndex, remove, set
-
-
-
-
Method Detail
-
next
default E next()
- Specified by:
next
in interfaceDoublyLinkedList.NodeIterator<E>
- Specified by:
next
in interfaceIterator<E>
- Specified by:
next
in interfaceListIterator<E>
-
previous
default 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:
ListIterator.previous()
-
-