public static class IntIterators.UnmodifiableListIterator extends AbstractIntListIterator
Constructor and Description |
---|
UnmodifiableListIterator(IntListIterator i) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
Integer |
next()
Delegates to the corresponding type-specific method.
|
int |
nextIndex() |
int |
nextInt()
Delegates to the corresponding generic method.
|
Integer |
previous()
Delegates to the corresponding type-specific method.
|
int |
previousIndex() |
int |
previousInt()
Delegates to the corresponding generic method.
|
add, add, set, set
back
remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
back
skip
skip
forEachRemaining
public UnmodifiableListIterator(IntListIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public int nextInt()
AbstractIntIterator
nextInt
in interface IntIterator
nextInt
in class AbstractIntIterator
Iterator.next()
public int previousInt()
AbstractIntBidirectionalIterator
previousInt
in interface IntBidirectionalIterator
previousInt
in class AbstractIntBidirectionalIterator
ListIterator.previous()
public int nextIndex()
public int previousIndex()
public Integer next()
AbstractIntIterator
next
in interface Iterator<Integer>
next
in interface ListIterator<Integer>
next
in class AbstractIntIterator
public Integer previous()
AbstractIntBidirectionalIterator
previous
in interface BidirectionalIterator<Integer>
previous
in interface ListIterator<Integer>
previous
in class AbstractIntBidirectionalIterator
ListIterator.previous()