@API(status=MAINTAINED, since="1.0") public interface ByteArbitrary extends NumericalArbitrary<java.lang.Byte,ByteArbitrary>
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. |
withDistribution
allValues, array, asGeneric, collect, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, unique
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.