Klasse CoverageStatistics

java.lang.Object
io.jenkins.plugins.coverage.metrics.model.CoverageStatistics

public class CoverageStatistics extends Object
Represents the different mappings of coverage metric and baseline to actual values.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    CoverageStatistics(List<? extends edu.hm.hafner.coverage.Value> projectValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> projectDeltaMapping, List<? extends edu.hm.hafner.coverage.Value> modifiedLinesValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> modifiedLinesDeltaMapping, List<? extends edu.hm.hafner.coverage.Value> modifiedFilesValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> modifiedFilesDeltaMapping)
    Creates a new instance of CoverageStatistics.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    containsValue(Baseline baseline, edu.hm.hafner.coverage.Metric metric)
    Returns whether a value for the specified metric and baseline is available.
    Optional<edu.hm.hafner.coverage.Value>
    getValue(Baseline baseline, edu.hm.hafner.coverage.Metric metric)
    Returns the value for the specified baseline and metric.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • CoverageStatistics

      public CoverageStatistics(List<? extends edu.hm.hafner.coverage.Value> projectValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> projectDeltaMapping, List<? extends edu.hm.hafner.coverage.Value> modifiedLinesValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> modifiedLinesDeltaMapping, List<? extends edu.hm.hafner.coverage.Value> modifiedFilesValueMapping, NavigableMap<edu.hm.hafner.coverage.Metric,org.apache.commons.lang3.math.Fraction> modifiedFilesDeltaMapping)
      Creates a new instance of CoverageStatistics.
      Parameter:
      projectValueMapping - mapping of metrics to values for Baseline.PROJECT
      projectDeltaMapping - mapping of metrics to delta values for Baseline.PROJECT_DELTA
      modifiedLinesValueMapping - mapping of metrics to values for Baseline.MODIFIED_LINES
      modifiedLinesDeltaMapping - mapping of metrics to delta values for Baseline.MODIFIED_LINES_DELTA
      modifiedFilesValueMapping - mapping of metrics to values for Baseline.MODIFIED_FILES
      modifiedFilesDeltaMapping - mapping of metrics to delta values for Baseline.MODIFIED_FILES_DELTA
  • Methodendetails

    • getValue

      public Optional<edu.hm.hafner.coverage.Value> getValue(Baseline baseline, edu.hm.hafner.coverage.Metric metric)
      Returns the value for the specified baseline and metric.
      Parameter:
      baseline - the baseline of the value
      metric - the metric of the value
      Gibt zurück:
      the value, if available
    • containsValue

      public boolean containsValue(Baseline baseline, edu.hm.hafner.coverage.Metric metric)
      Returns whether a value for the specified metric and baseline is available.
      Parameter:
      baseline - the baseline of the value
      metric - the metric of the value
      Gibt zurück:
      true, if a value is available, false otherwise