public enum State extends Enum<State>
Enum Constant and Description |
---|
CRITICAL
Denotes the state of a category of functionality
where it requires the immediate attention of an administrator.
|
NORMAL
Denotes the state of a category of functionality
where it is behaving normally.
|
NOT_APPLICABLE
This constant should be used where the state of a
category of functionality does not make sense.
|
UNKNOWN
This constant should be used where the state of a
category of functionality cannot be determined.
|
WARNING
Denotes the state of a category of functionality
where it requires the attention of an administrator.
|
Modifier and Type | Method and Description |
---|---|
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State NOT_APPLICABLE
public static final State NORMAL
public static final State WARNING
public static final State CRITICAL
public static final State UNKNOWN
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State 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 © 2015. All Rights Reserved.