Package net.jqwik.time.api
Klasse Dates
java.lang.Object
net.jqwik.time.api.Dates
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic LocalDateArbitrary
dates()
Create an arbitrary that generates instances of LocalDate.static CalendarArbitrary
Create an arbitrary that generates instances of Calendar.static DateArbitrary
Create an arbitrary that generates instances of Date.Create an arbitrary that generates days of month as Integer.Create an arbitrary that generates instances of DayOfWeek.static MonthDayArbitrary
Create an arbitrary that generates instances of MonthDay.months()
Create an arbitrary that generates instances of Month.static PeriodArbitrary
periods()
Create an arbitrary that generates instances of Period.static YearMonthArbitrary
Create an arbitrary that generates instances of YearMonth.static YearArbitrary
years()
Create an arbitrary that generates instances of Year.
-
Methodendetails
-
dates
Create an arbitrary that generates instances of LocalDate. All generated dates use the Gregorian Calendar, even if they are before October 15, 1582. By default, local dates with years between 1900 and 2500 are generated.- Gibt zurück:
- a new arbitrary instance
-
datesAsCalendar
Create an arbitrary that generates instances of Calendar. The time of a generated instance will always be 00:00 GMT.- Gibt zurück:
- a new arbitrary instance
-
datesAsDate
Create an arbitrary that generates instances of Date. The time of a generated instance will always be 00:00 GMT.- Gibt zurück:
- a new arbitrary instance
-
years
Create an arbitrary that generates instances of Year.- Gibt zurück:
- a new arbitrary instance
-
months
Create an arbitrary that generates instances of Month.- Gibt zurück:
- a new arbitrary instance
-
daysOfWeek
Create an arbitrary that generates instances of DayOfWeek.- Gibt zurück:
- a new arbitrary instance
-
daysOfMonth
Create an arbitrary that generates days of month as Integer.- Gibt zurück:
- a new arbitrary instance
-
yearMonths
Create an arbitrary that generates instances of YearMonth.- Gibt zurück:
- a new arbitrary instance
-
monthDays
Create an arbitrary that generates instances of MonthDay.- Gibt zurück:
- a new arbitrary instance
-
periods
Create an arbitrary that generates instances of Period.By default a period will be between -1000 and 1000 years
- Gibt zurück:
- a new arbitrary instance
-