Enum Class MetricLimit.Comparison
- All Implemented Interfaces:
Serializable, Comparable<MetricLimit.Comparison>, Constable
- Enclosing interface:
MetricLimit
How a measured value is compared against the limit.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionsymbol()The comparator as it reads in a report (>/>=) — the one place this string is defined, so every consumer renders it identically.static MetricLimit.ComparisonReturns the enum constant of this class with the specified name.static MetricLimit.Comparison[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GT
Fires when the value is strictly greater than the limit — the limit value is the last legal one. -
GTE
Fires when the value is greater than or equal to the limit — the last legal value is limit - 1.
-
-
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
-
symbol
The comparator as it reads in a report (>/>=) — the one place this string is defined, so every consumer renders it identically.
-