Package net.jqwik.api.arbitraries
Interface IntegerArbitrary
- All Superinterfaces:
Arbitrary<Integer>,NumericalArbitrary<Integer,IntegerArbitrary>
@API(status=MAINTAINED,
since="1.0")
public interface IntegerArbitrary
extends NumericalArbitrary<Integer,IntegerArbitrary>
Fluent interface to configure the generation of Integer and int values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade -
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerArbitrarybetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated numbers.greaterOrEqual(int min) Set the allowed lowermin(included) bounder of generated numbers.lessOrEqual(int max) Set the allowed uppermax(included) bounder of generated numbers.shrinkTowards(int target) Set shrinking target totargetwhich 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, 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, withoutEdgeCasesMethods inherited from interface net.jqwik.api.arbitraries.NumericalArbitrary
withDistribution
-
Method Details
-
between
Set the allowed lowermin(included) and uppermax(included) bounder of generated numbers. -
greaterOrEqual
Set the allowed lowermin(included) bounder of generated numbers. -
lessOrEqual
Set the allowed uppermax(included) bounder of generated numbers. -
shrinkTowards
Set shrinking target totargetwhich must be between the allowed bounds.
-