public class DaysOfWeek extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAfter(DayOfWeek former,
DayOfWeek latter)
Checks whether the given former day-of-week follows the given latter day-of-week.
|
static boolean |
isBefore(DayOfWeek former,
DayOfWeek latter)
Checks whether the given former day-of-week precedes the given latter day-of-week.
|
static boolean |
isInRange(DayOfWeek dayOfWeek,
DayOfWeek startDayOfWeek,
DayOfWeek endDayOfWeek)
Checks whether the given day-of-week is within the range of the given days-of-week.
|
static DayOfWeek |
next(DayOfWeek dayOfWeek)
Returns the day-of-week following the given day-of-week.
|
static DayOfWeek |
previous(DayOfWeek dayOfWeek)
Returns the day-of-week preceding the given day-of-week.
|
public static boolean isAfter(DayOfWeek former, DayOfWeek latter)
IllegalArgumentException - if former is nullIllegalArgumentException - if latter is nullpublic static boolean isBefore(DayOfWeek former, DayOfWeek latter)
IllegalArgumentException - if former is nullIllegalArgumentException - if latter is nullpublic static boolean isInRange(DayOfWeek dayOfWeek, DayOfWeek startDayOfWeek, DayOfWeek endDayOfWeek)
IllegalArgumentException - if dayOfWeek is nullIllegalArgumentException - if startDayOfWeek is nullIllegalArgumentException - if endDayOfWeek is nullpublic static DayOfWeek next(DayOfWeek dayOfWeek)
IllegalArgumentException - if dayOfWeek is nullpublic static DayOfWeek previous(DayOfWeek dayOfWeek)
IllegalArgumentException - if dayOfWeek is null