public static class LongIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements LongBidirectionalIterator
| 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, 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()