public enum MobileType extends Enum<MobileType>
| Enum Constant and Description |
|---|
CMCC
中国移动
|
TELECOM
中国电信
|
UNICOM
中国联通
|
UNKNOWN
未知
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
获取运营商名称
|
static MobileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MobileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MobileType UNKNOWN
public static final MobileType CMCC
public static final MobileType UNICOM
public static final MobileType TELECOM
public static MobileType[] values()
for (MobileType c : MobileType.values()) System.out.println(c);
public static MobileType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
Copyright © 2017. All rights reserved.