Package net.jqwik.api.arbitraries
Interface ShortArbitrary
-
- All Superinterfaces:
Arbitrary<java.lang.Short>
,NumericalArbitrary<java.lang.Short,ShortArbitrary>
@API(status=MAINTAINED, since="1.0") public interface ShortArbitrary extends NumericalArbitrary<java.lang.Short,ShortArbitrary>
Fluent interface to configure the generation of Short and short 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 ShortArbitrary
between(short min, short max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated numbers.ShortArbitrary
greaterOrEqual(short min)
Set the allowed lowermin
(included) bounder of generated numbers.ShortArbitrary
lessOrEqual(short max)
Set the allowed uppermax
(included) bounder of generated numbers.Arbitrary<java.lang.Short>
shrinkTowards(short 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, edgeCases, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
Methods inherited from interface net.jqwik.api.arbitraries.NumericalArbitrary
withDistribution
-
-
-
-
Method Detail
-
between
default ShortArbitrary between(short min, short max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated numbers.
-
greaterOrEqual
ShortArbitrary greaterOrEqual(short min)
Set the allowed lowermin
(included) bounder of generated numbers.
-
lessOrEqual
ShortArbitrary lessOrEqual(short max)
Set the allowed uppermax
(included) bounder of generated numbers.
-
shrinkTowards
@API(status=MAINTAINED, since="1.4.0") Arbitrary<java.lang.Short> shrinkTowards(short target)
Set shrinking target totarget
which must be between the allowed bounds.
-
-