Enum WeatherCondition
- All Implemented Interfaces:
Serializable, Comparable<WeatherCondition>, java.lang.constant.Constable
Represents weather condition and related information.
More details here.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe volcanic ash.The clear sky.A broken clouds: 51-84%.A few clouds: 11-25%.An overcast clouds: 85-100%.A scattered clouds: 25-50%.The drizzle.The heavy intensity drizzle.The heavy intensity drizzle rain.The heavy shower rain and drizzle.The light intensity drizzle.The light intensity drizzle rain.The drizzle rain.The shower drizzle.The shower rain and drizzle.The dust.The sand/dust whirls.The fog.The haze.The mist.The very heavy rain.The freezing rain.The heavy intensity rain.The heavy intensity shower rain.The light rain.The light intensity shower rain.The moderate rain.The ragged shower rain.The shower rain.The very heavy rain.The sand.The smoke.The snow.The heavy snow.The heavy shower snow.The light snow.The light rain and snow.The light shower sleet.The light shower snow.The rain and snow.The shower sleet.The shower snow.The sleet.The squall.The thunderstorm.The thunderstorm with drizzle.The heavy thunderstorm.The thunderstorm with heavy drizzle.The thunderstorm with heavy rain.The light thunderstorm.The thunderstorm with light drizzle.The thunderstorm with light rain.The ragged thunderstorm.The thunderstorm with rain.The tornado. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeatherConditiongetById(int id) GetsWeatherConditionby id.Gets day icon id.Gets day icon url.Gets description.static StringgetIconUrl(String iconId) Gets icon url.intgetId()Gets id.getName()Gets name.Gets night icon id.Gets night icon url.toString()static WeatherConditionReturns the enum constant of this type with the specified name.static WeatherCondition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THUNDERSTORM_LIGHT_RAIN
The thunderstorm with light rain. -
THUNDERSTORM_RAIN
The thunderstorm with rain. -
THUNDERSTORM_HEAVY_RAIN
The thunderstorm with heavy rain. -
THUNDERSTORM_LIGHT
The light thunderstorm. -
THUNDERSTORM
The thunderstorm. -
THUNDERSTORM_HEAVY
The heavy thunderstorm. -
THUNDERSTORM_RAGGED
The ragged thunderstorm. -
THUNDERSTORM_LIGHT_DRIZZLE
The thunderstorm with light drizzle. -
THUNDERSTORM_DRIZZLE
The thunderstorm with drizzle. -
THUNDERSTORM_HEAVY_DRIZZLE
The thunderstorm with heavy drizzle. -
DRIZZLE_LIGHT
The light intensity drizzle. -
DRIZZLE
The drizzle. -
DRIZZLE_HEAVY
The heavy intensity drizzle. -
DRIZZLE_LIGHT_RAIN
The light intensity drizzle rain. -
DRIZZLE_RAIN
The drizzle rain. -
DRIZZLE_HEAVY_RAIN
The heavy intensity drizzle rain. -
DRIZZLE_SHOWER_RAIN
The shower rain and drizzle. -
DRIZZLE_HEAVY_SHOWER_RAIN
The heavy shower rain and drizzle. -
DRIZZLE_SHOWER
The shower drizzle. -
RAIN_LIGHT
The light rain. -
RAIN_MODERATE
The moderate rain. -
RAIN_HEAVY
The heavy intensity rain. -
RAIN_VERY_HEAVY
The very heavy rain. -
RAIN_EXTREME
The very heavy rain. -
RAIN_FREEZING
The freezing rain. -
RAIN_LIGHT_SHOWER
The light intensity shower rain. -
RAIN_SHOWER
The shower rain. -
RAIN_HEAVY_SHOWER
The heavy intensity shower rain. -
RAIN_RAGGED_SHOWER
The ragged shower rain. -
SNOW_LIGHT
The light snow. -
SNOW
The snow. -
SNOW_HEAVY
The heavy snow. -
SNOW_SLEET
The sleet. -
SNOW_LIGHT_SHOWER_SLEET
The light shower sleet. -
SNOW_SHOWER_SLEET
The shower sleet. -
SNOW_LIGHT_RAIN_AND_SNOW
The light rain and snow. -
SNOW_RAIN_AND_SNOW
The rain and snow. -
SNOW_LIGHT_SHOWER_SNOW
The light shower snow. -
SNOW_SHOWER_SNOW
The shower snow. -
SNOW_HEAVY_SHOWER_SNOW
The heavy shower snow. -
MIST
The mist. -
SMOKE
The smoke. -
HAZE
The haze. -
DUST_WHIRLS
The sand/dust whirls. -
FOG
The fog. -
SAND
The sand. -
DUST
The dust. -
ASH
The volcanic ash. -
SQUALL
The squall. -
TORNADO
The tornado. -
CLEAR
The clear sky. -
CLOUDS_FEW
A few clouds: 11-25%. -
CLOUDS_SCATTERED
A scattered clouds: 25-50%. -
CLOUDS_BROKEN
A broken clouds: 51-84%. -
CLOUDS_OVERCAST
An overcast clouds: 85-100%.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()Gets id.- Returns:
- the id
-
getName
-
getDescription
-
getDayIconId
-
getNightIconId
-
getDayIconUrl
-
getNightIconUrl
-
getIconUrl
-
getById
GetsWeatherConditionby id.- Parameters:
id- the id- Returns:
- the by id
-
toString
- Overrides:
toStringin classEnum<WeatherCondition>
-