Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default ShortArbitrary |
between(short min,
short max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
ShortArbitrary |
greaterOrEqual(short min)
Set the allowed lower
min (included) bounder of generated numbers. |
ShortArbitrary |
lessOrEqual(short max)
Set the allowed upper
max (included) bounder of generated numbers. |
Arbitrary<java.lang.Short> |
shrinkTowards(short 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, sample, sampleStream, set, stream, unique, withSamples
default ShortArbitrary between(short min, short max)
min
(included) and upper max
(included) bounder of generated numbers.ShortArbitrary greaterOrEqual(short min)
min
(included) bounder of generated numbers.ShortArbitrary lessOrEqual(short max)
max
(included) bounder of generated numbers.@API(status=EXPERIMENTAL, since="1.1.4") Arbitrary<java.lang.Short> shrinkTowards(short target)
target
which must be between the allowed bounds.