Enum Class NeedsCleaning
java.lang.Object
java.lang.Enum<NeedsCleaning>
org.sentrysoftware.metricshub.engine.common.helpers.state.NeedsCleaning
- All Implemented Interfaces:
Serializable,Comparable<NeedsCleaning>,Constable,IState
The NeedsCleaning enum represents different states related to the need for cleaning.
It implements the IState interface and includes methods for interpreting state values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNEEDED state indicating that cleaning is needed.NEEDED_IMMEDIATELY state indicating an immediate need for cleaning.OK state indicating no immediate need for cleaning. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<NeedsCleaning> Interpret the specified state value: { 0 } as OK { 1 } as NEEDED { 2 } as NEEDED_IMMEDIATELYstatic NeedsCleaningReturns the enum constant of this class with the specified name.static NeedsCleaning[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.sentrysoftware.metricshub.engine.common.helpers.state.IState
getNumericValue
-
Enum Constant Details
-
OK
OK state indicating no immediate need for cleaning. -
NEEDED
NEEDED state indicating that cleaning is needed. -
NEEDED_IMMEDIATELY
NEEDED_IMMEDIATELY state indicating an immediate need for cleaning.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
interpret
Interpret the specified state value:- { 0 } as OK
- { 1 } as NEEDED
- { 2 } as NEEDED_IMMEDIATELY
- Parameters:
state- String to be interpreted- Returns:
OptionalofNeedsCleaning
-