Documentation of 'org.matheclipse.core.eval.util.AbstractSequence' Java class
AbstractSequence
org.matheclipse.core.eval.util

Class 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 of integer numbers: [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.
      int getStep()
      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
    • Method Detail

      • getStep

        public int getStep()
        The step for calculating the next index in the sequence.
        Specified by:
        getStep in interface ISequence
        Returns:
        the step size of this 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:
        getIndices in interface ISequence
        Returns:
        [getStart(), getStart()+getStep(), getStart()+2*getStep(), ..., getEnd()]

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.