Class BigDecimalInterval

    • Constructor Detail

      • BigDecimalInterval

        public BigDecimalInterval​(java.math.BigDecimal left,
                                  java.math.BigDecimal right)
      • BigDecimalInterval

        public BigDecimalInterval​(java.math.BigDecimal left,
                                  java.math.BigDecimal right,
                                  java.math.BigDecimal step,
                                  boolean bLeftClosed,
                                  boolean bRightClosed,
                                  boolean bReverse)
    • Method Detail

      • iterateFromRight

        public java.util.Iterator<java.math.BigDecimal> iterateFromRight()
        Returns:
        An iterator that visits the elements in this interval in reverse order, from right to left. Returns null if this interval does not support iteration.
        See Also:
        IIterableInterval.iterator(), IIterableInterval.iterateFromLeft()
      • getFromLeft

        public java.math.BigDecimal 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 java.math.BigDecimal 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.