public enum DateTimeUnits extends java.lang.Enum<DateTimeUnits>
Enum Constant and Description |
---|
DAYS
days
|
HOURS
hours
|
MILLISECONDS
milliseconds
|
MINUTES
minutes
|
SECONDS
seconds
|
YEARS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
value()
Return the value of the enum.
|
static DateTimeUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeUnits MILLISECONDS
public static final DateTimeUnits SECONDS
public static final DateTimeUnits MINUTES
public static final DateTimeUnits HOURS
public static final DateTimeUnits DAYS
public static final DateTimeUnits YEARS
public static DateTimeUnits[] values()
for (DateTimeUnits c : DateTimeUnits.values()) System.out.println(c);
public static DateTimeUnits valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()