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