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) bounder of generated numbers. |
BigDecimalArbitrary |
greaterOrEqual(java.math.BigDecimal min)
Set the allowed lower
min (included) bounder of generated numbers. |
BigDecimalArbitrary |
lessOrEqual(java.math.BigDecimal max)
Set the allowed upper
max (included) bounder 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. |
allValues, array, collect, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectNull, iterator, list, map, optional, set, stream, unique, withSamples
default BigDecimalArbitrary between(java.math.BigDecimal min, java.math.BigDecimal max)
min
(included) and upper max
(included) bounder of generated numbers.BigDecimalArbitrary greaterOrEqual(java.math.BigDecimal min)
min
(included) bounder of generated numbers.BigDecimalArbitrary lessOrEqual(java.math.BigDecimal max)
max
(included) bounder of generated numbers.BigDecimalArbitrary 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.