Enum Constant and Description |
---|
DROUGHT |
DRY |
SATURATION |
SEVERE_DROUGHT |
WET |
Modifier and Type | Method and Description |
---|---|
static Humidity |
fromString(java.lang.String value)
Convert an integer into an enum entry
|
static Humidity |
getStatus(int value)
Convert a number into an enum entry.
|
java.lang.String |
getString()
Return the string representation of an entry.
|
int |
getValue()
Return the numerical value of an entry.
|
static Humidity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Humidity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Humidity SEVERE_DROUGHT
public static final Humidity DROUGHT
public static final Humidity DRY
public static final Humidity WET
public static final Humidity SATURATION
public static Humidity[] values()
for (Humidity c : Humidity.values()) System.out.println(c);
public static Humidity 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 int getValue()
public java.lang.String getString()
public static Humidity fromString(java.lang.String value)
public static Humidity getStatus(int value)
int
- value