Package net.jqwik.api.arbitraries
Interface LongArbitrary
-
- All Superinterfaces:
Arbitrary<java.lang.Long>
,NumericalArbitrary<java.lang.Long,LongArbitrary>
@API(status=MAINTAINED, since="1.0") public interface LongArbitrary extends NumericalArbitrary<java.lang.Long,LongArbitrary>
Fluent interface to configure the generation of Long and long 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 LongArbitrary
between(long min, long max)
Set the allowed lowermin
(included) and uppermax
(included) bounds of generated numbers.LongArbitrary
greaterOrEqual(long min)
Set the allowed lowermin
(included) bound of generated numbers.LongArbitrary
lessOrEqual(long max)
Set the allowed uppermax
(included) bound of generated numbers.LongArbitrary
shrinkTowards(long 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, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, unique
-
Methods inherited from interface net.jqwik.api.arbitraries.NumericalArbitrary
withDistribution
-
-
-
-
Method Detail
-
between
default LongArbitrary between(long min, long max)
Set the allowed lowermin
(included) and uppermax
(included) bounds of generated numbers.
-
greaterOrEqual
LongArbitrary greaterOrEqual(long min)
Set the allowed lowermin
(included) bound of generated numbers.
-
lessOrEqual
LongArbitrary lessOrEqual(long max)
Set the allowed uppermax
(included) bound of generated numbers.
-
shrinkTowards
@API(status=EXPERIMENTAL, since="1.1.4") LongArbitrary shrinkTowards(long target)
Set shrinking target totarget
which must be between the allowed bounds.
-
-