Class SequenceableInterval<E extends ISequenceable<E,​S,​U> & Comparable<E>,​S,​U>

    • Constructor Detail

      • SequenceableInterval

        public SequenceableInterval​(E left,
                                    E right,
                                    S step,
                                    U unit,
                                    boolean bLeftClosed,
                                    boolean bRightClosed,
                                    boolean bReverse)
    • Method Detail

      • getFromLeft

        public E getFromLeft​(int iStepIndex)
        Parameters:
        iStepIndex - The index of the step from the left endpoint
        Returns:
        The nth step from the left endpoint. Returns null if iStepIndex is out of bounds.
      • getFromRight

        public E getFromRight​(int iStepIndex)
        Parameters:
        iStepIndex - The index of the step from the right endpoint
        Returns:
        The nth step from the right endpoint. Returns null if iStepIndex is out of bounds.