| Constructor and Description |
|---|
Range(int start,
int max,
int step)
Creates a sequence \( a_i, i < 0 <= n \)
where \( a_i = start + i * step \)
and \( n \) is such that \( a_n <= max \) and \( a_{n+1} > max \).
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Integer> |
iterator() |
int |
size()
Gets the number of elements contained in the range.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Range(int start,
int max,
int step)
start - First value of the range.max - Last value of the range that satisfies the above
construction rule.step - Increment.Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.