Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default ByteArbitrary |
between(byte min,
byte max)
Set the allowed lower
min (included) and upper max (included) bounds of generated numbers. |
ByteArbitrary |
greaterOrEqual(byte min)
Set the allowed lower
min (included) bound of generated numbers. |
ByteArbitrary |
lessOrEqual(byte max)
Set the allowed upper
max (included) bound of generated numbers. |
Arbitrary<java.lang.Byte> |
shrinkTowards(int 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 ByteArbitrary between(byte min, byte max)
min
(included) and upper max
(included) bounds of generated numbers.ByteArbitrary greaterOrEqual(byte min)
min
(included) bound of generated numbers.ByteArbitrary lessOrEqual(byte max)
max
(included) bound of generated numbers.@API(status=EXPERIMENTAL, since="1.1.4") Arbitrary<java.lang.Byte> shrinkTowards(int target)
target
which must be between the allowed bounds.