| Modifier and Type | Method and Description |
|---|---|
static Months |
Months.fromCalendar(int calendarMonth)
Factory method to create a Months instance from a java calendar month value
|
Months |
DayMonthYear.getMonth() |
static Months |
Months.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Months[] |
Months.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Date> |
IsAfter.after(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.after(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is after the end of the reference year
For example:
|
static org.hamcrest.Matcher<Date> |
IsAfter.after(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.after(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
IsBefore.before(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is before the start of the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.before(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is before the start of reference day
For example:
|
static org.hamcrest.Matcher<Date> |
IsBefore.before(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.before(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
IsSameDay.sameDay(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.sameDay(int year,
Months month,
int day)
Creates a matcher that matches when the examined date is on the same day of the year as the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsSameInstant.sameInstant(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.sameInstant(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
IsSameInstant.sameIntstance(int year,
Months month,
int date,
int hour,
int minute,
int second,
int milliseconds)
Deprecated.
See
#sameInstance(int, Months, int, int, int, int, int) |
static org.hamcrest.Matcher<Date> |
IsSameMonth.sameMonth(Months month)
Creates a matcher that matches when the examined date is on the same month as the reference month
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.sameMonth(Months month)
Creates a matcher that matches when the examined date is on the same month as the reference month
For example:
|
static org.hamcrest.Matcher<Date> |
IsSameOrAfter.sameOrAfter(int year,
Months 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 org.hamcrest.Matcher<Date> |
DateMatchers.sameOrAfter(int year,
Months 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 org.hamcrest.Matcher<Date> |
IsSameOrAfter.sameOrAfter(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.sameOrAfter(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
IsSameOrBefore.sameOrBefore(int year,
Months 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 org.hamcrest.Matcher<Date> |
DateMatchers.sameOrBefore(int year,
Months 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 org.hamcrest.Matcher<Date> |
IsSameOrBefore.sameOrBefore(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.sameOrBefore(int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
IsWithin.within(long period,
TimeUnit unit,
int year,
Months month,
int day)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
int year,
Months month,
int day)
Creates a matcher that matches when the examined date is within a given period of the reference date
For example:
|
static org.hamcrest.Matcher<Date> |
IsWithin.within(long period,
TimeUnit unit,
int year,
Months month,
int date,
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 org.hamcrest.Matcher<Date> |
DateMatchers.within(long period,
TimeUnit unit,
int year,
Months month,
int date,
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:
|
| Constructor and Description |
|---|
DayMonthYear(int day,
Months month,
int year) |
IsSameMonth(Months month) |
Copyright © 2014. All Rights Reserved.