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