public static class ObjectIterators.UnmodifiableBidirectionalIterator<K> extends java.lang.Object implements ObjectBidirectionalIterator<K>
Constructor and Description |
---|
UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<? extends K> i) |
Modifier and Type | Method and Description |
---|---|
void |
forEachRemaining(java.util.function.Consumer<? super K> action) |
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, wait
back, skip
public UnmodifiableBidirectionalIterator(ObjectBidirectionalIterator<? extends K> i)
public boolean hasNext()
hasNext
in interface java.util.Iterator<K>
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface BidirectionalIterator<K>
ListIterator.hasPrevious()
public K previous()
BidirectionalIterator
previous
in interface BidirectionalIterator<K>
ListIterator.previous()