optaplanner-core/src/main/java/org/optaplanner/core/api/domain/valuerange/ValueRangeFactory.java
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from, BigDecimal to) {
        return new BigDecimalValueRange(from, to);
    }
public static CountableValueRange<BigDecimal> createBigDecimalValueRange(BigDecimal from, BigDecimal to) {
        return new BigDecimalValueRange(from, to);
    }
Build a {@link CountableValueRange} of all {@link BigDecimal} values (of a specific scale) between 2 bounds.
All parameters must have the same {@link BigDecimal#scale()}.
@param from inclusive minimum
@param to exclusive maximum, {@code >= from}
@return never null