Package com.azure.maps.weather.models
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 Summary
Modifier and TypeFieldDescriptionstatic final WeatherDataUnit
Static value imperial for WeatherDataUnit.static final WeatherDataUnit
Static value metric for WeatherDataUnit. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeatherDataUnit
fromString
(String name) Creates or finds a WeatherDataUnit from its string representation.static Collection<WeatherDataUnit>
values()
Gets known WeatherDataUnit values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
METRIC
Static value metric for WeatherDataUnit. -
IMPERIAL
Static value imperial for WeatherDataUnit.
-
-
Constructor Details
-
WeatherDataUnit
public WeatherDataUnit()
-
-
Method Details
-
fromString
Creates or finds a WeatherDataUnit from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding WeatherDataUnit.
-
values
Gets known WeatherDataUnit values.- Returns:
- known WeatherDataUnit values.
-