public enum DateTimeUnit extends Enum<DateTimeUnit >
| Enum Constant and Description |
|---|
DAY_OF_MONTH
|
HOUR_OF_DAY
|
MINUTES_OF_HOUR
|
MONTH_OF_YEAR
|
QUARTER
|
SECOND_OF_MINUTE
|
WEEK_OF_WEEKYEAR
|
YEAR_OF_CENTURY
|
| Modifier and Type | Method and Description |
|---|---|
DateTimeField |
field()
|
byte |
id()
|
static DateTimeUnit |
resolve(byte id)
|
static DateTimeUnit |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static DateTimeUnit |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final DateTimeUnitWEEK_OF_WEEKYEAR
public static final DateTimeUnitYEAR_OF_CENTURY
public static final DateTimeUnitQUARTER
public static final DateTimeUnitMONTH_OF_YEAR
public static final DateTimeUnitDAY_OF_MONTH
public static final DateTimeUnitHOUR_OF_DAY
public static final DateTimeUnitMINUTES_OF_HOUR
public static final DateTimeUnitSECOND_OF_MINUTE
public static DateTimeUnit[] values()
for (DateTimeUnit c : DateTimeUnit.values()) System.out.println(c);
public static DateTimeUnitvalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public byte id()
public DateTimeField field()
public static DateTimeUnitresolve(byte id)