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
Modifier and TypeInterfaceDescriptionstatic class
This is a sequence of sequencesstatic class
An array of integers which was explicitly specifiedstatic class
A sequence of integers which has been specified using a start number, end number, and step size.static class
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 enum
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
boolean
hasNext()
void
initialize
(int maxIndex) Specifies the maximum index of the array.int
length()
int
next()
boolean
-
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()
-