@API(status=MAINTAINED, since="1.0") public interface IntegerArbitrary extends NumericalArbitrary<java.lang.Integer,IntegerArbitrary>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default IntegerArbitrary |
between(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
IntegerArbitrary |
greaterOrEqual(int min)
Set the allowed lower
min (included) bounder of generated numbers. |
IntegerArbitrary |
lessOrEqual(int max)
Set the allowed upper
max (included) bounder of generated numbers. |
IntegerArbitrary |
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 IntegerArbitrary between(int min, int max)
min
(included) and upper max
(included) bounder of generated numbers.IntegerArbitrary greaterOrEqual(int min)
min
(included) bounder of generated numbers.IntegerArbitrary lessOrEqual(int max)
max
(included) bounder of generated numbers.@API(status=EXPERIMENTAL, since="1.1.4") IntegerArbitrary shrinkTowards(int target)
target
which must be between the allowed bounds.