java.util.IteratorOrderedMapIteratorAbstractLinkedList.LinkedListIterator, AbstractLinkedList.LinkedSubListIterator, AbstractLinkedMap.EntrySetIterator, AbstractLinkedMap.KeySetIterator, AbstractLinkedMap.LinkIterator, AbstractLinkedMap.LinkMapIterator, AbstractLinkedMap.ValuesIterator, AbstractOrderedMapIteratorDecorator, CursorableLinkedList.Cursor, CursorableLinkedList.SubCursor, DualTreeBidiMap.BidiOrderedMapIterator, EmptyOrderedIterator, EmptyOrderedMapIterator, UnmodifiableOrderedMapIteratorpublic interface OrderedIterator
extends java.util.Iterator
This iterator allows both forward and reverse iteration through the collection.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasPrevious() |
Checks to see if there is a previous element that can be iterated to.
|
java.lang.Object |
previous() |
Gets the previous element from the collection.
|
boolean hasPrevious()
true if the iterator has a previous elementjava.lang.Object previous()
java.util.NoSuchElementException - if the iteration is finishedCopyright © 2001-2018 Apache Software Foundation. All Rights Reserved.