public static enum DateFeature.Type extends java.lang.Enum<DateFeature.Type>
| Enum Constant and Description |
|---|
DAY_OF_MONTH
The day of month represented by an integer from 1 to 31 in the usual
manner.
|
DAY_OF_WEEK
The day of week represented by an integer from 0 to 6;
0 is Sunday, 1 is Monday, and so forth; thus 6 is Saturday.
|
HOURS
The hours represented by an integer from 0 to 23.
|
MINUTES
The minutes represented by an integer from 0 to 59 in the usual
manner.
|
MONTH
The month represented by an integer from 0 to 11;
0 is January, 1 is February, and so forth; thus 11 is December.
|
SECONDS
The seconds represented by an integer from 0 to 61; the values
60 and 61 occur only for leap seconds.
|
YEAR
The year represented by an integer.
|
| Modifier and Type | Method and Description |
|---|---|
static DateFeature.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateFeature.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFeature.Type YEAR
public static final DateFeature.Type MONTH
public static final DateFeature.Type DAY_OF_MONTH
public static final DateFeature.Type DAY_OF_WEEK
public static final DateFeature.Type HOURS
public static final DateFeature.Type MINUTES
public static final DateFeature.Type SECONDS
public static DateFeature.Type[] values()
for (DateFeature.Type c : DateFeature.Type.values()) System.out.println(c);
public static DateFeature.Type 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 null