BidirectionalIterator<java.lang.Long>, LongBidirectionalIterator, LongIterator, ObjectBidirectionalIterator<java.lang.Long>, ObjectIterator<java.lang.Long>, java.util.Iterator<java.lang.Long>, java.util.PrimitiveIterator<java.lang.Long,java.util.function.LongConsumer>, java.util.PrimitiveIterator.OfLongpublic static class LongIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements LongBidirectionalIterator
| Constructor | Description |
|---|---|
UnmodifiableBidirectionalIterator(LongBidirectionalIterator i) |
| Modifier and Type | Method | 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.
|
back, previous, skipforEachRemaining, nextpublic UnmodifiableBidirectionalIterator(LongBidirectionalIterator i)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<java.lang.Long>ListIterator.hasPrevious()public long nextLong()
LongIteratornextLong in interface LongIteratornextLong in interface java.util.PrimitiveIterator.OfLongIterator.next()public long previousLong()
LongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorListIterator.previous()