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