Klasse CoverageMetric
java.lang.Object
io.jenkins.plugins.coverage.model.CoverageMetric
- Alle implementierten Schnittstellen:
Serializable
,Comparable<CoverageMetric>
A coverage metric to identify the coverage result type. Note: this class has a natural ordering that is inconsistent
with equals.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final CoverageMetric
Branch coverage.static final CoverageMetric
Class coverage.static final CoverageMetric
File coverage.static final CoverageMetric
Instruction coverage.static final CoverageMetric
Line coverage.static final CoverageMetric
Method coverage.static final CoverageMetric
Module coverage.static final CoverageMetric
Package or namespace coverage. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
compareTo
(CoverageMetric other) boolean
boolean
equalsIgnoreCase
(String searchName) Checks if this instance has a name that is equal to the specified name (ignoring case).static boolean
equalsIgnoreCase
(String a, String b) Compares two CharSequences, returningtrue
if they represent equal sequences of characters, ignoring case.static List
<CoverageMetric> Provides all available values ofCoverageMetric
.getName()
int
hashCode()
boolean
isLeaf()
toString()
static CoverageMetric
Creates a newCoverageMetric
with the specified name.
-
Felddetails
-
MODULE
Module coverage. -
PACKAGE
Package or namespace coverage. -
FILE
File coverage. -
CLASS
Class coverage. -
METHOD
Method coverage. -
INSTRUCTION
Instruction coverage. -
LINE
Line coverage. -
BRANCH
Branch coverage.
-
-
Methodendetails
-
valueOf
Creates a newCoverageMetric
with the specified name. If the name is the same as the name of one of the predefined metrics, then the existing metric is returned.- Parameter:
name
- the name of the metric- Gibt zurück:
- the metric
-
getAvailableCoverageMetrics
Provides all available values ofCoverageMetric
.- Gibt zurück:
- the available metrics
-
equalsIgnoreCase
Checks if this instance has a name that is equal to the specified name (ignoring case).- Parameter:
searchName
- the coverage metric name to check- Gibt zurück:
true
if this instance has the same name,false
otherwise
-
equalsIgnoreCase
Compares two CharSequences, returning
true
if they represent equal sequences of characters, ignoring case.null
s are handled without exceptions. Twonull
references are considered equal. The comparison is case insensitive.StringUtils.equalsIgnoreCase(null, null) = true StringUtils.equalsIgnoreCase(null, "abc") = false StringUtils.equalsIgnoreCase("abc", null) = false StringUtils.equalsIgnoreCase("abc", "abc") = true StringUtils.equalsIgnoreCase("abc", "ABC") = true
- Parameter:
a
- the first CharSequence, may benull
b
- the second CharSequence, may benull
- Gibt zurück:
true
if the CharSequences are equal (case-insensitive), or bothnull
-
getName
-
isLeaf
public boolean isLeaf() -
toString
-
compareTo
- Angegeben von:
compareTo
in SchnittstelleComparable<CoverageMetric>
-
equals
-
hashCode
public int hashCode()
-