public enum EnumRelativeTimeUnits extends java.lang.Enum<EnumRelativeTimeUnits>
| Enum Constant and Description |
|---|
DAYS
DAYS.
|
HOURS
HOURS.
|
MINUTES
MINUTES.
|
MONTHS
MONTHS.
|
SECONDS
SECONDS.
|
WEEKS
WEEKS.
|
YEARS
YEARS.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue()
This function returns the String value of this enum.
|
static EnumRelativeTimeUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumRelativeTimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumRelativeTimeUnits SECONDS
public static final EnumRelativeTimeUnits MINUTES
public static final EnumRelativeTimeUnits HOURS
public static final EnumRelativeTimeUnits DAYS
public static final EnumRelativeTimeUnits WEEKS
public static final EnumRelativeTimeUnits MONTHS
public static final EnumRelativeTimeUnits YEARS
public static EnumRelativeTimeUnits[] values()
for (EnumRelativeTimeUnits c : EnumRelativeTimeUnits.values()) System.out.println(c);
public static EnumRelativeTimeUnits 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 getValue()