@API(status=MAINTAINED, since="1.0") public interface ShortArbitrary extends NumericalArbitrary<java.lang.Short,ShortArbitrary>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default ShortArbitrary |
between(short min,
short max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
ShortArbitrary |
greaterOrEqual(short min)
Set the allowed lower
min (included) bounder of generated numbers. |
ShortArbitrary |
lessOrEqual(short max)
Set the allowed upper
max (included) bounder of generated numbers. |
Arbitrary<java.lang.Short> |
shrinkTowards(short target)
Set shrinking target to
target which must be between the allowed bounds. |
withDistribution
allValues, 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, withoutEdgeCases
default ShortArbitrary between(short min, short max)
min
(included) and upper max
(included) bounder of generated numbers.ShortArbitrary greaterOrEqual(short min)
min
(included) bounder of generated numbers.ShortArbitrary lessOrEqual(short max)
max
(included) bounder of generated numbers.@API(status=MAINTAINED, since="1.4.0") Arbitrary<java.lang.Short> shrinkTowards(short target)
target
which must be between the allowed bounds.