public enum WeatherStatus extends java.lang.Enum<WeatherStatus>
Enum Constant and Description |
---|
CLEAR |
CLOUDY |
FOG |
HAIL |
HAZY |
HEAVY_RAIN |
HEAVY_RAIN_SNOW |
HEAVY_SNOW |
INVALID |
LIGHT_RAIN |
LIGHT_RAIN_SNOW |
LIGHT_SNOW |
MOSTLY_CLOUDY |
PARTLY_CLOUDY |
RAIN |
SCATTERED_SHOWERS |
SCATTERED_THUNDERSTORMS |
SNOW |
THUNDERSTORMS |
UNKNOWN_PRECIPITATION |
WINDY |
WINTRY_MIX |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static WeatherStatus |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(WeatherStatus value)
Retrieves the String Representation of the Value
|
short |
getValue() |
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 CLEAR
public static final WeatherStatus PARTLY_CLOUDY
public static final WeatherStatus MOSTLY_CLOUDY
public static final WeatherStatus RAIN
public static final WeatherStatus SNOW
public static final WeatherStatus WINDY
public static final WeatherStatus THUNDERSTORMS
public static final WeatherStatus WINTRY_MIX
public static final WeatherStatus FOG
public static final WeatherStatus HAZY
public static final WeatherStatus HAIL
public static final WeatherStatus SCATTERED_SHOWERS
public static final WeatherStatus SCATTERED_THUNDERSTORMS
public static final WeatherStatus UNKNOWN_PRECIPITATION
public static final WeatherStatus LIGHT_RAIN
public static final WeatherStatus HEAVY_RAIN
public static final WeatherStatus LIGHT_SNOW
public static final WeatherStatus HEAVY_SNOW
public static final WeatherStatus LIGHT_RAIN_SNOW
public static final WeatherStatus HEAVY_RAIN_SNOW
public static final WeatherStatus CLOUDY
public static final WeatherStatus INVALID
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 getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(WeatherStatus value)
value
- The enum constantpublic short getValue()