public static enum CalendarPeriod.Field extends Enum<CalendarPeriod.Field>
Enum Constant and Description |
---|
Day |
Hour |
Millisec |
Minute |
Month |
Second |
Year |
Modifier and Type | Method and Description |
---|---|
static CalendarPeriod.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarPeriod.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarPeriod.Field Millisec
public static final CalendarPeriod.Field Second
public static final CalendarPeriod.Field Minute
public static final CalendarPeriod.Field Hour
public static final CalendarPeriod.Field Day
public static final CalendarPeriod.Field Month
public static final CalendarPeriod.Field Year
public static CalendarPeriod.Field[] values()
for (CalendarPeriod.Field c : CalendarPeriod.Field.values()) System.out.println(c);
public static CalendarPeriod.Field 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 null