public enum StatusEnum extends Enum<StatusEnum>
| 限定符和类型 | 方法和说明 |
|---|---|
static StatusEnum |
getByCode(Byte code)
根据编码查询枚举项
|
static StatusEnum |
getByCode(Integer code) |
static StatusEnum |
getByCode(String code) |
Byte |
getByteCode() |
static String |
getCodeByName(String name)
根据名字查询编码
|
static String |
getNameByCode(Byte code) |
static String |
getNameByCode(Integer code) |
static String |
getNameByCode(String code)
根据编码查询名称
|
static boolean |
isAny(Byte code) |
static boolean |
isAny(Integer code) |
static boolean |
isAny(String code)
判断给定值是否在枚举中定义
|
boolean |
isMatch(Byte code) |
boolean |
isMatch(Integer code) |
boolean |
isMatch(String code)
给定编码,是否等于此枚举项
|
static StatusEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static StatusEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StatusEnum VALID
public static final StatusEnum INVALID
public static StatusEnum[] values()
for (StatusEnum c : StatusEnum.values()) System.out.println(c);
public static StatusEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Byte getByteCode()
public static StatusEnum getByCode(Byte code)
code - 编码public static StatusEnum getByCode(String code)
public static StatusEnum getByCode(Integer code)
public boolean isMatch(String code)
code - 编码值public boolean isMatch(Integer code)
public boolean isMatch(Byte code)
public static boolean isAny(String code)
code - 编码值public static boolean isAny(Integer code)
public static boolean isAny(Byte code)
Copyright © 2024. All rights reserved.