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