org.matheclipse.core.eval.util
Interface ISequence
-
- All Known Implementing Classes:
- AbstractSequence, ListSizeSequence, Sequence, SimpleSequence
public interface ISequenceInterface for sequence specifications. A sequence in the interval ofintegernumbers:[getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intgetEnd()Get the end index for this sequenceint[]getIndices()Get the generated sequence of indices for this ISequence.intgetStart()Get the start index for this sequenceintgetStep()The step for calculating the next index in the sequence.voidsetListSize(int size)Sets the list size of the current used list in the generics library.
-
-
-
Method Detail
-
getEnd
int getEnd()
Get the end index for this sequence- Returns:
- the
endOffsetof this sequence + 1;
-
getIndices
int[] getIndices()
Get the generated sequence of indices for this ISequence. Especially useful for unit tests to check the sequence implementation.- Returns:
[getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
-
getStart
int getStart()
Get the start index for this sequence- Returns:
- the start offset of this sequence;
-
getStep
int getStep()
The step for calculating the next index in the sequence.- Returns:
- the step size of this sequence;
-
setListSize
void setListSize(int size)
Sets the list size of the current used list in the generics library. Sometimes this setting is used by special sequence implementations.- Parameters:
size-
-
-
DMelt 3.0 © DataMelt by jWork.ORG