public class ConditionCode extends Object implements Serializable
Condition codes are used in the yweather:forecast element to describe the current conditions.
Code | Description |
---|---|
0 | tornado |
1 | tropical storm |
2 | hurricane |
3 | severe thunderstorms |
4 | thunderstorms |
5 | mixed rain and snow |
6 | mixed rain and sleet |
7 | mixed snow and sleet |
8 | freezing drizzle |
9 | drizzle |
10 | freezing rain |
11 | showers |
12 | showers |
13 | snow flurries |
14 | light snow showers |
15 | blowing snow |
16 | snow |
17 | hail |
18 | sleet |
19 | dust |
20 | foggy |
21 | haze |
22 | smoky |
23 | blustery |
24 | windy |
25 | cold |
26 | cloudy |
27 | mostly cloudy (night) |
28 | mostly cloudy (day) |
29 | partly cloudy (night) |
30 | partly cloudy (day) |
31 | clear (night) |
32 | sunny |
33 | fair (night) |
34 | fair (day) |
35 | mixed rain and hail |
36 | hot |
37 | isolated thunderstorms |
38 | scattered thunderstorms |
39 | scattered thunderstorms |
40 | scattered showers |
41 | heavy snow |
42 | scattered snow showers |
43 | heavy snow |
44 | partly cloudy |
45 | thundershowers |
46 | snow showers |
47 | isolated thundershowers |
3200 | not available |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ConditionCode |
fromCode(int code)
Returns a condition code instance for a given integer
|
int |
getCode()
The integer code for this condition
|
String |
getDescription()
Text description of condition (from the table at top of class)
|
int |
hashCode() |
String |
toString() |
public static final ConditionCode TORNADO
public static final ConditionCode TROPICAL_STORM
public static final ConditionCode HURRICANE
public static final ConditionCode SEVERE_THUNDERSTORMS
public static final ConditionCode THUNDERSTORMS
public static final ConditionCode MIXED_RAIN_AND_SNOW
public static final ConditionCode MIXED_RAIN_AND_SLEET
public static final ConditionCode MIXED_SNOW_AND_SLEET
public static final ConditionCode FREEZING_DRIZZLE
public static final ConditionCode DRIZZLE
public static final ConditionCode FREEZING_RAIN
public static final ConditionCode SHOWERS_LIGHT
public static final ConditionCode SHOWERS_HEAVY
public static final ConditionCode FLURRIES
public static final ConditionCode LIGHT_SNOW_SHOWERS
public static final ConditionCode BLOWING_SNOW
public static final ConditionCode SNOW
public static final ConditionCode HAIL
public static final ConditionCode SLEET
public static final ConditionCode DUST
public static final ConditionCode FOGGY
public static final ConditionCode HAZE
public static final ConditionCode SMOKY
public static final ConditionCode BLUSTERY
public static final ConditionCode WINDY
public static final ConditionCode COLD
public static final ConditionCode CLOUDY
public static final ConditionCode MOSTLY_CLOUDY_NIGHT
public static final ConditionCode MOSTLY_CLOUDY_DAY
public static final ConditionCode PARTLY_CLOUDY_NIGHT
public static final ConditionCode PARTLY_CLOUDY_DAY
public static final ConditionCode CLEAR_NIGHT
public static final ConditionCode SUNNY
public static final ConditionCode FAIR_NIGHT
public static final ConditionCode FAIR_DAY
public static final ConditionCode MIXED_RAIN_AND_HAIL
public static final ConditionCode HOT
public static final ConditionCode ISOLATED_THUNDERSTORMS
public static final ConditionCode SCATTERED_THUNDERSTORMS_HEAVY
public static final ConditionCode SCATTERED_THUNDERSTORMS_LIGHT
public static final ConditionCode SCATTERED_SHOWERS
public static final ConditionCode HEAVY_SNOW
public static final ConditionCode SCATTERED_SNOW_SHOWERS
public static final ConditionCode HEAVY_SNOW_WINDY
public static final ConditionCode PARTLY_CLOUDY
public static final ConditionCode THUNDERSHOWERS
public static final ConditionCode SHOW_SHOWERS
public static final ConditionCode ISLOATED_THUNDERSHOWERS
public static final ConditionCode NOT_AVAILABLE
public int getCode()
public String getDescription()
public static ConditionCode fromCode(int code)
code
- integer code to search forCopyright © 2016. All rights reserved.