Klasse CommitStatistics

java.lang.Object
io.jenkins.plugins.forensics.miner.CommitStatistics
Alle implementierten Schnittstellen:
Serializable

public class CommitStatistics extends Object implements Serializable
Computes and stores aggregated statistics for a collection of commits.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • getAddedLines

      public int getAddedLines()
    • getDeletedLines

      public int getDeletedLines()
    • getLinesOfCode

      public int getLinesOfCode()
    • getAbsoluteChurn

      public int getAbsoluteChurn()
    • getAuthorCount

      public int getAuthorCount()
    • getCommitCount

      public int getCommitCount()
    • getFilesCount

      public int getFilesCount()
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • countMoves

      public static int countMoves(Collection<? extends CommitDiffItem> commits)
      Counts the number of RENAME commits. A rename commit is a commit where an existing file has been moved to a new location.
      Parameter:
      commits - the commits to analyze
      Gibt zurück:
      number of RENAME commits
    • countDeletes

      public static int countDeletes(Collection<? extends CommitDiffItem> commits)
      Counts the number of DELETE commits. A delete commit is a commit where an existing file has been deleted.
      Parameter:
      commits - the commits to analyze
      Gibt zurück:
      number of DELETE commits
    • countChanges

      public static int countChanges(Collection<? extends CommitDiffItem> commits)
      Counts the number of CHANGE commits. A change commit is a commit where an existing file has been changed.
      Parameter:
      commits - the commits to analyze
      Gibt zurück:
      number of RENAME commits
    • logCommits

      public static void logCommits(List<CommitDiffItem> commits, edu.hm.hafner.util.FilteredLog logger)
      Prints a summary of the specified commits to the specified logger.
      Parameter:
      commits - the commits to summarize
      logger - the logger