Enum Class Checks.Condition
- All Implemented Interfaces:
Serializable
,Comparable<Checks.Condition>
,Constable
Check condition enumeration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCheck returns always true.Check returns true if tested value is numerically different than the test value.Check returns true if tested value is within precision of the test value.Check returns true if tested value is greater than the test value.Check returns true if tested value is greater than or equal to the test value.Check returns true if tested value is less than the test value.Check returns true if tested value is less than or equal to the test value.Check never returns true.Check returns true if tested value is outside precision of the test value.Check returns true if tested value is numerically exactly same the test value. -
Method Summary
Modifier and TypeMethodDescriptionstatic Checks.Condition
fromString
(String s) Returns Condition object from configuration string.static Checks.Condition
Returns the enum constant of this class with the specified name.static Checks.Condition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Check returns always true. -
NEVER
Check never returns true. -
EQUAL
Check returns true if tested value is within precision of the test value. -
NONEQUAL
Check returns true if tested value is outside precision of the test value. -
SAME
Check returns true if tested value is numerically exactly same the test value. -
DIFFERENT
Check returns true if tested value is numerically different than the test value. -
GREATER
Check returns true if tested value is greater than the test value. -
LESS
Check returns true if tested value is less than the test value. -
GREATEREQ
Check returns true if tested value is greater than or equal to the test value. -
LESSEQ
Check returns true if tested value is less than or equal to the test value.
-
-
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
-
fromString
Returns Condition object from configuration string.- Parameters:
s
- configuration string- Returns:
- Condition object from configuration string
-