BidirectionalIterator<java.lang.Integer>, IntBidirectionalIterator, IntIterator, IntListIterator, ObjectBidirectionalIterator<java.lang.Integer>, ObjectIterator<java.lang.Integer>, java.util.Iterator<java.lang.Integer>, java.util.ListIterator<java.lang.Integer>, java.util.PrimitiveIterator<java.lang.Integer,java.util.function.IntConsumer>, java.util.PrimitiveIterator.OfIntpublic static class IntIterators.UnmodifiableListIterator extends java.lang.Object implements IntListIterator
| Constructor | Description |
|---|---|
UnmodifiableListIterator(IntListIterator i) |
| Modifier and Type | Method | 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.
|
back, skipforEachRemainingadd, add, next, previous, remove, set, setpublic UnmodifiableListIterator(IntListIterator i)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>hasNext in interface java.util.ListIterator<java.lang.Integer>public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<java.lang.Integer>hasPrevious in interface java.util.ListIterator<java.lang.Integer>ListIterator.hasPrevious()public int nextInt()
IntIteratornextInt in interface IntIteratornextInt in interface java.util.PrimitiveIterator.OfIntIterator.next()public int previousInt()
IntBidirectionalIteratorpreviousInt in interface IntBidirectionalIteratorListIterator.previous()public int nextIndex()
nextIndex in interface java.util.ListIterator<java.lang.Integer>public int previousIndex()
previousIndex in interface java.util.ListIterator<java.lang.Integer>