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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public 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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics