public static class IntegerSequence.Combined extends java.lang.Object implements IntegerSequence
IntegerSequence.Combined, IntegerSequence.Explicit, IntegerSequence.For, IntegerSequence.Range, IntegerSequence.Type
Constructor and Description |
---|
Combined(org.ejml.equation.TokenList.Token start,
org.ejml.equation.TokenList.Token end) |
Modifier and Type | Method and Description |
---|---|
IntegerSequence.Type |
getType() |
boolean |
hasNext() |
void |
initialize(int maxIndex)
Specifies the maximum index of the array.
|
int |
length() |
int |
next() |
boolean |
requiresMaxIndex() |
public Combined(org.ejml.equation.TokenList.Token start, 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 IntegerSequence.Type getType()
getType
in interface IntegerSequence
public boolean requiresMaxIndex()
requiresMaxIndex
in interface IntegerSequence