Class DefaultLocalTimeArbitrary
java.lang.Object
net.jqwik.api.arbitraries.ArbitraryDecorator<LocalTime>
net.jqwik.time.internal.properties.arbitraries.DefaultLocalTimeArbitrary
- All Implemented Interfaces:
Cloneable,net.jqwik.api.Arbitrary<LocalTime>,LocalTimeArbitrary
@API(status=INTERNAL)
public class DefaultLocalTimeArbitrary
extends net.jqwik.api.arbitraries.ArbitraryDecorator<LocalTime>
implements LocalTimeArbitrary
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
net.jqwik.api.Arbitrary.ArbitraryFacade -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.jqwik.api.Arbitrary<LocalTime>atTheEarliest(LocalTime min) Set the allowed lowermin(included) bounder of generated local time values.atTheLatest(LocalTime max) Set the allowed uppermax(included) bounder of generated local time values.static voidcheckTimeValueAndPrecision(LocalTime time, OfPrecision ofPrecision, boolean minimum) static LocalTimeeffectiveMax(LocalTimeBetween timeBetween, HourBetween hourBetween, MinuteBetween minuteBetween, SecondBetween secondBetween, OfPrecision ofPrecision) static LocalTimeeffectiveMin(LocalTimeBetween timeBetween, HourBetween hourBetween, MinuteBetween minuteBetween, SecondBetween secondBetween, OfPrecision ofPrecision) hourBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated hour values.minuteBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated minute values.ofPrecision(ChronoUnit ofPrecision) Constrain the precision of generated values.static ChronoUnitofPrecisionFromNanos(int nanos) static ChronoUnitofPrecisionFromTime(LocalTime time) secondBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated second 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, withoutEdgeCasesMethods inherited from interface net.jqwik.time.api.arbitraries.LocalTimeArbitrary
between
-
Constructor Details
-
DefaultLocalTimeArbitrary
public DefaultLocalTimeArbitrary()
-
-
Method Details
-
arbitrary
- Specified by:
arbitraryin classnet.jqwik.api.arbitraries.ArbitraryDecorator<LocalTime>
-
effectiveMin
public static LocalTime effectiveMin(LocalTimeBetween timeBetween, HourBetween hourBetween, MinuteBetween minuteBetween, SecondBetween secondBetween, OfPrecision ofPrecision) -
checkTimeValueAndPrecision
public static void checkTimeValueAndPrecision(LocalTime time, OfPrecision ofPrecision, boolean minimum) -
effectiveMax
public static LocalTime effectiveMax(LocalTimeBetween timeBetween, HourBetween hourBetween, MinuteBetween minuteBetween, SecondBetween secondBetween, OfPrecision ofPrecision) -
ofPrecisionFromNanos
-
ofPrecisionFromTime
-
atTheEarliest
Description copied from interface:LocalTimeArbitrarySet the allowed lowermin(included) bounder of generated local time values. 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:
atTheEarliestin interfaceLocalTimeArbitrary
-
atTheLatest
Description copied from interface:LocalTimeArbitrarySet the allowed uppermax(included) bounder of generated local time values. 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:
atTheLatestin interfaceLocalTimeArbitrary
-
hourBetween
Description copied from interface:LocalTimeArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated hour values. The hours can be between0and23.- Specified by:
hourBetweenin interfaceLocalTimeArbitrary
-
minuteBetween
Description copied from interface:LocalTimeArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated minute values. The minutes can be between0and59.- Specified by:
minuteBetweenin interfaceLocalTimeArbitrary
-
secondBetween
Description copied from interface:LocalTimeArbitrarySet the allowed lowermin(included) and uppermax(included) bounder of generated second values. The minutes can be between0and59.- Specified by:
secondBetweenin interfaceLocalTimeArbitrary
-
ofPrecision
Description copied from interface:LocalTimeArbitraryConstrain 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 interfaceLocalTimeArbitrary
-