Klasse FileStatistics

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

public class FileStatistics extends Object implements Serializable
Aggregates commit statistics for a given file. The following statistics are summed up:
  • total number of commits
  • total number of different authors
  • creation time
  • last modification time
  • added lines
  • deleted lines
Autor:
Ullrich Hafner
Siehe auch:
  • Methodendetails

    • getFileName

      public String getFileName()
    • readResolve

      protected Object readResolve()
      Called after de-serialization to retain backward compatibility.
      Gibt zurück:
      this
    • getCommits

      public List<CommitDiffItem> getCommits()
      Returns all commits this file was part of.
      Gibt zurück:
      all commits for this file
    • getNumberOfAuthors

      public int getNumberOfAuthors()
      Returns the number of authors for this file.
      Gibt zurück:
      the number authors for this file.
    • getNumberOfCommits

      public int getNumberOfCommits()
      Returns the number of times this file was committed.
      Gibt zurück:
      the number of commits for this file
    • getCreationTime

      public int getCreationTime()
      Returns the creation time of this file.
      Gibt zurück:
      the time of the creation (given as number of seconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT).
    • getLastModificationTime

      public int getLastModificationTime()
      Returns the time of the last modification of this file (i.e. last commit to the file).
      Gibt zurück:
      the time of the last modification (given as number of seconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT).
    • getLinesOfCode

      public int getLinesOfCode()
      Returns the total lines of code for this file.
      Gibt zurück:
      the total lines of code.
    • getAbsoluteChurn

      public int getAbsoluteChurn()
      Returns the absolute churn for this file, i.e. the sum of all added and deleted lines.
      Gibt zurück:
      absolute churn
    • inspectCommit

      public void inspectCommit(CommitDiffItem additionalCommit)
      Inspects and stores the specified commit for this file. Updates all properties after the commit has been added, including an optional file name rename.
      Parameter:
      additionalCommit - the additional commit to inspect
    • inspectCommits

      public void inspectCommits(Collection<CommitDiffItem> additionalCommits)
      Inspects and stores the specified commits for this file. Updates all properties after the commit has been added, including an optional file name rename.
      Parameter:
      additionalCommits - the additional commits to inspect
    • 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