| 枚举常量和说明 |
|---|
AUTO
昼夜自动切换模式
Day/night automatic switching mode |
CUSTOM
自定义地图样式
Custom map style |
DAY
白天模式
Day mode |
NIGHT
黑夜模式
Night mode |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getValue()
获取枚举对应的整型值
Get the integer value corresponding to the enum |
static MapStyle |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MapStyle[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MapStyle AUTO
public static final MapStyle DAY
public static final MapStyle NIGHT
public static final MapStyle CUSTOM
public static MapStyle[] values()
for (MapStyle c : MapStyle.values()) System.out.println(c);
public static MapStyle valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getValue()