public enum EnableEnum extends Enum<EnableEnum>
| Modifier and Type | Method and Description |
|---|---|
static EnableEnum |
getByValue(String enumValue)
根据枚举的文本值返回对应的枚举实例.
|
int |
getCode() |
String |
getValue() |
static String |
getValueByCode(Integer cd)
根据枚举文本返回对应的code值.
|
static EnableEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnableEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnableEnum on
public static final EnableEnum off
public static EnableEnum[] values()
for (EnableEnum c : EnableEnum.values()) System.out.println(c);
public static EnableEnum 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 static EnableEnum getByValue(String enumValue)
enumValue - 枚举的文本值public static String getValueByCode(Integer cd)
cd - 枚举的文本值public String getValue()
public int getCode()
Copyright © 2023. All rights reserved.