| Constructor | Description |
|---|---|
Range(int start,
int max,
int step) |
Creates a sequence
ai, i < 0 < n
where ai = start + i * step
and n is such that an <= max
and an+1 > max. |
| Modifier and Type | Method | Description |
|---|---|---|
Iterator<Integer> |
iterator() |
|
int |
size() |
Gets the number of elements contained in the range.
|
forEach, spliteratorpublic Range(int start,
int max,
int step)
ai, i < 0 < n
where ai = start + i * step
and n is such that an <= max
and an+1 > max.start - First value of the range.max - Last value of the range that satisfies the above
construction rule.step - Increment.Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.