public static class IntIterators.UnmodifiableListIterator extends Object implements IntListIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong| Modifier and Type | Field and Description |
|---|---|
protected IntListIterator |
i |
| Constructor and Description |
|---|
UnmodifiableListIterator(IntListIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextIndex() |
int |
nextInt()
Returns the next element as a primitive type.
|
int |
previousIndex() |
int |
previousInt()
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 IntListIterator i
public UnmodifiableListIterator(IntListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<Integer>hasPrevious in interface ListIterator<Integer>ListIterator.hasPrevious()public int nextInt()
IntIteratornextInt in interface IntIteratornextInt in interface PrimitiveIterator.OfIntIterator.next()public int previousInt()
IntBidirectionalIteratorpreviousInt in interface IntBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<Integer>public int previousIndex()
previousIndex in interface ListIterator<Integer>Copyright © 2020. All rights reserved.