public static enum DateFieldGetter.DateField extends Enum<DateFieldGetter.DateField>
| Enum Constant and Description |
|---|
DAY
The day of month (the first day of month is 1)
|
HOUR
The hour as a number from 0 (12:00 AM) to 23 (11:00 PM)
|
ISO_WEEK_NUMBER
The week number of the year, according to ISO 8601 rules
|
MILLISECOND
The millisecond within a second
|
MINUTE
The minute, a number from 0 to 59
|
MONTH
The month, a number from 1 (January) to 12 (December)
|
QUARTER
The quarter of the year, a number from 1 to 4
|
SECOND
The second within the minute, a number from 0 to 59
|
WEEK_DAY
The day of the week of a date, a number from 1 (Sunday) to 7 (Saturday)
|
YEAR
The year
|
| Modifier and Type | Method and Description |
|---|---|
static DateFieldGetter.DateField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateFieldGetter.DateField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateFieldGetter.DateField YEAR
public static final DateFieldGetter.DateField QUARTER
public static final DateFieldGetter.DateField MONTH
public static final DateFieldGetter.DateField ISO_WEEK_NUMBER
public static final DateFieldGetter.DateField WEEK_DAY
public static final DateFieldGetter.DateField DAY
public static final DateFieldGetter.DateField HOUR
public static final DateFieldGetter.DateField MINUTE
public static final DateFieldGetter.DateField SECOND
public static final DateFieldGetter.DateField MILLISECOND
public static DateFieldGetter.DateField[] values()
for (DateFieldGetter.DateField c : DateFieldGetter.DateField.values()) System.out.println(c);
public static DateFieldGetter.DateField 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 © 2021. All rights reserved.