@API(status=MAINTAINED, since="1.0") public interface BigDecimalArbitrary extends NumericalArbitrary<java.math.BigDecimal,BigDecimalArbitrary>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default BigDecimalArbitrary |
between(java.math.BigDecimal min,
java.math.BigDecimal max)
Set the allowed lower
min (included) and upper max (included) border of generated numbers. |
BigDecimalArbitrary |
between(java.math.BigDecimal min,
boolean minIncluded,
java.math.BigDecimal max,
boolean maxIncluded)
Set the allowed lower
min (included) and upper max (included) border of generated numbers. |
BigDecimalArbitrary |
greaterOrEqual(java.math.BigDecimal min)
Set the allowed lower
min (included) border of generated numbers. |
BigDecimalArbitrary |
greaterThan(java.math.BigDecimal min)
Set the allowed lower
min (excluded) border of generated numbers. |
BigDecimalArbitrary |
lessOrEqual(java.math.BigDecimal max)
Set the allowed upper
max (included) bounder of generated numbers. |
BigDecimalArbitrary |
lessThan(java.math.BigDecimal max)
Set the allowed upper
max (excluded) border of generated numbers. |
BigDecimalArbitrary |
ofScale(int scale)
Set the scale (maximum number of decimal places) to
scale . |
BigDecimalArbitrary |
shrinkTowards(java.math.BigDecimal target)
Set shrinking target to
target which must be between the allowed bounds. |
withDistribution
allValues, array, asGeneric, collect, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, unique
default BigDecimalArbitrary between(java.math.BigDecimal min, java.math.BigDecimal max)
min
(included) and upper max
(included) border of generated numbers.min
- The lower border of possible valuesmax
- The upper border of possible values@API(status=MAINTAINED, since="1.2.7") BigDecimalArbitrary between(java.math.BigDecimal min, boolean minIncluded, java.math.BigDecimal max, boolean maxIncluded)
min
(included) and upper max
(included) border of generated numbers.
Specify if borders should be included in allowed values or not.min
- The lower border of possible valuesminIncluded
- Should the lower border be includedmax
- The upper border of possible valuesmaxIncluded
- Should the upper border be includedBigDecimalArbitrary greaterOrEqual(java.math.BigDecimal min)
min
(included) border of generated numbers.min
- The lower border of possible values@API(status=MAINTAINED, since="1.2.7") BigDecimalArbitrary greaterThan(java.math.BigDecimal min)
min
(excluded) border of generated numbers.min
- The lower border of possible valuesBigDecimalArbitrary lessOrEqual(java.math.BigDecimal max)
max
(included) bounder of generated numbers.max
- The upper border of possible values@API(status=MAINTAINED, since="1.2.7") BigDecimalArbitrary lessThan(java.math.BigDecimal max)
max
(excluded) border of generated numbers.max
- The upper border of possible valuesBigDecimalArbitrary ofScale(int scale)
scale
.@API(status=EXPERIMENTAL, since="1.1.5") BigDecimalArbitrary shrinkTowards(java.math.BigDecimal target)
target
which must be between the allowed bounds.target
- The value which is considered to be the most simple value for shrinking