Package org.apache.commons.math4.util
Class IntegerSequence.Range
- java.lang.Object
-
- org.apache.commons.math4.util.IntegerSequence.Range
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>
- Enclosing class:
- IntegerSequence
public static class IntegerSequence.Range extends java.lang.Object implements java.lang.Iterable<java.lang.Integer>Generates a sequence of integers.
-
-
Constructor Summary
Constructors Constructor Description Range(int start, int max, int step)Creates a sequenceai, i < 0 < nwhereai = start + i * stepandnis such thatan <= maxandan+1 > max.
-
-
-
Constructor Detail
-
Range
public Range(int start, int max, int step)Creates a sequenceai, i < 0 < nwhereai = start + i * stepandnis such thatan <= maxandan+1 > max.- Parameters:
start- First value of the range.max- Last value of the range that satisfies the above construction rule.step- Increment.
-
-