public enum Health extends Enum<Health>
Enum Constant and Description |
---|
GREEN
The service is ok.
|
RED
The service is malfunctioning.
|
YELLOW
The service is functioning but has some problems.
|
Modifier and Type | Method and Description |
---|---|
static Health |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Health[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Health GREEN
public static final Health YELLOW
public static final Health RED
public static Health[] values()
for (Health c : Health.values()) System.out.println(c);
public static Health 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 © 2010-2014 anotheria.net. All Rights Reserved.