Class IssuesStatistics

java.lang.Object
io.jenkins.plugins.analysis.core.util.IssuesStatistics
All Implemented Interfaces:
Serializable

public class IssuesStatistics extends Object implements 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:
  • Method Details

    • aggregate

      public IssuesStatistics aggregate(IssuesStatistics other)
      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 specified Severity.
      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 specified Severity.
      Parameters:
      severity - the severity of the issues to match
      Returns:
      total number of issues
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object