public enum DurationScale extends java.lang.Enum<DurationScale>
Enum Constant and Description |
---|
DAY |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static DurationScale |
parse(java.lang.String value) |
java.lang.String |
toString() |
static DurationScale |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DurationScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DurationScale DAY
public static final DurationScale HOUR
public static final DurationScale MILLISECOND
public static final DurationScale MINUTE
public static final DurationScale MONTH
public static final DurationScale SECOND
public static final DurationScale WEEK
public static final DurationScale YEAR
public static DurationScale[] values()
for (DurationScale c : DurationScale.values()) System.out.println(c);
public static DurationScale 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 DurationScale parse(java.lang.String value) throws KaleoDefinitionValidationException
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<DurationScale>