Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
default BigIntegerArbitrary |
between(java.math.BigInteger min,
java.math.BigInteger max)
Set the allowed lower
min (included) and upper max (included) bounder of generated numbers. |
BigIntegerArbitrary |
greaterOrEqual(java.math.BigInteger min)
Set the allowed lower
min (included) bounder of generated numbers. |
BigIntegerArbitrary |
lessOrEqual(java.math.BigInteger max)
Set the allowed upper
max (included) bounder of generated numbers. |
Arbitrary<java.math.BigInteger> |
shrinkTowards(java.math.BigInteger target)
Set shrinking target to
target which must be between the allowed bounds. |
allValues, array, collect, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, injectNull, iterator, list, map, optional, sample, sampleStream, set, stream, unique, withSamples
default BigIntegerArbitrary between(java.math.BigInteger min, java.math.BigInteger max)
min
(included) and upper max
(included) bounder of generated numbers.BigIntegerArbitrary greaterOrEqual(java.math.BigInteger min)
min
(included) bounder of generated numbers.BigIntegerArbitrary lessOrEqual(java.math.BigInteger max)
max
(included) bounder of generated numbers.@API(status=EXPERIMENTAL, since="1.1.4") Arbitrary<java.math.BigInteger> shrinkTowards(java.math.BigInteger target)
target
which must be between the allowed bounds.