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 IntegerSequencepublic void initialize(int maxIndex)
IntegerSequenceinitialize in interface IntegerSequencemaxIndex - Largest possible value in the sequence. or < 0 if unknownpublic int next()
next in interface IntegerSequencepublic boolean hasNext()
hasNext in interface IntegerSequencepublic int getStart()
public int getStep()
public int getEnd()
public IntegerSequence.Type getType()
getType in interface IntegerSequencepublic boolean requiresMaxIndex()
requiresMaxIndex in interface IntegerSequence