org.matheclipse.core.eval.util
Class AbstractSequence
- java.lang.Object
-
- org.matheclipse.core.eval.util.AbstractSequence
-
- All Implemented Interfaces:
- ISequence
- Direct Known Subclasses:
- ListSizeSequence, SimpleSequence
public abstract class AbstractSequence extends java.lang.Object implements ISequence
Basic abstract class for sequence specifications. A sequence in the interval ofintegernumbers:[getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]getIndices()Get the generated sequence of indices for this ISequence.intgetStep()The step for calculating the next index in the sequence.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.matheclipse.core.eval.util.ISequence
getEnd, getStart, setListSize
-
-
-
-
Method Detail
-
getStep
public int getStep()
The step for calculating the next index in the sequence.
-
getIndices
public int[] getIndices()
Get the generated sequence of indices for this ISequence. Especially useful for unit tests to check the sequence implementation.- Specified by:
getIndicesin interfaceISequence- Returns:
[getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]
-
-
DMelt 3.0 © DataMelt by jWork.ORG