public enum FrequencyUnit extends Enum<FrequencyUnit>
| Enum Constant and Description |
|---|
DAY
Enum value Day.
|
HOUR
Enum value Hour.
|
| Modifier and Type | Method and Description |
|---|---|
static FrequencyUnit |
fromString(String value)
Parses a serialized value to a FrequencyUnit instance.
|
String |
toString() |
static FrequencyUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FrequencyUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrequencyUnit DAY
public static final FrequencyUnit HOUR
public static FrequencyUnit[] values()
for (FrequencyUnit c : FrequencyUnit.values()) System.out.println(c);
public static FrequencyUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static FrequencyUnit fromString(String value)
value - the serialized value to parse.public String toString()
toString in class Enum<FrequencyUnit>Copyright © 2019. All rights reserved.