public static class ObjectIterators.UnmodifiableBidirectionalIterator<K> extends Object implements ObjectBidirectionalIterator<K>
| Modifier and Type | Field and Description |
|---|---|
protected ObjectBidirectionalIterator<K> |
i |
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
K |
next() |
K |
previous()
Returns the previous element from the collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, skipforEachRemaining, removeprotected final ObjectBidirectionalIterator<K> i
public UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<K> i)
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>ListIterator.hasPrevious()public K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>ListIterator.previous()Copyright © 2020. All rights reserved.