Class DefaultDurationArbitrary
java.lang.Object
net.jqwik.api.arbitraries.ArbitraryDecorator<Duration>
net.jqwik.time.internal.properties.arbitraries.DefaultDurationArbitrary
- All Implemented Interfaces:
Cloneable,net.jqwik.api.Arbitrary<Duration>,DurationArbitrary
@API(status=INTERNAL)
public class DefaultDurationArbitrary
extends net.jqwik.api.arbitraries.ArbitraryDecorator<Duration>
implements DurationArbitrary
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
net.jqwik.api.Arbitrary.ArbitraryFacade -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.jqwik.api.Arbitrary<Duration>Set the allowed lowermin(included) and uppermax(included) bounder of generated duration.ofPrecision(ChronoUnit ofPrecision) Constrain the precision of generated values.Methods inherited from class net.jqwik.api.arbitraries.ArbitraryDecorator
edgeCases, exhaustive, generator, generatorWithEmbeddedEdgeCases, isGeneratorMemoizable, toString, typedCloneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, withoutEdgeCases
-
Field Details
-
DEFAULT_MIN
-
DEFAULT_MIN_PRECISION_HOURS
-
DEFAULT_MAX
-
DEFAULT_MAX_PRECISION_HOURS
-
-
Constructor Details
-
DefaultDurationArbitrary
public DefaultDurationArbitrary()
-
-
Method Details
-
arbitrary
- Specified by:
arbitraryin classnet.jqwik.api.arbitraries.ArbitraryDecorator<Duration>
-
between
Description copied from interface:DurationArbitrarySet 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.- Specified by:
betweenin interfaceDurationArbitrary
-
ofPrecision
Description copied from interface:DurationArbitraryConstrain 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.- Specified by:
ofPrecisionin interfaceDurationArbitrary
-