| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInRange(MonthDay monthDay,
MonthDay startMonthDay,
MonthDay endMonthDay)
Checks whether the given month-day is within the range of the given month-days.
|
static MonthDay |
next(MonthDay monthDay)
Returns the month-day following the given month-day.
|
static MonthDay |
previous(MonthDay monthDay)
Returns the month-day preceding the given month-day.
|
public static boolean isInRange(MonthDay monthDay, MonthDay startMonthDay, MonthDay endMonthDay)
IllegalArgumentException - if monthDay is nullIllegalArgumentException - if startMonthDay is nullIllegalArgumentException - if endMonthDay is nullpublic static MonthDay next(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static MonthDay previous(MonthDay monthDay)
Always returns MonthDay.of(FEBRUARY, 29) for MonthDay.of(MARCH, 1).
IllegalArgumentException - if monthDay is null