Package net.jqwik.time.api.arbitraries
Interface DurationArbitrary
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DurationArbitrary
between(java.time.Duration min, java.time.Duration max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated duration.DurationArbitrary
ofPrecision(java.time.temporal.ChronoUnit ofPrecision)
Constrain the precision of generated values.-
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, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
-
-
-
Method Detail
-
between
DurationArbitrary between(java.time.Duration min, java.time.Duration max)
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated duration. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
-
ofPrecision
DurationArbitrary ofPrecision(java.time.temporal.ChronoUnit ofPrecision)
Constrain the precision of generated values. Default value: Seconds. If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.
-
-