|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntListIterator
This class represents iterators over lists of int values.
ListIterator
Method Summary | |
---|---|
void |
add(int v)
Adds a specified element to the list at this iterator's current position. |
boolean |
hasPrevious()
Indicates whether more int values can be returned by this iterator by calling previous(). |
int |
nextIndex()
Returns the index of the element that would be returned by a call to next(). |
int |
previous()
Returns the previous int value of this iterator. |
int |
previousIndex()
Returns the index of the element that would be returned by a call to previous(). |
void |
set(int v)
Sets the last element returned to a specified value. |
Methods inherited from interface zombie.util.IntIterator |
---|
hasNext, next, remove |
Method Detail |
---|
void add(int v)
v
- the element to add.
java.lang.UnsupportedOperationException
- if addition is not supported by this
iterator.boolean hasPrevious()
previous()
int nextIndex()
IntIterator.next()
int previous()
java.util.NoSuchElementException
- if no more elements are available from this
iterator in backwards direction.hasPrevious()
int previousIndex()
previous()
void set(int v)
v
- the new value of the element.
java.lang.UnsupportedOperationException
- if replacement is not supported by this iterator.
java.lang.IllegalStateException
- if no element has been returned by this iterator
yet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |