public static class IntegerSequence.For extends java.lang.Object implements IntegerSequence
IntegerSequence.Combined, IntegerSequence.Explicit, IntegerSequence.For, IntegerSequence.Range, IntegerSequence.Type
Constructor and Description |
---|
For(org.ejml.equation.TokenList.Token start,
org.ejml.equation.TokenList.Token step,
org.ejml.equation.TokenList.Token end) |
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 For(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token step, org.ejml.equation.TokenList.Token end)
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