public enum WeatherServerType extends java.lang.Enum<WeatherServerType>
Enum Constant and Description |
---|
LANGUAGE_SERVER_TYPE_ABROAD
国外
|
WEATHER_SERVER_TYPE_DEFAULT
国内
|
Modifier and Type | Method and Description |
---|---|
static WeatherServerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WeatherServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeatherServerType WEATHER_SERVER_TYPE_DEFAULT
public static final WeatherServerType LANGUAGE_SERVER_TYPE_ABROAD
public static WeatherServerType[] values()
for (WeatherServerType c : WeatherServerType.values()) System.out.println(c);
public static WeatherServerType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null