public enum NumberType extends Enum<NumberType>
| 枚举常量和说明 |
|---|
AUTO_DETECT
未知类型
|
AVIATION
民航车牌
|
CIVIL
民用
|
LING2012
旧式领事馆车牌
|
LING2018
新式领事馆车牌
|
NEW_ENERGY
新能源车牌
|
PLA2012
新式军车车牌
|
SHI2012
旧式大使馆车牌
|
SHI2017
新式大使馆车牌
|
WJ2012
新式武警车牌
|
| 限定符和类型 | 方法和说明 |
|---|---|
static NumberType |
detect(String number)
检测车牌号码所属的车牌号码类型
|
boolean |
isAnyOf(NumberType... types) |
int |
maxLength() |
static NumberType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static NumberType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final NumberType AUTO_DETECT
public static final NumberType CIVIL
public static final NumberType NEW_ENERGY
public static final NumberType WJ2012
public static final NumberType PLA2012
public static final NumberType SHI2012
public static final NumberType SHI2017
public static final NumberType LING2012
public static final NumberType LING2018
public static final NumberType AVIATION
public static NumberType[] values()
for (NumberType c : NumberType.values()) System.out.println(c);
public static NumberType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static NumberType detect(String number)
number - 车牌号码public int maxLength()
public boolean isAnyOf(NumberType... types)