Package org.ejml.equation
Class IntegerSequence.Combined
java.lang.Object
org.ejml.equation.IntegerSequence.Combined
- All Implemented Interfaces:
IntegerSequence
- Enclosing interface:
- IntegerSequence
public static class IntegerSequence.Combined extends java.lang.Object implements IntegerSequence
This is a sequence of sequences
-
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
Constructors Constructor Description Combined(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token end) -
Method Summary
Modifier and Type Method Description IntegerSequence.TypegetType()booleanhasNext()voidinitialize(int maxIndex)Specifies the maximum index of the array.intlength()intnext()booleanrequiresMaxIndex()
-
Constructor Details
-
Combined
public Combined(org.ejml.equation.TokenList.Token start, org.ejml.equation.TokenList.Token end)
-
-
Method Details
-
length
public int length()- Specified by:
lengthin interfaceIntegerSequence
-
initialize
public void initialize(int maxIndex)Description copied from interface:IntegerSequenceSpecifies 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:
initializein interfaceIntegerSequence- Parameters:
maxIndex- Largest possible value in the sequence. or < 0 if unknown
-
next
public int next()- Specified by:
nextin interfaceIntegerSequence
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIntegerSequence
-
getType
- Specified by:
getTypein interfaceIntegerSequence
-
requiresMaxIndex
public boolean requiresMaxIndex()- Specified by:
requiresMaxIndexin interfaceIntegerSequence
-