Enum WeatherCondition

java.lang.Object
java.lang.Enum<WeatherCondition>
com.github.prominence.openweathermap.api.enums.WeatherCondition
All Implemented Interfaces:
Serializable, Comparable<WeatherCondition>, java.lang.constant.Constable

public enum WeatherCondition extends Enum<WeatherCondition>
Represents weather condition and related information. More details here.
  • Enum Constant Details

    • THUNDERSTORM_LIGHT_RAIN

      public static final WeatherCondition THUNDERSTORM_LIGHT_RAIN
      The thunderstorm with light rain.
    • THUNDERSTORM_RAIN

      public static final WeatherCondition THUNDERSTORM_RAIN
      The thunderstorm with rain.
    • THUNDERSTORM_HEAVY_RAIN

      public static final WeatherCondition THUNDERSTORM_HEAVY_RAIN
      The thunderstorm with heavy rain.
    • THUNDERSTORM_LIGHT

      public static final WeatherCondition THUNDERSTORM_LIGHT
      The light thunderstorm.
    • THUNDERSTORM

      public static final WeatherCondition THUNDERSTORM
      The thunderstorm.
    • THUNDERSTORM_HEAVY

      public static final WeatherCondition THUNDERSTORM_HEAVY
      The heavy thunderstorm.
    • THUNDERSTORM_RAGGED

      public static final WeatherCondition THUNDERSTORM_RAGGED
      The ragged thunderstorm.
    • THUNDERSTORM_LIGHT_DRIZZLE

      public static final WeatherCondition THUNDERSTORM_LIGHT_DRIZZLE
      The thunderstorm with light drizzle.
    • THUNDERSTORM_DRIZZLE

      public static final WeatherCondition THUNDERSTORM_DRIZZLE
      The thunderstorm with drizzle.
    • THUNDERSTORM_HEAVY_DRIZZLE

      public static final WeatherCondition THUNDERSTORM_HEAVY_DRIZZLE
      The thunderstorm with heavy drizzle.
    • DRIZZLE_LIGHT

      public static final WeatherCondition DRIZZLE_LIGHT
      The light intensity drizzle.
    • DRIZZLE

      public static final WeatherCondition DRIZZLE
      The drizzle.
    • DRIZZLE_HEAVY

      public static final WeatherCondition DRIZZLE_HEAVY
      The heavy intensity drizzle.
    • DRIZZLE_LIGHT_RAIN

      public static final WeatherCondition DRIZZLE_LIGHT_RAIN
      The light intensity drizzle rain.
    • DRIZZLE_RAIN

      public static final WeatherCondition DRIZZLE_RAIN
      The drizzle rain.
    • DRIZZLE_HEAVY_RAIN

      public static final WeatherCondition DRIZZLE_HEAVY_RAIN
      The heavy intensity drizzle rain.
    • DRIZZLE_SHOWER_RAIN

      public static final WeatherCondition DRIZZLE_SHOWER_RAIN
      The shower rain and drizzle.
    • DRIZZLE_HEAVY_SHOWER_RAIN

      public static final WeatherCondition DRIZZLE_HEAVY_SHOWER_RAIN
      The heavy shower rain and drizzle.
    • DRIZZLE_SHOWER

      public static final WeatherCondition DRIZZLE_SHOWER
      The shower drizzle.
    • RAIN_LIGHT

      public static final WeatherCondition RAIN_LIGHT
      The light rain.
    • RAIN_MODERATE

      public static final WeatherCondition RAIN_MODERATE
      The moderate rain.
    • RAIN_HEAVY

      public static final WeatherCondition RAIN_HEAVY
      The heavy intensity rain.
    • RAIN_VERY_HEAVY

      public static final WeatherCondition RAIN_VERY_HEAVY
      The very heavy rain.
    • RAIN_EXTREME

      public static final WeatherCondition RAIN_EXTREME
      The very heavy rain.
    • RAIN_FREEZING

      public static final WeatherCondition RAIN_FREEZING
      The freezing rain.
    • RAIN_LIGHT_SHOWER

      public static final WeatherCondition RAIN_LIGHT_SHOWER
      The light intensity shower rain.
    • RAIN_SHOWER

      public static final WeatherCondition RAIN_SHOWER
      The shower rain.
    • RAIN_HEAVY_SHOWER

      public static final WeatherCondition RAIN_HEAVY_SHOWER
      The heavy intensity shower rain.
    • RAIN_RAGGED_SHOWER

      public static final WeatherCondition RAIN_RAGGED_SHOWER
      The ragged shower rain.
    • SNOW_LIGHT

      public static final WeatherCondition SNOW_LIGHT
      The light snow.
    • SNOW

      public static final WeatherCondition SNOW
      The snow.
    • SNOW_HEAVY

      public static final WeatherCondition SNOW_HEAVY
      The heavy snow.
    • SNOW_SLEET

      public static final WeatherCondition SNOW_SLEET
      The sleet.
    • SNOW_LIGHT_SHOWER_SLEET

      public static final WeatherCondition SNOW_LIGHT_SHOWER_SLEET
      The light shower sleet.
    • SNOW_SHOWER_SLEET

      public static final WeatherCondition SNOW_SHOWER_SLEET
      The shower sleet.
    • SNOW_LIGHT_RAIN_AND_SNOW

      public static final WeatherCondition SNOW_LIGHT_RAIN_AND_SNOW
      The light rain and snow.
    • SNOW_RAIN_AND_SNOW

      public static final WeatherCondition SNOW_RAIN_AND_SNOW
      The rain and snow.
    • SNOW_LIGHT_SHOWER_SNOW

      public static final WeatherCondition SNOW_LIGHT_SHOWER_SNOW
      The light shower snow.
    • SNOW_SHOWER_SNOW

      public static final WeatherCondition SNOW_SHOWER_SNOW
      The shower snow.
    • SNOW_HEAVY_SHOWER_SNOW

      public static final WeatherCondition SNOW_HEAVY_SHOWER_SNOW
      The heavy shower snow.
    • MIST

      public static final WeatherCondition MIST
      The mist.
    • SMOKE

      public static final WeatherCondition SMOKE
      The smoke.
    • HAZE

      public static final WeatherCondition HAZE
      The haze.
    • DUST_WHIRLS

      public static final WeatherCondition DUST_WHIRLS
      The sand/dust whirls.
    • FOG

      public static final WeatherCondition FOG
      The fog.
    • SAND

      public static final WeatherCondition SAND
      The sand.
    • DUST

      public static final WeatherCondition DUST
      The dust.
    • ASH

      public static final WeatherCondition ASH
      The volcanic ash.
    • SQUALL

      public static final WeatherCondition SQUALL
      The squall.
    • TORNADO

      public static final WeatherCondition TORNADO
      The tornado.
    • CLEAR

      public static final WeatherCondition CLEAR
      The clear sky.
    • CLOUDS_FEW

      public static final WeatherCondition CLOUDS_FEW
      A few clouds: 11-25%.
    • CLOUDS_SCATTERED

      public static final WeatherCondition CLOUDS_SCATTERED
      A scattered clouds: 25-50%.
    • CLOUDS_BROKEN

      public static final WeatherCondition CLOUDS_BROKEN
      A broken clouds: 51-84%.
    • CLOUDS_OVERCAST

      public static final WeatherCondition CLOUDS_OVERCAST
      An overcast clouds: 85-100%.
  • Method Details

    • values

      public static WeatherCondition[] 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

      public static WeatherCondition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Gets id.
      Returns:
      the id
    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • getDescription

      public String getDescription()
      Gets description.
      Returns:
      the description
    • getDayIconId

      public String getDayIconId()
      Gets day icon id.
      Returns:
      the day icon id
    • getNightIconId

      public String getNightIconId()
      Gets night icon id.
      Returns:
      the night icon id
    • getDayIconUrl

      public String getDayIconUrl()
      Gets day icon url.
      Returns:
      the day icon url
    • getNightIconUrl

      public String getNightIconUrl()
      Gets night icon url.
      Returns:
      the night icon url
    • getIconUrl

      public static String getIconUrl(String iconId)
      Gets icon url.
      Parameters:
      iconId - the icon id
      Returns:
      the icon url
    • getById

      public static WeatherCondition getById(int id)
      Gets WeatherCondition by id.
      Parameters:
      id - the id
      Returns:
      the by id
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WeatherCondition>