|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IndexIterator
This class provides iterations over the set of integers [0...k-1].
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if next() can be called at least one more time. |
int |
next()
Returns next index. |
void |
reset(int k)
This resets the iteration. |
| Method Detail |
|---|
void reset(int k)
int next()
boolean hasNext()
next() can be called at least one more time.
Note that next() can be called k times after reset(int).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||