Package net.jqwik.time.api.arbitraries
Interface ZonedDateTimeArbitrary
-
- All Superinterfaces:
Arbitrary<java.time.ZonedDateTime>
@API(status=EXPERIMENTAL, since="1.6.3") public interface ZonedDateTimeArbitrary extends Arbitrary<java.time.ZonedDateTime>Fluent interface to configure the generation of zoned date time values. All generated zoned date times use the Gregorian Calendar, even if they are before October 15, 1582. By default, zoned date times with years between 1900 and 2500 are generated.
-
-
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 ZonedDateTimeArbitraryatTheEarliest(java.time.LocalDateTime min)Set the allowed lowermin(included) bounder of the local part of generated zoned date time values.ZonedDateTimeArbitraryatTheLatest(java.time.LocalDateTime max)Set the allowed uppermax(included) bounder of the local part of generated zoned date time values.default ZonedDateTimeArbitrarybetween(java.time.LocalDateTime min, java.time.LocalDateTime max)Set the allowed lowermin(included) and uppermax(included) bounder of the local part of generated zoned date time values.ZonedDateTimeArbitrarydateBetween(java.time.LocalDate min, java.time.LocalDate max)Set the allowed lowermin(included) and uppermax(included) bounder of generated zoned date values.ZonedDateTimeArbitrarydayOfMonthBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated day of month values.ZonedDateTimeArbitraryhourBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated hour values.ZonedDateTimeArbitraryminuteBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated minute values.default ZonedDateTimeArbitrarymonthBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.ZonedDateTimeArbitrarymonthBetween(java.time.Month min, java.time.Month max)Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.ZonedDateTimeArbitraryofPrecision(java.time.temporal.ChronoUnit ofPrecision)Constrain the precision of generated values.ZonedDateTimeArbitraryonlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek)Set an array of alloweddaysOfWeek.ZonedDateTimeArbitraryonlyMonths(java.time.Month... months)Set an array of allowedmonths.ZonedDateTimeArbitrarysecondBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated second values.ZonedDateTimeArbitrarytimeBetween(java.time.LocalTime min, java.time.LocalTime max)Set the allowed lowermin(included) and uppermax(included) bounder of generated zoned time values.default ZonedDateTimeArbitraryyearBetween(int min, int max)Set the allowed lowermin(included) and uppermax(included) bounder of generated year values.ZonedDateTimeArbitraryyearBetween(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.Arbitrary
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, injectDuplicates, injectNull, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
-
-
-
-
Method Detail
-
between
default ZonedDateTimeArbitrary between(java.time.LocalDateTime min, java.time.LocalDateTime max)
Set the allowed lowermin(included) and uppermax(included) bounder of the local part of generated zoned date 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.
-
atTheEarliest
ZonedDateTimeArbitrary atTheEarliest(java.time.LocalDateTime min)
Set the allowed lowermin(included) bounder of the local part of generated zoned date 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.
-
atTheLatest
ZonedDateTimeArbitrary atTheLatest(java.time.LocalDateTime max)
Set the allowed uppermax(included) bounder of the local part of generated zoned date 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.
-
dateBetween
ZonedDateTimeArbitrary dateBetween(java.time.LocalDate min, java.time.LocalDate max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated zoned date values.
-
yearBetween
ZonedDateTimeArbitrary 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.
-
yearBetween
default ZonedDateTimeArbitrary 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.
-
monthBetween
ZonedDateTimeArbitrary monthBetween(java.time.Month min, java.time.Month max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated month values.
-
monthBetween
default ZonedDateTimeArbitrary 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.
-
onlyMonths
ZonedDateTimeArbitrary onlyMonths(java.time.Month... months)
Set an array of allowedmonths.
-
dayOfMonthBetween
ZonedDateTimeArbitrary 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.
-
onlyDaysOfWeek
ZonedDateTimeArbitrary onlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek)
Set an array of alloweddaysOfWeek.
-
timeBetween
ZonedDateTimeArbitrary timeBetween(java.time.LocalTime min, java.time.LocalTime max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated zoned 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.
-
hourBetween
ZonedDateTimeArbitrary hourBetween(int min, int max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated hour values. The hours can be between0and23.
-
minuteBetween
ZonedDateTimeArbitrary minuteBetween(int min, int max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated minute values. The minutes can be between0and59.
-
secondBetween
ZonedDateTimeArbitrary secondBetween(int min, int max)
Set the allowed lowermin(included) and uppermax(included) bounder of generated second values. The minutes can be between0and59.
-
ofPrecision
ZonedDateTimeArbitrary 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.
-
-