Class CoverageStatistics
java.lang.Object
com.parasoft.findings.jenkins.coverage.api.metrics.model.CoverageStatistics
Represents the different mappings of coverage metric and baseline to actual values.
-
Constructor Summary
ConstructorDescriptionCoverageStatistics
(List<? extends Value> projectValueMapping, List<? extends Value> modifiedLinesValueMapping) Creates a new instance ofCoverageStatistics
. -
Method Summary
-
Constructor Details
-
CoverageStatistics
public CoverageStatistics(List<? extends Value> projectValueMapping, List<? extends Value> modifiedLinesValueMapping) Creates a new instance ofCoverageStatistics
.- Parameters:
projectValueMapping
- mapping of metrics to values forBaseline.PROJECT
modifiedLinesValueMapping
- mapping of metrics to values forBaseline.MODIFIED_LINES
-
-
Method Details
-
getValue
Returns the value for the specified baseline and metric.- Parameters:
baseline
- the baseline of the valuemetric
- the metric of the value- Returns:
- the value, if available
-
containsValue
Returns whether a value for the specified metric and baseline is available.- Parameters:
baseline
- the baseline of the valuemetric
- the metric of the value- Returns:
true
, if a value is available,false
otherwise
-