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