public static class IntegerSequence.Range extends Object implements Iterable<Integer>
Constructor and Description |
---|
IntegerSequence.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 \).
|
public IntegerSequence.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–2016 The Apache Software Foundation. All rights reserved.