Class WeatherDataUnit

java.lang.Object
com.azure.core.util.ExpandableStringEnum<WeatherDataUnit>
com.azure.maps.weather.models.WeatherDataUnit

public final class WeatherDataUnit extends com.azure.core.util.ExpandableStringEnum<WeatherDataUnit>
Defines values for WeatherDataUnit.
  • Field Details

    • METRIC

      public static final WeatherDataUnit METRIC
      Static value metric for WeatherDataUnit.
    • IMPERIAL

      public static final WeatherDataUnit IMPERIAL
      Static value imperial for WeatherDataUnit.
  • Constructor Details

    • WeatherDataUnit

      public WeatherDataUnit()
  • Method Details

    • fromString

      public static WeatherDataUnit fromString(String name)
      Creates or finds a WeatherDataUnit from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding WeatherDataUnit.
    • values

      public static Collection<WeatherDataUnit> values()
      Gets known WeatherDataUnit values.
      Returns:
      known WeatherDataUnit values.