Package net.jqwik.api.arbitraries
Interface ByteArbitrary
-
- All Superinterfaces:
Arbitrary<java.lang.Byte>
,NumericalArbitrary<java.lang.Byte,ByteArbitrary>
@API(status=MAINTAINED, since="1.0") public interface ByteArbitrary extends NumericalArbitrary<java.lang.Byte,ByteArbitrary>
Fluent interface to configure the generation of Byte and byte values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ByteArbitrary
between(byte min, byte max)
Set the allowed lowermin
(included) and uppermax
(included) bounds of generated numbers.ByteArbitrary
greaterOrEqual(byte min)
Set the allowed lowermin
(included) bound of generated numbers.ByteArbitrary
lessOrEqual(byte max)
Set the allowed uppermax
(included) bound of generated numbers.Arbitrary<java.lang.Byte>
shrinkTowards(int target)
Set shrinking target totarget
which must be between the allowed bounds.-
Methods inherited from interface net.jqwik.api.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, unique
-
Methods inherited from interface net.jqwik.api.arbitraries.NumericalArbitrary
withDistribution
-
-
-
-
Method Detail
-
between
default ByteArbitrary between(byte min, byte max)
Set the allowed lowermin
(included) and uppermax
(included) bounds of generated numbers.
-
greaterOrEqual
ByteArbitrary greaterOrEqual(byte min)
Set the allowed lowermin
(included) bound of generated numbers.
-
lessOrEqual
ByteArbitrary lessOrEqual(byte max)
Set the allowed uppermax
(included) bound of generated numbers.
-
shrinkTowards
@API(status=EXPERIMENTAL, since="1.1.4") Arbitrary<java.lang.Byte> shrinkTowards(int target)
Set shrinking target totarget
which must be between the allowed bounds.
-
-