public static class IntIterators.UnmodifiableListIterator extends java.lang.Object implements IntListIterator
| 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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, next, previous, remove, set, setback, skipforEachRemainingpublic 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>