@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. |
ByteArbitrary |
shrinkTowards(int target)
Set shrinking target to
target which must be between the allowed bounds. |
withDistributionallValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCasesdefault ByteArbitrary between(byte min, byte max)
min (included) and upper max (included) bounds of generated numbers.min - min value (included)max - max value (included)ByteArbitrary greaterOrEqual(byte min)
min (included) bound of generated numbers.min - min value (included)ByteArbitrary lessOrEqual(byte max)
max (included) bound of generated numbers.max - max value (included)@API(status=MAINTAINED,
since="1.4.0")
ByteArbitrary shrinkTowards(int target)
target which must be between the allowed bounds.target - target shrinking value