public class IntRange
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
end |
(package private) Operator |
operator |
(package private) int |
start |
(package private) int |
step |
| Constructor and Description |
|---|
IntRange(int start,
int end,
Operator operator,
int step)
Creates a new range that produces Iterators which begin at
start, end at end and increment by the
stepping function described by operator and
step. |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.benchmarks.client.IntRange.IntRangeIterator |
iterator() |
int end
Operator operator
int start
int step
public IntRange(int start,
int end,
Operator operator,
int step)
start, end at end and increment by the
stepping function described by operator and
step.start - Initial starting value, inclusive.end - Ending value, inclusive.operator - The function used to step.step - The amount to step by, for each iteration.