public enum MenuStatus extends Enum<MenuStatus>
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getMessage() |
void |
setCode(int code) |
void |
setMessage(String message) |
static String |
valueOf(Integer status) |
static MenuStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MenuStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MenuStatus ENABLE
public static final MenuStatus DISABLE
public static MenuStatus[] values()
for (MenuStatus c : MenuStatus.values()) System.out.println(c);
public static MenuStatus 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 getCode()
public void setCode(int code)
public String getMessage()
public void setMessage(String message)
Copyright © 2018. All rights reserved.