| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAfter(Month former,
Month latter)
Checks whether the given former month follows the given latter month.
|
static boolean |
isBefore(Month former,
Month latter)
Checks whether the given former month precedes the given latter month.
|
static boolean |
isInRange(Month month,
Month startMonth,
Month endMonth)
Checks whether the given month is within the range of the given months.
|
static Month |
next(Month month)
Returns the month following the given month.
|
static Month |
previous(Month month)
Returns the month preceding the given month.
|
public static boolean isAfter(Month former, Month latter)
IllegalArgumentException - if former is nullIllegalArgumentException - if latter is nullpublic static boolean isBefore(Month former, Month latter)
IllegalArgumentException - if former is nullIllegalArgumentException - if latter is nullpublic static boolean isInRange(Month month, Month startMonth, Month endMonth)
IllegalArgumentException - if month is nullIllegalArgumentException - if startMonth is nullIllegalArgumentException - if endMonth is nullpublic static Month next(Month month)
IllegalArgumentException - if month is nullpublic static Month previous(Month month)
IllegalArgumentException - if month is null