public static class LongIterators.UnmodifiableBidirectionalIterator extends Object implements LongBidirectionalIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| 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()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, nextforEachRemainingpublic UnmodifiableBidirectionalIterator(LongBidirectionalIterator i)
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Long>ListIterator.hasPrevious()public long nextLong()
LongIteratornextLong in interface LongIteratornextLong in interface PrimitiveIterator.OfLongIterator.next()public long previousLong()
LongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorListIterator.previous()