public enum DateTimeField extends Enum<DateTimeField>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static DateTimeField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeField YEAR
public static final DateTimeField MONTH
public static final DateTimeField WEEK
public static final DateTimeField DAY
public static final DateTimeField HOUR
public static final DateTimeField MINUTE
public static final DateTimeField SECOND
public static DateTimeField[] values()
for (DateTimeField c : DateTimeField.values()) System.out.println(c);
public static DateTimeField 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.