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 Summary
Constructors Constructor Description CompositeBuildResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeBuildResult
add(AnalysisBuildResult... additionalResults)
Adds the specified results to this composition.int
getFixedSize()
Returns the number of fixed issues in this analysis run.int
getNewSize()
Returns the number of new issues in this analysis run.int
getNewSizeOf(edu.hm.hafner.analysis.Severity severity)
Returns the new number of issues in this analysis run that have the specifiedSeverity
.Map<String,Integer>
getSizePerOrigin()
Returns the number of issues in this analysis run, mapped by their origin.int
getTotalSize()
Returns the total number of issues in this analysis run.int
getTotalSizeOf(edu.hm.hafner.analysis.Severity severity)
Returns the total number of issues in this analysis run that have the specifiedSeverity
.
-
-
-
Method Detail
-
add
public CompositeBuildResult add(AnalysisBuildResult... additionalResults)
Adds the specified results to this composition. Adds the new value of each property to the existing value of the same property.- Parameters:
additionalResults
- the additional results to add- Returns:
- returns this to simplify call chains
-
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 interfaceAnalysisBuildResult
- 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 interfaceAnalysisBuildResult
- 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 interfaceAnalysisBuildResult
- 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 specifiedSeverity
.- Specified by:
getTotalSizeOf
in interfaceAnalysisBuildResult
- 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 interfaceAnalysisBuildResult
- 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 specifiedSeverity
.- Specified by:
getNewSizeOf
in interfaceAnalysisBuildResult
- Parameters:
severity
- the severity of the issues to match- Returns:
- total number of issues
-
-