public static class LongIterators.UnmodifiableBidirectionalIterator extends AbstractLongBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(LongBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
long |
nextLong()
Returns the next element as a primitive type.
|
long |
previousLong()
This implementation delegates to
AbstractLongBidirectionalIterator.previous(). |
back, previousnext, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, skipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(LongBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public long nextLong()
AbstractLongIteratorThis implementation delegates to the corresponding generic method.
nextLong in interface LongIteratornextLong in class AbstractLongIteratorIterator.next()public long previousLong()
AbstractLongBidirectionalIterator
This implementation delegates to AbstractLongBidirectionalIterator.previous().
previousLong in interface LongBidirectionalIteratorpreviousLong in class AbstractLongBidirectionalIteratorListIterator.previous()