public enum DateField extends Enum<DateField>
Enum Constant and Description |
---|
DAY
For the day of the date
|
DOY
For the day of the year
|
MONTH
For the month of the date
|
WEEK
For the week of the year
|
YEAR
For the year of the date
|
Modifier and Type | Method and Description |
---|---|
static DateField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateField DAY
public static final DateField DOY
public static final DateField WEEK
public static final DateField MONTH
public static final DateField YEAR
public static DateField[] values()
for (DateField c : DateField.values()) System.out.println(c);
public static 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 © 2019 Communote team. All rights reserved.