Modifier and Type | Method and Description |
---|---|
boolean |
hasMore()
Returns true, if more indices are available.
|
int |
index()
Consecutive numbering of current index.
|
void |
init(int lower,
int upper)
Initialize Range to available indices.
|
int |
length()
Returns the total number of indices.
|
void |
next()
Increase counter.
|
int |
value()
Get current index.
|
void init(int lower, int upper)
Range
is used right before the iteration.lower
- the lower index available for the iterationupper
- the highest index available for the iteration.int length()
void next()
int index()
int value()
boolean hasMore()