Package org.ejml.equation
Interface IntegerSequence
- All Known Implementing Classes:
IntegerSequence.Combined
,IntegerSequence.Explicit
,IntegerSequence.For
,IntegerSequence.Range
public interface IntegerSequence
Interface for an ordered sequence of integer values
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IntegerSequence.Combined
This is a sequence of sequencesstatic class
IntegerSequence.Explicit
An array of integers which was explicitly specifiedstatic class
IntegerSequence.For
A sequence of integers which has been specified using a start number, end number, and step size.static class
IntegerSequence.Range
A sequence of integers which has been specified using a start number, end number, and step size and uses the known upper limit of the array to bound it Examples: : 2: 2:3:static class
IntegerSequence.Type
-
Method Summary
Modifier and Type Method Description IntegerSequence.Type
getType()
boolean
hasNext()
void
initialize(int maxIndex)
Specifies the maximum index of the array.int
length()
int
next()
boolean
requiresMaxIndex()
-
Method Details
-
length
int length() -
initialize
void initialize(int maxIndex)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- Parameters:
maxIndex
- Largest possible value in the sequence. or < 0 if unknown
-
next
int next() -
hasNext
boolean hasNext() -
getType
IntegerSequence.Type getType() -
requiresMaxIndex
boolean requiresMaxIndex()
-