Package net.jqwik.time.api.arbitraries
Schnittstelle OffsetDateTimeArbitrary
- Alle Superschnittstellen:
Arbitrary<OffsetDateTime>
@API(status=EXPERIMENTAL,
since="1.5.5")
public interface OffsetDateTimeArbitrary
extends Arbitrary<OffsetDateTime>
Fluent interface to configure the generation of offset date time values.
All generated offset date times use the Gregorian Calendar, even if they are before October 15, 1582.
By default, offset date times with years between 1900 and 2500 are generated.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungSet the allowed lowermin
(included) bounder of the local part of generated offset date time values.atTheLatest
(LocalDateTime max) Set the allowed uppermax
(included) bounder of the local part of generated offset date time values.default OffsetDateTimeArbitrary
between
(LocalDateTime min, LocalDateTime max) Set the allowed lowermin
(included) and uppermax
(included) bounder of the local part of generated offset date time values.dateBetween
(LocalDate min, LocalDate max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset date values.dayOfMonthBetween
(int min, int max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated day of month values.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.default OffsetDateTimeArbitrary
monthBetween
(int min, int max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated month values.monthBetween
(Month min, Month max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated month values.offsetBetween
(ZoneOffset min, ZoneOffset max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset values.ofPrecision
(ChronoUnit ofPrecision) Constrain the precision of generated values.onlyDaysOfWeek
(DayOfWeek... daysOfWeek) Set an array of alloweddaysOfWeek
.onlyMonths
(Month... months) Set an array of allowedmonths
.secondBetween
(int min, int max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated second values.timeBetween
(LocalTime min, LocalTime max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset time values.default OffsetDateTimeArbitrary
yearBetween
(int min, int max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated year values.yearBetween
(Year min, Year max) Set the allowed lowermin
(included) and uppermax
(included) bounder of generated year values.Von Schnittstelle geerbte Methoden 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
-
Methodendetails
-
between
Set the allowed lowermin
(included) and uppermax
(included) bounder of the local part of generated offset 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
Set the allowed lowermin
(included) bounder of the local part of generated offset 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
Set the allowed uppermax
(included) bounder of the local part of generated offset 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
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset date values. -
yearBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated year values. The years can be between1
andYear.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
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated year values. Theint
values can be between1
andYear.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
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated month values. -
monthBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated month values. Theint
values can be between 1 and 12. -
onlyMonths
Set an array of allowedmonths
. -
dayOfMonthBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated day of month values. Theint
values can be between 1 and 31. -
onlyDaysOfWeek
Set an array of alloweddaysOfWeek
. -
timeBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset 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
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated hour values. The hours can be between0
and23
. -
minuteBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated minute values. The minutes can be between0
and59
. -
secondBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated second values. The minutes can be between0
and59
. -
offsetBetween
Set the allowed lowermin
(included) and uppermax
(included) bounder of generated offset values. The offsets can be between-12:00:00
and+14:00:00
. -
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.
-