Serializable, Comparable<RiskLevel>public enum RiskLevel extends Enum<RiskLevel>
| Modifier and Type | Method | Description |
|---|---|---|
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 HIGH
public static final RiskLevel LOW
public static final RiskLevel MEDIUM
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 nullCopyright © 2020. All rights reserved.