Package org.ejml.equation
Class IntegerSequence.Explicit
java.lang.Object
org.ejml.equation.IntegerSequence.Explicit
- All Implemented Interfaces:
IntegerSequence
- Enclosing interface:
- IntegerSequence
An array of integers which was explicitly specified
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ejml.equation.IntegerSequence
IntegerSequence.Combined, IntegerSequence.Explicit, IntegerSequence.For, IntegerSequence.Range, IntegerSequence.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
boolean
hasNext()
void
initialize
(int maxIndex) Specifies the maximum index of the array.int
length()
int
next()
boolean
-
Constructor Details
-
Explicit
public Explicit(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token end) -
Explicit
public Explicit(org.ejml.equation.TokenList.Token single)
-
-
Method Details
-
length
public int length()- Specified by:
length
in interfaceIntegerSequence
-
initialize
public void initialize(int maxIndex) Description copied from interface:IntegerSequence
Specifies the maximum index of the array. If the maximum index is not known then a value < 0 is passed in and an exception should be thrown if this information is required NOTE: This is length - 1- Specified by:
initialize
in interfaceIntegerSequence
- Parameters:
maxIndex
- Largest possible value in the sequence. or < 0 if unknown
-
next
public int next()- Specified by:
next
in interfaceIntegerSequence
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIntegerSequence
-
getType
- Specified by:
getType
in interfaceIntegerSequence
-
requiresMaxIndex
public boolean requiresMaxIndex()- Specified by:
requiresMaxIndex
in interfaceIntegerSequence
-
getSequence
-