public static class LongIterators.UnmodifiableBidirectionalIterator extends Object implements LongBidirectionalIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Modifier and Type | Field and Description |
|---|---|
protected LongBidirectionalIterator |
i |
| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, nextforEachRemainingprotected final LongBidirectionalIterator i
public 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()Copyright © 2020. All rights reserved.