E - the type to iterate overjava.util.Iterator<E>OrderedMapIterator<K,V>, ResettableListIterator<E>AbstractLinkedList.LinkedListIterator, AbstractLinkedList.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, UnmodifiableOrderedMapIteratorpublic interface OrderedIterator<E>
extends java.util.Iterator<E>
ListIterator.
This iterator allows both forward and reverse iteration through the container.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasPrevious() |
Checks to see if there is a previous element that can be iterated to.
|
E |
previous() |
Gets the previous element from the container.
|
boolean hasPrevious()
true if the iterator has a previous elementE previous()
java.util.NoSuchElementException - if the iteration is finishedCopyright © 2001-2019 - Apache Software Foundation