Class BigDecimalInterval

All Implemented Interfaces:
IInterval<BigDecimal,BigDecimalInterval>, IIterableInterval<BigDecimal,BigDecimal,Void,BigDecimalInterval>, Iterable<BigDecimal>

public final class BigDecimalInterval extends NumberInterval<BigDecimal,BigDecimalInterval>
  • Constructor Details

  • Method Details

    • iterateFromLeft

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

      public Iterator<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:
    • getFromLeft

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