public enum ThresholdStatus extends java.lang.Enum<ThresholdStatus> implements net.anotheria.util.sorter.IComparable
| Enum Constant and Description |
|---|
GREEN
Threshold is ok, no problems detected.
|
OFF
Threshold is off, there were no values ever measured.
|
ORANGE
Threshold is set to orange.
|
PURPLE
Something is terrible wrong.
|
RED
Threshold is set to red.
|
YELLOW
Threshold is set to yellow.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(net.anotheria.util.sorter.IComparable anotherObject,
int method) |
boolean |
overrules(ThresholdStatus anotherStatus)
Returns true if current threshold object is worse than parameter threshold.
|
boolean |
overrulesOrEqual(ThresholdStatus anotherStatus) |
static ThresholdStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThresholdStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThresholdStatus OFF
public static final ThresholdStatus GREEN
public static final ThresholdStatus YELLOW
public static final ThresholdStatus ORANGE
public static final ThresholdStatus RED
public static final ThresholdStatus PURPLE
public static ThresholdStatus[] values()
for (ThresholdStatus c : ThresholdStatus.values()) System.out.println(c);
public static ThresholdStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean overrules(ThresholdStatus anotherStatus)
anotherStatus - public boolean overrulesOrEqual(ThresholdStatus anotherStatus)
public int compareTo(net.anotheria.util.sorter.IComparable anotherObject,
int method)
compareTo in interface net.anotheria.util.sorter.IComparableCopyright © 2010-2020 anotheria.net. All Rights Reserved.