Package com.splunk.splunkjenkins.model
Enum Class CoverageMetricsAdapter.Metric
java.lang.Object
java.lang.Enum<CoverageMetricsAdapter.Metric>
com.splunk.splunkjenkins.model.CoverageMetricsAdapter.Metric
- All Implemented Interfaces:
Serializable
,Comparable<CoverageMetricsAdapter.Metric>
,java.lang.constant.Constable
- Enclosing class:
- CoverageMetricsAdapter<M extends HealthReportingAction>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionClover and Cobertura use different metrics name, try to align them using nearest valuetoString()
Returns the enum constant of this class with the specified name.static CoverageMetricsAdapter.Metric[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PACKAGE
-
FILE
-
CLASS
-
METHOD
-
CONDITIONAL
-
STATEMENT
-
LINE
-
ELEMENT
-
COMPLEXITY
-
BRANCH
-
INSTRUCTION
-
-
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
-
toString
- Overrides:
toString
in classEnum<CoverageMetricsAdapter.Metric>
-
getMetric
Clover and Cobertura use different metrics name, try to align them using nearest value- Parameters:
name
- Metrics name- Returns:
- enum if defined, otherwise null
-