public class UniformIntRangeIterable extends Object implements NumericIterable<Integer>
start
(inclusive) to another number
stop
(exclusive). There is an optional step
size.Constructor and Description |
---|
UniformIntRangeIterable(int start,
int stop)
Construct a UniformIntRangeIterator with the given values
|
UniformIntRangeIterable(int start,
int stop,
int step)
Construct a UniformIntRangeIterator with the given values
|
Modifier and Type | Method and Description |
---|---|
Iterator<Integer> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public UniformIntRangeIterable(int start, int stop, int step)
start
- the starting value (inclusive)stop
- the stopping number (exclusive)step
- the step sizepublic UniformIntRangeIterable(int start, int stop)
start
- the starting value (inclusive)stop
- the stopping number (exclusive)