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