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