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