public static enum TimeInfo.TimeUnits extends java.lang.Enum<TimeInfo.TimeUnits>
Enum Constant and Description |
---|
NOT_SET |
UNIT_CENTURIES |
UNIT_DAYS |
UNIT_DECADES |
UNIT_HOURS |
UNIT_MILLISECONDS |
UNIT_MINUTES |
UNIT_MONTHS |
UNIT_SECONDS |
UNIT_UNKNOWN |
UNIT_WEEKS |
UNIT_YEARS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static TimeInfo.TimeUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeInfo.TimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeInfo.TimeUnits NOT_SET
public static final TimeInfo.TimeUnits UNIT_CENTURIES
public static final TimeInfo.TimeUnits UNIT_DAYS
public static final TimeInfo.TimeUnits UNIT_DECADES
public static final TimeInfo.TimeUnits UNIT_HOURS
public static final TimeInfo.TimeUnits UNIT_MILLISECONDS
public static final TimeInfo.TimeUnits UNIT_MINUTES
public static final TimeInfo.TimeUnits UNIT_MONTHS
public static final TimeInfo.TimeUnits UNIT_SECONDS
public static final TimeInfo.TimeUnits UNIT_UNKNOWN
public static final TimeInfo.TimeUnits UNIT_WEEKS
public static final TimeInfo.TimeUnits UNIT_YEARS
public static TimeInfo.TimeUnits[] values()
for (TimeInfo.TimeUnits c : TimeInfo.TimeUnits.values()) System.out.println(c);
public static TimeInfo.TimeUnits 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()