public enum Day extends Enum<Day> implements MpxjEnum
| Enum Constant and Description |
|---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
| Modifier and Type | Method and Description |
|---|---|
static Day |
getInstance(int type)
Retrieve a Day instance representing the supplied value.
|
Day |
getNextDay()
This method provides a simple mechanism to retrieve
the next day in correct sequence, including the transition
from Sunday to Monday.
|
int |
getValue()
Retrieves the int representation of the day.
|
static Day |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Day[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Day SUNDAY
public static final Day MONDAY
public static final Day TUESDAY
public static final Day WEDNESDAY
public static final Day THURSDAY
public static final Day FRIDAY
public static final Day SATURDAY
public static Day[] values()
for (Day c : Day.values()) System.out.println(c);
public static Day valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public Day getNextDay()
public static Day getInstance(int type)
type - type valueCopyright © 2013. All Rights Reserved.