Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default DoubleArbitrary |
between(double min,
double max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
DoubleArbitrary |
greaterOrEqual(double min)
Set the allowed lower
min (included) bounder of generated numbers. |
DoubleArbitrary |
lessOrEqual(double max)
Set the allowed upper
max (included) bounder of generated numbers. |
DoubleArbitrary |
ofScale(int scale)
Set the scale (maximum number of decimal places) to
scale . |
DoubleArbitrary |
shrinkTowards(double target)
Set shrinking target to
target which must be between the allowed bounds. |
allValues, array, asGeneric, collect, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectDuplicates, injectNull, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, unique, withSamples
default DoubleArbitrary between(double min, double max)
min
(included) and upper max
(included) bounder of generated numbers.DoubleArbitrary greaterOrEqual(double min)
min
(included) bounder of generated numbers.DoubleArbitrary lessOrEqual(double max)
max
(included) bounder of generated numbers.DoubleArbitrary ofScale(int scale)
scale
.@API(status=EXPERIMENTAL, since="1.1.5") DoubleArbitrary shrinkTowards(double target)
target
which must be between the allowed bounds.