Enum Metric.MetricTendency
- java.lang.Object
-
- java.lang.Enum<Metric.MetricTendency>
-
- com.parasoft.findings.jenkins.coverage.model.Metric.MetricTendency
-
- All Implemented Interfaces:
Serializable
,Comparable<Metric.MetricTendency>
- Enclosing class:
- Metric
public static enum Metric.MetricTendency extends Enum<Metric.MetricTendency>
Metric tendency: some metrics are getting better when the value is getting larger, some other metrics are getting better when the value is getting smaller.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LARGER_IS_BETTER
Larger values will indicate better results.SMALLER_IS_BETTER
Smaller values will indicate better results.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Metric.MetricTendency
valueOf(String name)
Returns the enum constant of this type with the specified name.static Metric.MetricTendency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LARGER_IS_BETTER
public static final Metric.MetricTendency LARGER_IS_BETTER
Larger values will indicate better results.
-
SMALLER_IS_BETTER
public static final Metric.MetricTendency SMALLER_IS_BETTER
Smaller values will indicate better results.
-
-
Method Detail
-
values
public static Metric.MetricTendency[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Metric.MetricTendency c : Metric.MetricTendency.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Metric.MetricTendency valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-