public enum CalendarFieldEnum extends Enum<CalendarFieldEnum>
Enum Constant and Description |
---|
DAY |
HOUR |
MILLISEC |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
static CalendarFieldEnum |
fromString(String field) |
int |
getCalendarField() |
ChronoField |
getChronoField() |
ChronoUnit |
getChronoUnit() |
String[] |
getNames() |
static String |
getValidList() |
static CalendarFieldEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarFieldEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarFieldEnum MILLISEC
public static final CalendarFieldEnum SECOND
public static final CalendarFieldEnum MINUTE
public static final CalendarFieldEnum HOUR
public static final CalendarFieldEnum DAY
public static final CalendarFieldEnum MONTH
public static final CalendarFieldEnum WEEK
public static final CalendarFieldEnum YEAR
public static CalendarFieldEnum[] values()
for (CalendarFieldEnum c : CalendarFieldEnum.values()) System.out.println(c);
public static CalendarFieldEnum 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 static String getValidList()
public int getCalendarField()
public String[] getNames()
public ChronoUnit getChronoUnit()
public static CalendarFieldEnum fromString(String field)
public ChronoField getChronoField()