public enum GaugeThreshold extends Enum<GaugeThreshold> implements IsThreshold
IsThreshold| Enum Constant and Description |
|---|
critical
the critical threshold.
|
normal
the normal threshold
|
warning
the warning threshold.
|
| Modifier and Type | Method and Description |
|---|---|
IsColor |
getColor()
Returns the color of threshold.
|
String |
getName()
Returns the name of threshold.
|
Threshold |
getThreshold()
Creates a new threshold cloning the constant one.
|
double |
getValue()
Returns the value of threshold.
|
static GaugeThreshold |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GaugeThreshold[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GaugeThreshold normal
public static final GaugeThreshold warning
public static final GaugeThreshold critical
public static GaugeThreshold[] values()
for (GaugeThreshold c : GaugeThreshold.values()) System.out.println(c);
public static GaugeThreshold 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 double getValue()
IsThresholdgetValue in interface IsThresholdpublic IsColor getColor()
IsThresholdgetColor in interface IsThresholdpublic String getName()
IsThresholdgetName in interface IsThresholdpublic Threshold getThreshold()