public static class IntegerSequence.Range extends java.lang.Object implements IntegerSequence
IntegerSequence.Combined, IntegerSequence.Explicit, IntegerSequence.For, IntegerSequence.Range, IntegerSequence.Type
Constructor and Description |
---|
Range(org.ejml.equation.TokenList.Token start,
org.ejml.equation.TokenList.Token step) |
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
int |
getStart() |
int |
getStep() |
IntegerSequence.Type |
getType() |
boolean |
hasNext() |
void |
initialize(int maxIndex)
Specifies the maximum index of the array.
|
int |
length() |
int |
next() |
boolean |
requiresMaxIndex() |
public Range(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token step)
public int length()
length
in interface IntegerSequence
public void initialize(int maxIndex)
IntegerSequence
initialize
in interface IntegerSequence
maxIndex
- Largest possible value in the sequence. or < 0 if unknownpublic int next()
next
in interface IntegerSequence
public boolean hasNext()
hasNext
in interface IntegerSequence
public int getStart()
public int getStep()
public int getEnd()
public IntegerSequence.Type getType()
getType
in interface IntegerSequence
public boolean requiresMaxIndex()
requiresMaxIndex
in interface IntegerSequence