BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, java.util.Iterator<K>public static class ObjectIterators.UnmodifiableBidirectionalIterator<K> extends java.lang.Object implements ObjectBidirectionalIterator<K>
| Constructor | Description |
|---|---|
UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> i) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
Returns whether there is a previous element.
|
K |
next() |
|
K |
previous() |
Returns the previous element from the collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, skippublic UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> i)
public boolean hasNext()
hasNext in interface java.util.Iterator<K>public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>ListIterator.hasPrevious()public K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>ListIterator.previous()