public enum RiskLevel extends Enum<RiskLevel>
| Modifier and Type | Method and Description |
|---|---|
static RiskLevel |
fromString(String key) |
String |
getRiskLevel() |
static RiskLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RiskLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RiskLevel LOW
public static final RiskLevel MEDIUM
public static final RiskLevel HIGH
public static RiskLevel[] values()
for (RiskLevel c : RiskLevel.values()) System.out.println(c);
public static RiskLevel 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 getRiskLevel()
Copyright © 2020. All rights reserved.