Class CompositeBuildResult

java.lang.Object
io.jenkins.plugins.analysis.core.charts.CompositeBuildResult
All Implemented Interfaces:
AnalysisBuildResult

public class CompositeBuildResult extends Object implements AnalysisBuildResult
A build result that is composed of a series of other builds results simply by summing up the number of issues.
Author:
Ullrich Hafner
  • Constructor Details

    • CompositeBuildResult

      public CompositeBuildResult(Collection<? extends AnalysisBuildResult> results)
      Creates a composition of the specified results. Adds the new value of each property to the existing value of the same property.
      Parameters:
      results - the results to add
  • Method Details

    • getSizePerOrigin

      public Map<String,Integer> getSizePerOrigin()
      Description copied from interface: AnalysisBuildResult
      Returns the number of issues in this analysis run, mapped by their origin. The origin is the tool that created the report.
      Specified by:
      getSizePerOrigin in interface AnalysisBuildResult
      Returns:
      number of issues per origin
    • getFixedSize

      public int getFixedSize()
      Description copied from interface: AnalysisBuildResult
      Returns the number of fixed issues in this analysis run.
      Specified by:
      getFixedSize in interface AnalysisBuildResult
      Returns:
      number of fixed issues
    • getTotalSize

      public int getTotalSize()
      Description copied from interface: AnalysisBuildResult
      Returns the total number of issues in this analysis run.
      Specified by:
      getTotalSize in interface AnalysisBuildResult
      Returns:
      total number of issues
    • getTotalSizeOf

      public int getTotalSizeOf(edu.hm.hafner.analysis.Severity severity)
      Description copied from interface: AnalysisBuildResult
      Returns the total number of issues in this analysis run that have the specified Severity.
      Specified by:
      getTotalSizeOf in interface AnalysisBuildResult
      Parameters:
      severity - the severity of the issues to match
      Returns:
      total number of issues
    • getNewSize

      public int getNewSize()
      Description copied from interface: AnalysisBuildResult
      Returns the number of new issues in this analysis run.
      Specified by:
      getNewSize in interface AnalysisBuildResult
      Returns:
      number of new issues
    • getNewSizeOf

      public int getNewSizeOf(edu.hm.hafner.analysis.Severity severity)
      Description copied from interface: AnalysisBuildResult
      Returns the new number of issues in this analysis run that have the specified Severity.
      Specified by:
      getNewSizeOf in interface AnalysisBuildResult
      Parameters:
      severity - the severity of the issues to match
      Returns:
      total number of issues
    • getTotals

      public IssuesStatistics getTotals()
      Description copied from interface: AnalysisBuildResult
      Returns the total number of issues (by severity, new, total, fixed and delta) in a build.
      Specified by:
      getTotals in interface AnalysisBuildResult
      Returns:
      the totals