public enum CustomCity extends Enum<CustomCity>
Description:
| 枚举常量和说明 |
|---|
CHONGQING |
GUANGZHOU |
HANGZHOU |
NINGBO |
NO |
SHANGHAI |
XIAN |
ZHENGZHOU_BS |
ZHENGZHOU_ZH |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName() |
static CustomCity |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CustomCity[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CustomCity NO
public static final CustomCity GUANGZHOU
public static final CustomCity HANGZHOU
public static final CustomCity NINGBO
public static final CustomCity ZHENGZHOU_BS
public static final CustomCity CHONGQING
public static final CustomCity XIAN
public static final CustomCity SHANGHAI
public static final CustomCity ZHENGZHOU_ZH
public static CustomCity[] values()
for (CustomCity c : CustomCity.values()) System.out.println(c);
public static CustomCity valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getName()
Copyright © 2019. All rights reserved.