|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IntIterator
An interface for collections over native integers. (among other things, this is useful for iterating domains) Note that it does not extend Iterator, as we iterate over native int, and not Object.
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
int |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the getIterator (optional operation). |
Method Detail |
---|
boolean hasNext()
int next()
java.util.NoSuchElementException
- iteration has no more elements.void remove()
java.lang.UnsupportedOperationException
- if the remove
operation is not supported by this Iterator.
java.lang.IllegalStateException
- if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |