| Enum Constant and Description |
|---|
DAY |
HOUR |
MONTH |
UNRECOGNIZED
Used when received value can't be mapped to this enumeration.
|
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static Interval |
fromValue(java.lang.String value) |
java.lang.String |
getValue() |
static Interval |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Interval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Interval HOUR
public static final Interval DAY
public static final Interval WEEK
public static final Interval MONTH
public static final Interval YEAR
public static final Interval UNRECOGNIZED
public static Interval[] values()
for (Interval c : Interval.values()) System.out.println(c);
public static Interval 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 Interval fromValue(java.lang.String value)
public java.lang.String getValue()