public static class LongIterators.UnmodifiableListIterator extends Object implements LongListIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Modifier and Type | Field and Description |
|---|---|
protected LongListIterator |
i |
| Constructor and Description |
|---|
UnmodifiableListIterator(LongListIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextIndex() |
long |
nextLong()
Returns the next element as a primitive type.
|
int |
previousIndex() |
long |
previousLong()
Returns the previous element as a primitive type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemainingforEachRemainingprotected final LongListIterator i
public UnmodifiableListIterator(LongListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Long>hasPrevious in interface ListIterator<Long>ListIterator.hasPrevious()public long nextLong()
LongIteratornextLong in interface LongIteratornextLong in interface PrimitiveIterator.OfLongIterator.next()public long previousLong()
LongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Long>public int previousIndex()
previousIndex in interface ListIterator<Long>Copyright © 2020. All rights reserved.