public enum WeatherStatus extends java.lang.Enum<WeatherStatus>
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static WeatherStatus |
valueOf(int weatherStatus) |
static WeatherStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherStatus SUNNY
public static final WeatherStatus RAINY
public static final WeatherStatus SNOWY
public static WeatherStatus[] values()
for (WeatherStatus c : WeatherStatus.values()) System.out.println(c);
public static WeatherStatus 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 WeatherStatus valueOf(int weatherStatus)
public int getValue()