Interface OrderedIterator<E>
- Type Parameters:
- E- the type of elements returned by this iterator.
- All Superinterfaces:
- Iterator<E>
- All Known Subinterfaces:
- OrderedMapIterator<K,,- V> - ResettableListIterator<E>
- All Known Implementing Classes:
- AbstractLinkedList.LinkedListIterator,- AbstractLinkedList.LinkedSubListIterator,- AbstractLinkedListJava21.LinkedListIterator,- AbstractLinkedListJava21.LinkedSubListIterator,- AbstractLinkedMap.EntrySetIterator,- AbstractLinkedMap.KeySetIterator,- AbstractLinkedMap.LinkMapIterator,- AbstractLinkedMap.ValuesIterator,- AbstractOrderedMapIteratorDecorator,- AbstractSortedMapDecorator.SortedMapIterator,- ArrayListIterator,- CursorableLinkedList.Cursor,- CursorableLinkedList.SubCursor,- DualTreeBidiMap.BidiOrderedMapIterator,- EmptyListIterator,- EmptyOrderedIterator,- EmptyOrderedMapIterator,- ListIteratorWrapper,- LoopingListIterator,- ObjectArrayListIterator,- ReverseListIterator,- SingletonListIterator,- UnmodifiableOrderedMapIterator
Defines an iterator that operates over an ordered container. Subset of 
ListIterator.
 This iterator allows both forward and reverse iteration through the container.
- Since:
- 3.0
- 
Method Details- 
hasPreviousboolean hasPrevious()Checks to see if there is a previous element that can be iterated to.- Returns:
- trueif the iterator has a previous element
 
- 
previousGets the previous element from the container.- Returns:
- the previous element in the iteration
- Throws:
- NoSuchElementException- if the iteration is finished
 
 
-