Class CoverageStatistics
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.api.metrics.model.CoverageStatistics
-
public class CoverageStatistics extends Object
Represents the different mappings of coverage metric and baseline to actual values.
-
-
Constructor Summary
Constructors Constructor Description CoverageStatistics(List<? extends Value> projectValueMapping, List<? extends Value> modifiedLinesValueMapping)
Creates a new instance ofCoverageStatistics
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsValue(Baseline baseline, Metric metric)
Returns whether a value for the specified metric and baseline is available.Optional<Value>
getValue(Baseline baseline, Metric metric)
Returns the value for the specified baseline and metric.
-
-
-
Constructor Detail
-
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
-
-