Class IssuesStatistics
java.lang.Object
io.jenkins.plugins.analysis.core.util.IssuesStatistics
- All Implemented Interfaces:
Serializable
Simple data class that determines the total number of issues (by severity, new, total, fixed and delta) in a build.
- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Available report statistics. -
Method Summary
Modifier and TypeMethodDescriptionaggregate
(IssuesStatistics other) Aggregates the specified statistics with this statistics to a new instance, that contains all totals summed up.boolean
int
int
int
int
int
int
int
int
int
int
int
int
int
getNewSizeOf
(edu.hm.hafner.analysis.Severity severity) Returns the total number of new issues that have the specifiedSeverity
.org.eclipse.collections.api.map.ImmutableMap
<edu.hm.hafner.analysis.Severity, Integer> int
int
int
int
int
int
int
getTotalSizeOf
(edu.hm.hafner.analysis.Severity severity) Returns the total number of issues that have the specifiedSeverity
.org.eclipse.collections.api.map.ImmutableMap
<edu.hm.hafner.analysis.Severity, Integer> int
hashCode()
-
Method Details
-
aggregate
Aggregates the specified statistics with this statistics to a new instance, that contains all totals summed up.- Parameters:
other
- the other statistics to aggregate- Returns:
- the aggregated statistics
-
getTotalSize
public int getTotalSize() -
getTotalModifiedSize
public int getTotalModifiedSize() -
getNewSize
public int getNewSize() -
getNewModifiedSize
public int getNewModifiedSize() -
getDeltaSize
public int getDeltaSize() -
getTotalErrorSize
public int getTotalErrorSize() -
getTotalHighSize
public int getTotalHighSize() -
getTotalNormalSize
public int getTotalNormalSize() -
getTotalLowSize
public int getTotalLowSize() -
getNewErrorSize
public int getNewErrorSize() -
getNewHighSize
public int getNewHighSize() -
getNewNormalSize
public int getNewNormalSize() -
getNewLowSize
public int getNewLowSize() -
getDeltaErrorSize
public int getDeltaErrorSize() -
getDeltaHighSize
public int getDeltaHighSize() -
getDeltaNormalSize
public int getDeltaNormalSize() -
getDeltaLowSize
public int getDeltaLowSize() -
getFixedSize
public int getFixedSize() -
getTotalSizePerSeverity
public org.eclipse.collections.api.map.ImmutableMap<edu.hm.hafner.analysis.Severity,Integer> getTotalSizePerSeverity() -
getTotalSizeOf
public int getTotalSizeOf(edu.hm.hafner.analysis.Severity severity) Returns the total number of issues that have the specifiedSeverity
.- Parameters:
severity
- the severity of the issues to match- Returns:
- total number of issues
-
getNewSizePerSeverity
public org.eclipse.collections.api.map.ImmutableMap<edu.hm.hafner.analysis.Severity,Integer> getNewSizePerSeverity() -
getNewSizeOf
public int getNewSizeOf(edu.hm.hafner.analysis.Severity severity) Returns the total number of new issues that have the specifiedSeverity
.- Parameters:
severity
- the severity of the issues to match- Returns:
- total number of issues
-
equals
-
hashCode
public int hashCode()
-