Klasse CommitStatistics
java.lang.Object
io.jenkins.plugins.forensics.miner.CommitStatistics
- Alle implementierten Schnittstellen:
Serializable
Computes and stores aggregated statistics for a collection of commits.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungCreates emptyCommitStatistics
.CommitStatistics
(Collection<? extends CommitDiffItem> commits) Creates a new instance ofCommitStatistics
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic int
countChanges
(Collection<? extends CommitDiffItem> commits) Counts the number of CHANGE commits.static int
countDeletes
(Collection<? extends CommitDiffItem> commits) Counts the number of DELETE commits.static int
countMoves
(Collection<? extends CommitDiffItem> commits) Counts the number of RENAME commits.boolean
int
int
int
int
int
int
int
int
hashCode()
static void
logCommits
(List<CommitDiffItem> commits, edu.hm.hafner.util.FilteredLog logger) Prints a summary of the specified commits to the specified logger.toString()
-
Konstruktordetails
-
CommitStatistics
Creates a new instance ofCommitStatistics
.- Parameter:
commits
- the commits to aggregate the statistics for
-
CommitStatistics
public CommitStatistics()Creates emptyCommitStatistics
.
-
-
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
-
hashCode
public int hashCode() -
toString
-
countMoves
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
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
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
Prints a summary of the specified commits to the specified logger.- Parameter:
commits
- the commits to summarizelogger
- the logger
-