Package net.jqwik.time.api.arbitraries
Interface InstantArbitrary
- 
- All Superinterfaces:
- Arbitrary<java.time.Instant>
 
 @API(status=EXPERIMENTAL, since="1.5.4") public interface InstantArbitrary extends Arbitrary<java.time.Instant>Fluent interface to configure the generation of instant values. All generated instants use the Gregorian Calendar, even if they are before October 15, 1582. By default, instants with years between 1900 and 2500 are generated. Max possible year is 999_999_999.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface net.jqwik.api.ArbitraryArbitrary.ArbitraryFacade
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstantArbitraryatTheEarliest(java.time.Instant min)Set the allowed lowermin(included) bounder of generated instant values.InstantArbitraryatTheLatest(java.time.Instant max)Set the allowed uppermax(included) bounder of generated instant values.default InstantArbitrarybetween(java.time.Instant min, java.time.Instant max)Set the allowed lowermin(included) and uppermax(included) bounder of generated instant values.InstantArbitrarydateBetween(java.time.LocalDate min, java.time.LocalDate max)Set the allowed lowermin(included) and uppermax(included) bounder of generated local date values.InstantArbitrarydayOfMonthBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated day of month values.InstantArbitraryhourBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated hour values.InstantArbitraryminuteBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated minute values.default InstantArbitrarymonthBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.InstantArbitrarymonthBetween(java.time.Month min, java.time.Month max)Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.InstantArbitraryofPrecision(java.time.temporal.ChronoUnit ofPrecision)Constrain the precision of generated values.InstantArbitraryonlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek)Set an array of alloweddaysOfWeek.InstantArbitraryonlyMonths(java.time.Month... months)Set an array of allowedmonths.InstantArbitrarysecondBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated second values.InstantArbitrarytimeBetween(java.time.LocalTime min, java.time.LocalTime max)Set the allowed lowermin(included) and uppermax(included) bounder of generated local time values.default InstantArbitraryyearBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated year values.InstantArbitraryyearBetween(java.time.Year min, java.time.Year max)Set the allowed lowermin(included) and uppermax(included) bounder of generated year values.- 
Methods inherited from interface net.jqwik.api.ArbitraryallValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
 
- 
 
- 
- 
- 
Method Detail- 
betweendefault InstantArbitrary between(java.time.Instant min, java.time.Instant max) Set the allowed lowermin(included) and uppermax(included) bounder of generated instant 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.
 - 
atTheEarliestInstantArbitrary atTheEarliest(java.time.Instant min) Set the allowed lowermin(included) bounder of generated instant 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.
 - 
atTheLatestInstantArbitrary atTheLatest(java.time.Instant max) Set the allowed uppermax(included) bounder of generated instant 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.
 - 
dateBetweenInstantArbitrary dateBetween(java.time.LocalDate min, java.time.LocalDate max) Set the allowed lowermin(included) and uppermax(included) bounder of generated local date values.
 - 
yearBetweenInstantArbitrary yearBetween(java.time.Year min, java.time.Year max) Set the allowed lowermin(included) and uppermax(included) bounder of generated year values. The years can be between1andYear.MAX_VALUE.Calling this method is equivalent to calling dateBetween(LocalDate, LocalDate) assuming Jan 1 and Dec 31 as first and last day of those years. 
 - 
yearBetweendefault InstantArbitrary yearBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated year values. Theintvalues can be between1andYear.MAX_VALUE.Calling this method is equivalent to calling dateBetween(LocalDate, LocalDate) assuming Jan 1 and Dec 31 as first and last day of those years. 
 - 
monthBetweenInstantArbitrary monthBetween(java.time.Month min, java.time.Month max) Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.
 - 
monthBetweendefault InstantArbitrary monthBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated month values. Theintvalues can be between 1 and 12.
 - 
onlyMonthsInstantArbitrary onlyMonths(java.time.Month... months) Set an array of allowedmonths.
 - 
dayOfMonthBetweenInstantArbitrary dayOfMonthBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated day of month values. Theintvalues can be between 1 and 31.
 - 
onlyDaysOfWeekInstantArbitrary onlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek) Set an array of alloweddaysOfWeek.
 - 
timeBetweenInstantArbitrary timeBetween(java.time.LocalTime min, java.time.LocalTime max) Set the allowed lowermin(included) and 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.
 - 
hourBetweenInstantArbitrary hourBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated hour values. The hours can be between0and23.
 - 
minuteBetweenInstantArbitrary minuteBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated minute values. The minutes can be between0and59.
 - 
secondBetweenInstantArbitrary secondBetween(int min, int max) Set the allowed lowermin(included) and uppermax(included) bounder of generated second values. The minutes can be between0and59.
 - 
ofPrecisionInstantArbitrary 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.
 
- 
 
-