Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default FloatArbitrary |
between(float min,
float max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
FloatArbitrary |
greaterOrEqual(float min)
Set the allowed lower
min (included) bounder of generated numbers. |
FloatArbitrary |
lessOrEqual(float max)
Set the allowed upper
max (included) bounder of generated numbers. |
FloatArbitrary |
ofScale(int scale)
Set the scale (maximum number of decimal places) to
scale . |
FloatArbitrary |
shrinkTowards(float target)
Set shrinking target to
target which must be between the allowed bounds. |
allValues, array, 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 FloatArbitrary between(float min, float max)
min
(included) and upper max
(included) bounder of generated numbers.FloatArbitrary greaterOrEqual(float min)
min
(included) bounder of generated numbers.FloatArbitrary lessOrEqual(float max)
max
(included) bounder of generated numbers.FloatArbitrary ofScale(int scale)
scale
.@API(status=EXPERIMENTAL, since="1.1.5") FloatArbitrary shrinkTowards(float target)
target
which must be between the allowed bounds.