|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntegerIterator
An iterator for a list of integer's.
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if this list iterator has more elements when traversing the list in the forward direction. |
boolean |
hasPrevious()
Returns true if this list iterator has more elements when traversing the list in the reverse direction. |
int |
next()
Returns the next element in the list. |
int |
previous()
Returns the previous element in the list. |
void |
remove()
Removes from the list the last element returned by the iterator. |
Method Detail |
---|
boolean hasNext()
int next()
boolean hasPrevious()
int previous()
void remove()
Some implementations of IntegerIterator may choose to not implement this method, in which case an appropriate exception is generated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |