public final class DayOfWeekHelper extends Object
Modifier and Type | Field and Description |
---|---|
static DayOfWeek[] |
ORDERED_DAYS
Array mapping int types to enums.
|
Constructor and Description |
---|
DayOfWeekHelper() |
Modifier and Type | Method and Description |
---|---|
static DayOfWeek |
getInstance(int type)
Retrieve a Day instance representing the supplied value.
|
static int |
getValue(DayOfWeek day)
Retrieve the ordinal value for a DayOfWeek instance.
|
public static final DayOfWeek[] ORDERED_DAYS
public static DayOfWeek getInstance(int type)
type
- type valuepublic static int getValue(DayOfWeek day)
day
- DayOfWeek instanceCopyright © 2000–2024 Packwood Software. All rights reserved.