Modifier and Type | Method and Description |
---|---|
static Accuracy |
fromValue(java.lang.String value) |
java.lang.String |
getValue() |
static Accuracy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Accuracy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accuracy YEAR
public static final Accuracy MONTH
public static final Accuracy DAY
public static final Accuracy HOUR
public static final Accuracy MIN
public static final Accuracy NONE
public static Accuracy[] values()
for (Accuracy c : Accuracy.values()) System.out.println(c);
public static Accuracy 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()
public static Accuracy fromValue(java.lang.String value)