Package net.jqwik.api.arbitraries
Interface BigIntegerArbitrary
-
- All Superinterfaces:
Arbitrary<java.math.BigInteger>
,NumericalArbitrary<java.math.BigInteger,BigIntegerArbitrary>
@API(status=MAINTAINED, since="1.0") public interface BigIntegerArbitrary extends NumericalArbitrary<java.math.BigInteger,BigIntegerArbitrary>
Fluent interface to configure the generation of BigInteger 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 BigIntegerArbitrary
between(java.math.BigInteger min, java.math.BigInteger max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated numbers.BigIntegerArbitrary
greaterOrEqual(java.math.BigInteger min)
Set the allowed lowermin
(included) bounder of generated numbers.BigIntegerArbitrary
lessOrEqual(java.math.BigInteger max)
Set the allowed uppermax
(included) bounder of generated numbers.BigIntegerArbitrary
shrinkTowards(java.math.BigInteger 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 BigIntegerArbitrary between(java.math.BigInteger min, java.math.BigInteger max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated numbers.- Parameters:
min
- min value (included)max
- max value (included)- Returns:
- new instance of arbitrary
-
greaterOrEqual
BigIntegerArbitrary greaterOrEqual(java.math.BigInteger min)
Set the allowed lowermin
(included) bounder of generated numbers.- Parameters:
min
- min value (included)- Returns:
- new instance of arbitrary
-
lessOrEqual
BigIntegerArbitrary lessOrEqual(java.math.BigInteger max)
Set the allowed uppermax
(included) bounder of generated numbers.- Parameters:
max
- max value (included)- Returns:
- new instance of arbitrary
-
shrinkTowards
@API(status=MAINTAINED, since="1.4.0") BigIntegerArbitrary shrinkTowards(java.math.BigInteger target)
Set shrinking target totarget
which must be between the allowed bounds.- Parameters:
target
- shrinking target value- Returns:
- new instance of arbitrary
-
-