public enum WeatherDataType extends java.lang.Enum<WeatherDataType>
枚举常量和说明 |
---|
WEATHER_DATA_TYPE_ALERT
天气预警,仅支持国内,高级字段
|
WEATHER_DATA_TYPE_ALL
以上全部,高级字段获取对应权限后可返回
|
WEATHER_DATA_TYPE_FORECASTS_FOR_DAY
未来若干天天天气预报
|
WEATHER_DATA_TYPE_FORECASTS_FOR_HOUR
按小时天气预报,高级字段
|
WEATHER_DATA_TYPE_LIFE_INDEX
生活指数,仅支持国内,高级字段
|
WEATHER_DATA_TYPE_REAL_TIME
实时天气预报
|
限定符和类型 | 方法和说明 |
---|---|
static WeatherDataType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WeatherDataType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WeatherDataType WEATHER_DATA_TYPE_REAL_TIME
public static final WeatherDataType WEATHER_DATA_TYPE_FORECASTS_FOR_DAY
public static final WeatherDataType WEATHER_DATA_TYPE_FORECASTS_FOR_HOUR
public static final WeatherDataType WEATHER_DATA_TYPE_LIFE_INDEX
public static final WeatherDataType WEATHER_DATA_TYPE_ALERT
public static final WeatherDataType WEATHER_DATA_TYPE_ALL
public static WeatherDataType[] values()
for (WeatherDataType c : WeatherDataType.values()) System.out.println(c);
public static WeatherDataType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值