public enum ModelEnum extends Enum<ModelEnum> implements net.mingsoft.base.constant.e.BaseEnum
| Modifier and Type | Method and Description |
|---|---|
int |
toInt()
实现父类方法转换为整形
|
static ModelEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelEnum MENU
public static final ModelEnum NOTMENU
public static ModelEnum[] values()
for (ModelEnum c : ModelEnum.values()) System.out.println(c);
public static ModelEnum 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 int toInt()
toInt in interface net.mingsoft.base.constant.e.BaseEnumCopyright © 2020. All rights reserved.