Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default IntegerArbitrary |
between(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
IntegerArbitrary |
greaterOrEqual(int min)
Set the allowed lower
min (included) bounder of generated numbers. |
IntegerArbitrary |
lessOrEqual(int max)
Set the allowed upper
max (included) bounder of generated numbers. |
Arbitrary<java.lang.Integer> |
shrinkTowards(int target)
Set shrinking target to
target which must be between the allowed bounds. |
allValues, array, collect, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectNull, iterator, list, map, optional, set, stream, unique, withSamples
default IntegerArbitrary between(int min, int max)
min
(included) and upper max
(included) bounder of generated numbers.IntegerArbitrary greaterOrEqual(int min)
min
(included) bounder of generated numbers.IntegerArbitrary lessOrEqual(int max)
max
(included) bounder of generated numbers.@API(status=EXPERIMENTAL, since="1.1.4") Arbitrary<java.lang.Integer> shrinkTowards(int target)
target
which must be between the allowed bounds.