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