| Package | Description |
|---|---|
| org.exparity.hamcrest.date |
Matchers of Dates
|
| org.exparity.hamcrest.date.core |
| Modifier and Type | Method and Description |
|---|---|
static DateMatcher<Date> |
DateMatchers.after(Date date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.after(DayMonthYear date)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.after(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.after(int year,
Month month,
int day)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.after(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.after(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.after(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.after(int year,
Months month,
int day)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.after(int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.after(LocalDate date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.after(LocalDate date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.after(LocalDateTime date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.after(ZonedDateTime date)
Creates a matcher that matches when the examined date is after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.before(Date date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.before(DayMonthYear date)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.before(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is before the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.before(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is before the start of reference day
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.before(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is before the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.before(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is before the start of the reference date and time
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.before(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is before the end of the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.before(int year,
Months month,
int dayOfMonth)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.before(int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.before(LocalDate date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.before(LocalDate date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.before(LocalDateTime date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.before(ZonedDateTime date)
Creates a matcher that matches when the examined date is before the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isApril()
Creates a matcher that matches when the examined date is in April
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isApril()
Creates a matcher that matches when the examined date is in April
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isApril()
Creates a matcher that matches when the examined date is in April
For example:
|
static DateMatcher<Date> |
DateMatchers.isApril()
Creates a matcher that matches when the examined date is in April
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isAugust()
Creates a matcher that matches when the examined date is in August
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isAugust()
Creates a matcher that matches when the examined date is in August
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isAugust()
Creates a matcher that matches when the examined date is in August
For example:
|
static DateMatcher<Date> |
DateMatchers.isAugust()
Creates a matcher that matches when the examined date is in August
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isDay(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isDay(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.isDay(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isDay(int year,
Month month,
int dayOfMonth,
ZoneId tz)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isDayOfMonth(int dayOfMonth)
Creates a matcher that matches when the examined date is on the expected day of the month
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isDayOfMonth(int dayOfMonth)
Creates a matcher that matches when the examined date is on the expected day of the month
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isDayOfMonth(int dayOfMonth)
Creates a matcher that matches when the examined date is on the expected day of the month
For example:
|
static DateMatcher<Date> |
DateMatchers.isDayOfMonth(int dayOfMonth)
Creates a matcher that matches when the examined date is on the expected day of the month
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isDayOfWeek(DayOfWeek... daysOfWeek)
Creates a matcher that matches when the examined date is on the same day of the week as any of the supplied days
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isDayOfWeek(DayOfWeek... daysOfWeek)
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isDayOfWeek(DayOfWeek... daysOfWeek)
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<Date> |
DateMatchers.isDayOfWeek(DayOfWeek... daysOfWeek)
Creates a matcher that matches when the examined date is on the same day of the week as any of the supplied days
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isDayOfWeek(DayOfWeek dayOfWeek)
Creates a matcher that matches when the examined date is on the same day of the week as the supplied day
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isDayOfWeek(DayOfWeek dayOfWeek)
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isDayOfWeek(DayOfWeek dayOfWeek)
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<Date> |
DateMatchers.isDayOfWeek(DayOfWeek dayOfWeek)
Creates a matcher that matches when the examined date is on the same day of the week as the supplied day
For example:
|
static DateMatcher<Date> |
DateMatchers.isDayOfWeek(Weekdays dayOfWeek)
Deprecated.
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isDecember()
Creates a matcher that matches when the examined date is in December
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isDecember()
Creates a matcher that matches when the examined date is in December
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isDecember()
Creates a matcher that matches when the examined date is in December
For example:
|
static DateMatcher<Date> |
DateMatchers.isDecember()
Creates a matcher that matches when the examined date is in December
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isFebruary()
Creates a matcher that matches when the examined date is in February
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isFebruary()
Creates a matcher that matches when the examined date is in February
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isFebruary()
Creates a matcher that matches when the examined date is in February
For example:
|
static DateMatcher<Date> |
DateMatchers.isFebruary()
Creates a matcher that matches when the examined date is in February
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isFirstDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isFirstDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isFirstDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<Date> |
DateMatchers.isFirstDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isFriday()
Creates a matcher that matches when the examined date is on a friday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isFriday()
Creates a matcher that matches when the examined date is on a friday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isFriday()
Creates a matcher that matches when the examined date is on a friday
For example:
|
static DateMatcher<Date> |
DateMatchers.isFriday()
Creates a matcher that matches when the examined date is on a friday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isHour(int hour)
Creates a matcher that matches when the examined date is on the expected hour (0-23)
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isHour(int hour)
Creates a matcher that matches when the examined date is on the expected hour (0-23)
For example:
|
static DateMatcher<Date> |
DateMatchers.isHour(int hour)
Creates a matcher that matches when the examined date is on the same hour as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isInstant(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos)
Creates a matcher that matches when the examined date is at the same specified instance down to the second
For example:
|
static DateMatcher<Date> |
DateMatchers.isInstant(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int milliseconds)
Creates a matcher that matches when the examined date is on the same instance as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isInstant(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is at the same specified instance down to the second
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isJanuary()
Creates a matcher that matches when the examined date is in January
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isJanuary()
Creates a matcher that matches when the examined date is in January
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isJanuary()
Creates a matcher that matches when the examined date is in January
For example:
|
static DateMatcher<Date> |
DateMatchers.isJanuary()
Creates a matcher that matches when the examined date is in January
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isJuly()
Creates a matcher that matches when the examined date is in July
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isJuly()
Creates a matcher that matches when the examined date is in July
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isJuly()
Creates a matcher that matches when the examined date is in July
For example:
|
static DateMatcher<Date> |
DateMatchers.isJuly()
Creates a matcher that matches when the examined date is in July
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isJune()
Creates a matcher that matches when the examined date is in June
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isJune()
Creates a matcher that matches when the examined date is in June
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isJune()
Creates a matcher that matches when the examined date is in June
For example:
|
static DateMatcher<Date> |
DateMatchers.isJune()
Creates a matcher that matches when the examined date is in June
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isLastDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isLastDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isLastDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<Date> |
DateMatchers.isLastDayOfMonth()
Creates a matcher that matches when the examined date is on the first day of the month
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isLeapYear()
Creates a matcher that matches when the examined date is a leap year
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isLeapYear()
Creates a matcher that matches when the examined date is a leap year
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isLeapYear()
Creates a matcher that matches when the examined date is a leap year
For example:
|
static DateMatcher<Date> |
DateMatchers.isLeapYear()
Creates a matcher that matches when the examined date is a leap year
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMarch()
Creates a matcher that matches when the examined date is in March
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMarch()
Creates a matcher that matches when the examined date is in March
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMarch()
Creates a matcher that matches when the examined date is in March
For example:
|
static DateMatcher<Date> |
DateMatchers.isMarch()
Creates a matcher that matches when the examined date is in March
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMaximum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMaximum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMaximum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<Date> |
DateMatchers.isMaximum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMay()
Creates a matcher that matches when the examined date is in May
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMay()
Creates a matcher that matches when the examined date is in May
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMay()
Creates a matcher that matches when the examined date is in May
For example:
|
static DateMatcher<Date> |
DateMatchers.isMay()
Creates a matcher that matches when the examined date is in May
For example:
|
static DateMatcher<Date> |
DateMatchers.isMillisecond(int millisecond)
Creates a matcher that matches when the examined date is on the reference second
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMinimum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMinimum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMinimum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<Date> |
DateMatchers.isMinimum(ChronoField field)
Creates a matcher that matches when the examined date is on the maximum value of the given date part in its
period
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMinute(int minute)
Creates a matcher that matches when the examined date is on the expected minute (0-59)
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMinute(int minute)
Creates a matcher that matches when the examined date is on the expected minute (0-59)
For example:
|
static DateMatcher<Date> |
DateMatchers.isMinute(int minute)
Creates a matcher that matches when the examined date is on the reference minute
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMonday()
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMonday()
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMonday()
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<Date> |
DateMatchers.isMonday()
Creates a matcher that matches when the examined date is on a monday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isMonth(Month month)
Creates a matcher that matches when the examined date is in the expected month
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isMonth(Month month)
Creates a matcher that matches when the examined date is in the expected month
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isMonth(Month month)
Creates a matcher that matches when the examined date is in the expected month
For example:
|
static DateMatcher<Date> |
DateMatchers.isMonth(Month month)
Creates a matcher that matches when the examined date is in the expected month
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isNovember()
Creates a matcher that matches when the examined date is in November
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isNovember()
Creates a matcher that matches when the examined date is in November
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isNovember()
Creates a matcher that matches when the examined date is in November
For example:
|
static DateMatcher<Date> |
DateMatchers.isNovember()
Creates a matcher that matches when the examined date is in November
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isOctober()
Creates a matcher that matches when the examined date is in October
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isOctober()
Creates a matcher that matches when the examined date is in October
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isOctober()
Creates a matcher that matches when the examined date is in October
For example:
|
static DateMatcher<Date> |
DateMatchers.isOctober()
Creates a matcher that matches when the examined date is in October
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isSaturday()
Creates a matcher that matches when the examined date is on a saturday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isSaturday()
Creates a matcher that matches when the examined date is on a saturday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isSaturday()
Creates a matcher that matches when the examined date is on a saturday
For example:
|
static DateMatcher<Date> |
DateMatchers.isSaturday()
Creates a matcher that matches when the examined date is on a saturday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isSecond(int second)
Creates a matcher that matches when the examined date is on the expected second (0-59)
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isSecond(int second)
Creates a matcher that matches when the examined date is on the expected second (0-59)
For example:
|
static DateMatcher<Date> |
DateMatchers.isSecond(int second)
Creates a matcher that matches when the examined date is on the reference second
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isSeptember()
Creates a matcher that matches when the examined date is in September
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isSeptember()
Creates a matcher that matches when the examined date is in September
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isSeptember()
Creates a matcher that matches when the examined date is in September
For example:
|
static DateMatcher<Date> |
DateMatchers.isSeptember()
Creates a matcher that matches when the examined date is in September
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isSunday()
Creates a matcher that matches when the examined date is on a sunday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isSunday()
Creates a matcher that matches when the examined date is on a sunday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isSunday()
Creates a matcher that matches when the examined date is on a sunday
For example:
|
static DateMatcher<Date> |
DateMatchers.isSunday()
Creates a matcher that matches when the examined date is on a sunday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isThursday()
Creates a matcher that matches when the examined date is on a thursday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isThursday()
Creates a matcher that matches when the examined date is on a thursday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isThursday()
Creates a matcher that matches when the examined date is on a thursday
For example:
|
static DateMatcher<Date> |
DateMatchers.isThursday()
Creates a matcher that matches when the examined date is on a thursday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isToday()
Creates a matcher that matches when the examined date is today
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isToday()
Creates a matcher that matches when the examined date is today
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isToday()
Creates a matcher that matches when the examined date is today
For example:
|
static DateMatcher<Date> |
DateMatchers.isToday()
Creates a matcher that matches when the examined date is today
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isTomorrow()
Creates a matcher that matches when the examined date is tomorrow
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isTomorrow()
Creates a matcher that matches when the examined date is tomorrow
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isTomorrow()
Creates a matcher that matches when the examined date is tomorrow
For example:
|
static DateMatcher<Date> |
DateMatchers.isTomorrow()
Creates a matcher that matches when the examined date is tomorrow
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isTuesday()
Creates a matcher that matches when the examined date is on a tuesday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isTuesday()
Creates a matcher that matches when the examined date is on a tuesday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isTuesday()
Creates a matcher that matches when the examined date is on a tuesday
For example:
|
static DateMatcher<Date> |
DateMatchers.isTuesday()
Creates a matcher that matches when the examined date is on a tuesday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isWednesday()
Creates a matcher that matches when the examined date is on a wednesday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isWednesday()
Creates a matcher that matches when the examined date is on a wednesday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isWednesday()
Creates a matcher that matches when the examined date is on a wednesday
For example:
|
static DateMatcher<Date> |
DateMatchers.isWednesday()
Creates a matcher that matches when the examined date is on a wednesday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isWeekday()
Creates a matcher that matches when the examined date is on a weekday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isWeekday()
Creates a matcher that matches when the examined date is on a weekday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isWeekday()
Creates a matcher that matches when the examined date is on a weekday
For example:
|
static DateMatcher<Date> |
DateMatchers.isWeekday()
Creates a matcher that matches when the examined date is on a weekday
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isWeekend()
Creates a matcher that matches when the examined date is on a weekend
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isWeekend()
Creates a matcher that matches when the examined date is on a weekend
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isWeekend()
Creates a matcher that matches when the examined date is on a weekend
For example:
|
static DateMatcher<Date> |
DateMatchers.isWeekend()
Creates a matcher that matches when the examined date is on a weekend
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isYear(int year)
Creates a matcher that matches when the examined date is on the same year as the reference year
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isYear(int year)
Creates a matcher that matches when the examined date is on the same year as the reference year
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isYear(int year)
Creates a matcher that matches when the examined date is on the same year as the reference year
For example:
|
static DateMatcher<Date> |
DateMatchers.isYear(int year)
Creates a matcher that matches when the examined date is on the same year as the reference year
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.isYesterday()
Creates a matcher that matches when the examined date is yesterday
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.isYesterday()
Creates a matcher that matches when the examined date is yesterday
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.isYesterday()
Creates a matcher that matches when the examined date is yesterday
For example:
|
static DateMatcher<Date> |
DateMatchers.isYesterday()
Creates a matcher that matches when the examined date is yesterday
For example:
|
static DateMatcher<Date> |
DateMatchers.sameDay(Date date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameDay(DayMonthYear date)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.sameDay(int year,
Months month,
int day)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameDay(LocalDate date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameDay(LocalDate date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameDay(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameDay(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameDayOfMonth(Date date)
Creates a matcher that matches when the examined date is on the same day of the month as the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameDayOfMonth(LocalDate date)
Creates a matcher that matches when the examined date is on the same day of the month as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameDayOfMonth(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same day of the month as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameDayOfMonth(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same day of the month as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameDayOfWeek(Date date)
Creates a matcher that matches when the examined date is on the same day of the week as the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameDayOfWeek(LocalDate date)
Creates a matcher that matches when the examined date is on the same day of the week as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameDayOfWeek(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same day of the week as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameDayOfWeek(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same day of the week as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameHour(Date date)
Deprecated.
Use
DateMatchers.sameHourOfDay(Date) instead |
static DateMatcher<Date> |
DateMatchers.sameHour(int hour)
Deprecated.
Use
DateMatchers.isHour(int) instead |
static DateMatcher<Date> |
DateMatchers.sameHourOfDay(Date date)
Creates a matcher that matches when the examined date is on the same hour as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameHourOfDay(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same hour as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameHourOfDay(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same hour as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameInstant(Date date)
Creates a matcher that matches when the examined date is on the same instant as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameInstant(int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second,
int milliseconds)
Deprecated.
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameInstant(LocalDateTime date)
Creates a matcher that matches when the examined date is at the same instant as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameInstant(long timestamp)
Creates a matcher that matches when the examined date is on the same UTC instant as the reference UTC epoch time
supplied
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameInstant(ZonedDateTime date)
Creates a matcher that matches when the examined date is at the same instant as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameMillisecond(Date date)
Deprecated.
Use
DateMatchers.sameMillisecondOfSecond(Date) instead |
static DateMatcher<Date> |
DateMatchers.sameMillisecond(int millisecond)
Deprecated.
Use
DateMatchers.isMillisecond(int) instead |
static DateMatcher<Date> |
DateMatchers.sameMillisecondOfSecond(Date date)
Creates a matcher that matches when the examined date is on the same millisecond as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameMinute(Date date)
Deprecated.
Use
DateMatchers.sameMinuteOfHour(Date) instead |
static DateMatcher<Date> |
DateMatchers.sameMinute(int minute)
Deprecated.
Use
DateMatchers.isMinute(int) instead |
static DateMatcher<Date> |
DateMatchers.sameMinuteOfHour(Date date)
Creates a matcher that matches when the examined date is on the same minute as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameMinuteOfHour(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same minute as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameMinuteOfHour(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same minute as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameMonth(Date date)
Deprecated.
Use
DateMatchers.sameMonthOfYear(Date) instead |
static DateMatcher<Date> |
DateMatchers.sameMonth(Months month)
Deprecated.
Use
DateMatchers.sameMonthOfYear(Months) instead |
static DateMatcher<Date> |
DateMatchers.sameMonthOfYear(Date date)
Creates a matcher that matches when the examined date is on the same month as the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameMonthOfYear(LocalDate date)
Creates a matcher that matches when the examined date is on the same month as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameMonthOfYear(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same month as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameMonthOfYear(Months month)
Deprecated.
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameMonthOfYear(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same month as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(Date date)
F Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(DayMonthYear date)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameOrAfter(int year,
Month month,
int day)
Creates a matcher that matches when the examined date is on the same day or after the start of the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is on the same day or after the start of the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameOrAfter(int year,
Month month,
int day,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is on the same day or after the start of the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is on the same second or after the start of the reference
date and time
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameOrAfter(int year,
Month month,
int day,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is on the same day or before the start of the reference
date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(int year,
Months month,
int dayOfMonth)
Deprecated.
Use {@link #sameOrAfter(int, Month, int)
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameOrAfter(LocalDate date)
Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrAfter(LocalDate date)
F Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameOrAfter(LocalDateTime date)
Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameOrAfter(ZonedDateTime date)
Creates a matcher that matches when the examined date is at the same instant or after the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(Date date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(DayMonthYear date)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameOrBefore(int year,
Month month,
int day)
Creates a matcher that matches when the examined date is on the same day or before the start of the reference
date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is on the same day or before the start of the reference
date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameOrBefore(int year,
Month month,
int day,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is on the same day or before the start of the reference
date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a matcher that matches when the examined date is on the same second or before the start of the reference
date and time
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameOrBefore(int year,
Month month,
int day,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is on the same day or before the start of the reference
date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(int year,
Months month,
int dayOfMonth)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second)
Deprecated.
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameOrBefore(LocalDate date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameOrBefore(LocalDate date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameOrBefore(LocalDateTime date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameOrBefore(ZonedDateTime date)
Creates a matcher that matches when the examined date is at the same instant or before the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameSecond(Date date)
Deprecated.
Use
DateMatchers.sameSecondOfMinute(Date) instead |
static DateMatcher<Date> |
DateMatchers.sameSecond(int second)
Deprecated.
Use
DateMatchers.isSecond(int) instead |
static DateMatcher<Date> |
DateMatchers.sameSecondOfMinute(Date date)
Creates a matcher that matches when the examined date is on the same second as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameSecondOfMinute(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same second as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameSecondOfMinute(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same second as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.sameYear(Date date)
Creates a matcher that matches when the examined date is on the same year as the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.sameYear(LocalDate date)
Creates a matcher that matches when the examined date is on the same year as the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.sameYear(LocalDateTime date)
Creates a matcher that matches when the examined date is on the same year as the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.sameYear(ZonedDateTime date)
Creates a matcher that matches when the examined date is on the same year as the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.within(long period,
ChronoUnit unit,
Date date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.within(long period,
ChronoUnit unit,
int year,
Month month,
int dayofMonth)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.within(long period,
ChronoUnit unit,
int year,
Month month,
int dayOfMonth)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.within(long period,
ChronoUnit unit,
int year,
Month month,
int dayofMonth,
int hour,
int minute,
int second,
int nanos)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.within(long period,
ChronoUnit unit,
int year,
Month month,
int dayOfMonth,
int hour,
int minute,
int second,
int milliseconds)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.within(long period,
ChronoUnit unit,
int year,
Month month,
int dayofMonth,
int hour,
int minute,
int second,
int nanos,
ZoneId tz)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static DateMatcher<LocalDate> |
LocalDateMatchers.within(long period,
ChronoUnit unit,
LocalDate date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.within(long period,
ChronoUnit unit,
LocalDate date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
static DateMatcher<LocalDateTime> |
LocalDateTimeMatchers.within(long period,
ChronoUnit unit,
LocalDateTime date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
static DateMatcher<ZonedDateTime> |
ZonedDateTimeMatchers.within(long period,
ChronoUnit unit,
ZonedDateTime date)
Creates a matcher that matches when the examined date is within a defined period the reference date
For example:
|
static DateMatcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
Date date)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
DayMonthYear date)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
int year,
Months month,
int dayOfMonth)
Deprecated.
|
static DateMatcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
int year,
Months month,
int dayOfMonth,
int hour,
int minute,
int second,
int milliseconds)
|
| Modifier and Type | Class and Description |
|---|---|
class |
AnyOf<T>
A matcher that tests that the examined date matches at least one of the given matchers
|
class |
IsAfter<T>
A matcher that tests that the examined date is after the reference date
|
class |
IsBefore<T>
A matcher that tests that the examined date is before the reference date
|
class |
IsDayOfMonth<T>
A matcher that tests that the examined date is on the specified hour
|
class |
IsDayOfWeek<T>
A matcher that tests that the examined date is on the same day of the week as the reference date
|
class |
IsHour<T>
A matcher that tests that the examined date is on the specified hour
|
class |
IsLeapYear<T>
A matcher that tests that the examined date is a leap year
|
class |
IsMaximum<T>
A base matcher that tests that the examined date has the maximum value for the given date part
|
class |
IsMillisecond<T>
A matcher that tests that the examined date is on the specified minute
|
class |
IsMinimum<T>
A base matcher that tests that the examined date has the maximum value for the given date part
|
class |
IsMinute<T>
A matcher that tests that the examined date is on the specified minute
|
class |
IsMonth<T>
A matcher that tests that the examined date is on the same month of the year
as the reference date
|
class |
IsSame<T>
A matcher that tests that the examined date is the same as the reference date
|
class |
IsSameDay<T>
A matcher that tests that the examined date is the same date as the reference
date
|
class |
IsSameOrAfter<T>
A matcher that tests that the examined date is before or the same instant as
the reference date
|
class |
IsSameOrBefore<T>
A matcher that tests that the actual date is before or the same instant as the reference date
|
class |
IsSecond<T>
A matcher that tests that the examined date is on the specified second
|
class |
IsWithin<T>
A matcher that tests that the examined date is within a defined period of the
reference date
|
class |
IsYear<T>
A matcher that tests that the examined date is on the same year as the
reference date
|
| Modifier and Type | Method and Description |
|---|---|
DateMatcher<T> |
IsYear.atZone(ZoneId zone) |
DateMatcher<T> |
IsWithin.atZone(ZoneId zone) |
DateMatcher<T> |
IsSecond.atZone(ZoneId zone) |
DateMatcher<T> |
IsSameOrBefore.atZone(ZoneId zone) |
DateMatcher<T> |
IsSameOrAfter.atZone(ZoneId zone) |
DateMatcher<T> |
IsSameDay.atZone(ZoneId zone) |
DateMatcher<T> |
IsSame.atZone(ZoneId zone) |
DateMatcher<T> |
IsMonth.atZone(ZoneId zone) |
DateMatcher<T> |
IsMinute.atZone(ZoneId zone) |
DateMatcher<T> |
IsMinimum.atZone(ZoneId zone) |
DateMatcher<T> |
IsMillisecond.atZone(ZoneId zone) |
DateMatcher<T> |
IsMaximum.atZone(ZoneId zone) |
DateMatcher<T> |
IsLeapYear.atZone(ZoneId zone) |
DateMatcher<T> |
IsHour.atZone(ZoneId zone) |
DateMatcher<T> |
IsDayOfWeek.atZone(ZoneId zone) |
DateMatcher<T> |
IsDayOfMonth.atZone(ZoneId zone) |
DateMatcher<T> |
IsBefore.atZone(ZoneId zone) |
DateMatcher<T> |
IsAfter.atZone(ZoneId zone) |
abstract DateMatcher<T> |
DateMatcher.atZone(ZoneId zone)
Creates a copy of this matcher using a specific time zone.
|
DateMatcher<T> |
AnyOf.atZone(ZoneId zone) |
| Constructor and Description |
|---|
AnyOf(Stream<DateMatcher<? super T>> dateMatchers,
BiFunction<T,ZoneId,String> descriptionProvider) |
Copyright © 2019. All rights reserved.