Enum AirQualityIndex

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

public enum AirQualityIndex extends Enum<AirQualityIndex>
The enum Air quality index.
  • Enum Constant Details

    • GOOD

      public static final AirQualityIndex GOOD
      Good air quality index.
    • FAIR

      public static final AirQualityIndex FAIR
      Fair air quality index.
    • MODERATE

      public static final AirQualityIndex MODERATE
      Moderate air quality index.
    • POOR

      public static final AirQualityIndex POOR
      Poor air quality index.
    • VERY_POOR

      public static final AirQualityIndex VERY_POOR
      Very poor air quality index.
  • Method Details

    • values

      public static AirQualityIndex[] 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 AirQualityIndex 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
    • getValue

      public int getValue()
      Gets value.
      Returns:
      the value
    • getByIndex

      public static AirQualityIndex getByIndex(int index)
      Gets by index.
      Parameters:
      index - the index
      Returns:
      the by index