@API(status=EXPERIMENTAL, since="1.4.0") public interface LocalDateArbitrary extends Arbitrary<java.time.LocalDate>
Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
LocalDateArbitrary |
atTheEarliest(java.time.LocalDate min)
Set the allowed lower
min (included) bounder of generated local date values. |
LocalDateArbitrary |
atTheLatest(java.time.LocalDate max)
Set the allowed upper
max (included) bounder of generated local date values. |
default LocalDateArbitrary |
between(java.time.LocalDate min,
java.time.LocalDate max)
Set the allowed lower
min (included) and upper max (included) bounder of generated local date values. |
LocalDateArbitrary |
dayOfMonthBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated day of month values. |
default LocalDateArbitrary |
monthBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated month values. |
LocalDateArbitrary |
monthBetween(java.time.Month min,
java.time.Month max)
Set the allowed lower
min (included) and upper max (included) bounder of generated month values. |
LocalDateArbitrary |
onlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek)
Set an array of allowed
daysOfWeek . |
LocalDateArbitrary |
onlyMonths(java.time.Month... months)
Set an array of allowed
months . |
default LocalDateArbitrary |
yearBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated year values. |
LocalDateArbitrary |
yearBetween(java.time.Year min,
java.time.Year max)
Set the allowed lower
min (included) and upper max (included) bounder of generated year values. |
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
default LocalDateArbitrary between(java.time.LocalDate min, java.time.LocalDate max)
min
(included) and upper max
(included) bounder of generated local date values.LocalDateArbitrary atTheEarliest(java.time.LocalDate min)
min
(included) bounder of generated local date values.LocalDateArbitrary atTheLatest(java.time.LocalDate max)
max
(included) bounder of generated local date values.LocalDateArbitrary yearBetween(java.time.Year min, java.time.Year max)
min
(included) and upper max
(included) bounder of generated year values.
The years can be between 1
and Year.MAX_VALUE
.
Calling this method is equivalent to calling between(LocalDate, LocalDate) assuming Jan 1 and Dec 31 as first and last day of those years.
default LocalDateArbitrary yearBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated year values.
The int
values can be between 1
and Year.MAX_VALUE
.
Calling this method is equivalent to calling between(LocalDate, LocalDate) assuming Jan 1 and Dec 31 as first and last day of those years.
LocalDateArbitrary monthBetween(java.time.Month min, java.time.Month max)
min
(included) and upper max
(included) bounder of generated month values.default LocalDateArbitrary monthBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated month values.
The int
values can be between 1 and 12.LocalDateArbitrary onlyMonths(java.time.Month... months)
months
.LocalDateArbitrary dayOfMonthBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated day of month values.
The int
values can be between 1 and 31.LocalDateArbitrary onlyDaysOfWeek(java.time.DayOfWeek... daysOfWeek)
daysOfWeek
.