public enum WeatherCode extends java.lang.Enum<WeatherCode>
| Modifier and Type | Method and Description |
|---|---|
static WeatherCode |
get(int code)
Build a weather code based on an Yahoo Weather codes (this should be considered the standard
baseline by all weather providers)
|
int |
getCode() |
WeatherIcon |
getIcon() |
static WeatherCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherCode TORNADO
public static final WeatherCode TROPICAL_STORM
public static final WeatherCode HURRICANE
public static final WeatherCode SEVERE_THUNDERSTORMS
public static final WeatherCode THUNDERSTORMS
public static final WeatherCode MIXED_RAIN_SNOW
public static final WeatherCode MIXED_RAIN_SLEET
public static final WeatherCode MIXED_SNOW_SLEET
public static final WeatherCode FREEZING_DRIZZLE
public static final WeatherCode DRIZZLE
public static final WeatherCode FREEZING_RAIN
public static final WeatherCode SHOWERS
public static final WeatherCode HEAVY_SHOWERS
public static final WeatherCode SNOW_FLURRIES
public static final WeatherCode LIGHT_SNOW_SHOWERS
public static final WeatherCode BLOWING_SNOW
public static final WeatherCode SNOW
public static final WeatherCode HAIL
public static final WeatherCode SLEET
public static final WeatherCode DUST
public static final WeatherCode FOGGY
public static final WeatherCode HAZE
public static final WeatherCode SMOKY
public static final WeatherCode BLUSTERY
public static final WeatherCode WINDY
public static final WeatherCode CLOUDY
public static final WeatherCode MOSTLY_CLOUDY
public static final WeatherCode PARTLY_CLOUDY
public static final WeatherCode CLEAR
public static final WeatherCode FAIR
public static final WeatherCode MIXED_RAIN_AND_HAIL
public static final WeatherCode ISOLATED_THUNDERSTORMS
public static final WeatherCode SCATTERED_SHOWERS
public static final WeatherCode HEAVY_SNOW
public static final WeatherCode SCATTERED_SNOW_SHOWERS
public static final WeatherCode THUNDERSHOWERS
public static final WeatherCode SNOW_SHOWERS
public static final WeatherCode ISOLATED_THUNDERSHOWERS
public static final WeatherCode NOT_AVAILABLE
public static WeatherCode[] values()
for (WeatherCode c : WeatherCode.values()) System.out.println(c);
public static WeatherCode 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 WeatherIcon getIcon()
public int getCode()
public static WeatherCode get(int code)
code - the yahoo weather code