Class IntegerInterval

    • Constructor Detail

      • IntegerInterval

        public IntegerInterval​(Integer left,
                               Integer right)
      • IntegerInterval

        public IntegerInterval​(Integer left,
                               Integer right,
                               int iStep)
      • IntegerInterval

        public IntegerInterval​(Integer left,
                               Integer right,
                               int iStep,
                               boolean bLeftClosed,
                               boolean bRightClosed,
                               boolean bReverse)
    • Method Detail

      • getFromLeft

        public Integer 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 Integer 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.