Serializable
, Comparable<CalendarField>
public enum CalendarField extends Enum<CalendarField>
Enum Constant | Description |
---|---|
DAY_OF_MONTH |
|
DAY_OF_WEEK |
|
DAY_OF_YEAR |
|
HOUR_OF_DAY |
|
MINUTE_OF_DAY |
|
MINUTE_OF_HOUR |
|
MONTH_OF_YEAR |
|
SECOND_OF_DAY |
|
SECOND_OF_MINUTE |
|
WEEK_OF_YEAR |
|
YEAR |
Modifier and Type | Method | Description |
---|---|---|
static CalendarField |
valueOf(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 SECOND_OF_MINUTE
public static final CalendarField SECOND_OF_DAY
public static final CalendarField MINUTE_OF_HOUR
public static final CalendarField MINUTE_OF_DAY
public static final CalendarField HOUR_OF_DAY
public static final CalendarField DAY_OF_MONTH
public static final CalendarField DAY_OF_WEEK
public static final CalendarField DAY_OF_YEAR
public static final CalendarField WEEK_OF_YEAR
public static final CalendarField MONTH_OF_YEAR
public static final CalendarField YEAR
public static CalendarField[] values()
for (CalendarField c : CalendarField.values()) System.out.println(c);
public static CalendarField 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 nullCopyright © 2019. All rights reserved.