public enum RiskLevel extends Enum<RiskLevel>
| Modifier and Type | Method and Description |
|---|---|
static RiskLevel |
getGreaterRisk(RiskLevel lvlA,
RiskLevel lvlB) |
boolean |
isGreaterOrEqualRisk(RiskLevel than) |
boolean |
isGreaterRisk(RiskLevel than) |
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 HIGHRISK
public static final RiskLevel LOWRISK
public static final RiskLevel NORISK
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 boolean isGreaterRisk(RiskLevel than)
public boolean isGreaterOrEqualRisk(RiskLevel than)
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.