public static enum HealthLevel.EnumHealth extends Enum<HealthLevel.EnumHealth>
Enum Constant and Description |
---|
GREEN
The greater the code, the worst it is (except the 'unknown' special case).
|
RED |
UNKNOWN |
YELLOW |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
The code associated to the health status are UNKNOWN(3), RED(2),
YELLOW(1), GREEN(0), HEALTH_NOT_APPLICABLE(-1).
|
String |
getLabel() |
boolean |
isNonNominal() |
static HealthLevel.EnumHealth |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthLevel.EnumHealth[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthLevel.EnumHealth GREEN
public static final HealthLevel.EnumHealth YELLOW
public static final HealthLevel.EnumHealth RED
public static final HealthLevel.EnumHealth UNKNOWN
public static HealthLevel.EnumHealth[] values()
for (HealthLevel.EnumHealth c : HealthLevel.EnumHealth.values()) System.out.println(c);
public static HealthLevel.EnumHealth 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 int getCode()
public String getLabel()
public boolean isNonNominal()
Copyright © 2014–2022. All rights reserved.