@API(status=EXPERIMENTAL,
since="1.4.0")
public class Dates
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static LocalDateArbitrary |
dates()
Create an arbitrary that generates instances of LocalDate.
|
static CalendarArbitrary |
datesAsCalendar()
Create an arbitrary that generates instances of Calendar.
|
static DateArbitrary |
datesAsDate()
Create an arbitrary that generates instances of Date.
|
static Arbitrary<java.lang.Integer> |
daysOfMonth()
Create an arbitrary that generates days of month as Integer.
|
static Arbitrary<java.time.DayOfWeek> |
daysOfWeek()
Create an arbitrary that generates instances of DayOfWeek.
|
static MonthDayArbitrary |
monthDays()
Create an arbitrary that generates instances of MonthDay.
|
static Arbitrary<java.time.Month> |
months()
Create an arbitrary that generates instances of Month.
|
static PeriodArbitrary |
periods()
Create an arbitrary that generates instances of Period.
|
static YearMonthArbitrary |
yearMonths()
Create an arbitrary that generates instances of YearMonth.
|
static YearArbitrary |
years()
Create an arbitrary that generates instances of Year.
|
public static LocalDateArbitrary dates()
public static CalendarArbitrary datesAsCalendar()
public static DateArbitrary datesAsDate()
public static YearArbitrary years()
public static Arbitrary<java.time.Month> months()
public static Arbitrary<java.time.DayOfWeek> daysOfWeek()
public static Arbitrary<java.lang.Integer> daysOfMonth()
public static YearMonthArbitrary yearMonths()
public static MonthDayArbitrary monthDays()
public static PeriodArbitrary periods()
By default a period will be between -1000 and 1000 years