Klasse FileBlame

java.lang.Object
io.jenkins.plugins.forensics.blame.FileBlame
Alle implementierten Schnittstellen:
Serializable, Iterable<Integer>

public class FileBlame extends Object implements Iterable<Integer>, Serializable
Stores the repository blames for several lines of a single file. File names are stored using the absolute path of the file.
Autor:
Ullrich Hafner
Siehe auch:
  • Methodendetails

    • readResolve

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

      public String getFileName()
    • getLines

      public Set<Integer> getLines()
    • iterator

      @NonNull public Iterator<Integer> iterator()
      Angegeben von:
      iterator in Schnittstelle Iterable<Integer>
    • setCommit

      public void setCommit(int lineNumber, String id)
      Sets the commit ID for the specified line number.
      Parameter:
      lineNumber - the line number
      id - the commit ID
    • getCommit

      public String getCommit(int line)
      Returns the commit ID for the specified line.
      Parameter:
      line - the affected line
      Gibt zurück:
      the commit ID
    • setName

      public void setName(int lineNumber, String name)
      Sets the author name for the specified line number.
      Parameter:
      lineNumber - the line number
      name - the author name
    • getName

      public String getName(int line)
      Returns the author name for the specified line.
      Parameter:
      line - the affected line
      Gibt zurück:
      the author name
    • setEmail

      public void setEmail(int lineNumber, String emailAddress)
      Sets the email address for the specified line number.
      Parameter:
      lineNumber - the line number
      emailAddress - the email address of the author
    • getEmail

      public String getEmail(int line)
      Returns the author email for the specified line.
      Parameter:
      line - the affected line
      Gibt zurück:
      the author email
    • setTime

      public void setTime(int lineNumber, int time)
      Sets the modification time for the specified line. Essentially, this is the time of the last commit that changed this line.
      Parameter:
      lineNumber - the line number
      time - the time of the commit (given as number of seconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT).
    • getTime

      public int getTime(int line)
      Returns the modification time for the specified line. Essentially, this is the time of the last commit that changed this line.
      Parameter:
      line - the affected line
      Gibt zurück:
      the time of the commit (given as number of seconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.).
    • merge

      public void merge(FileBlame other)
      Merges the additional lines of the other FileBlame instance with the lines of this instance.
      Parameter:
      other - the other blames
      Löst aus:
      IllegalArgumentException - if the file name of the other instance does not match
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • 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