public static enum CalendarPeriod.Field extends java.lang.Enum<CalendarPeriod.Field>
Enum Constant and Description |
---|
Day |
Hour |
Millisec |
Minute |
Month |
Second |
Year |
Modifier and Type | Method and Description |
---|---|
static CalendarPeriod.Field |
valueOf(java.lang.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 Day
public static final CalendarPeriod.Field Hour
public static final CalendarPeriod.Field Millisec
public static final CalendarPeriod.Field Minute
public static final CalendarPeriod.Field Month
public static final CalendarPeriod.Field Second
public static final CalendarPeriod.Field Year
public static CalendarPeriod.Field valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CalendarPeriod.Field[] values()
for (CalendarPeriod.Field c : CalendarPeriod.Field.values()) System.out.println(c);