Class FileBlame
java.lang.Object
io.jenkins.plugins.forensics.blame.FileBlame
- All Implemented Interfaces:
 Serializable,Iterable<Integer>
Stores the repository blames for several lines of a single file. File names are stored using the absolute path of the
 file.
- Author:
 - Ullrich Hafner
 - See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreatesFileBlameinstances that optimize the memory footprint for file names by using aTreeStringBuilder. - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetCommit(int line) Returns the commit ID for the specified line.getEmail(int line) Returns the author email for the specified line.getLines()getName(int line) Returns the author name for the specified line.intgetTime(int line) Returns the modification time for the specified line.inthashCode()iterator()voidMerges the additional lines of the otherFileBlameinstance with the lines of this instance.voidSets the commit ID for the specified line number.voidSets the email address for the specified line number.voidSets the author name for the specified line number.voidsetTime(int lineNumber, int time) Sets the modification time for the specified line.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator 
- 
Method Details
- 
getFileName
 - 
getLines
 - 
iterator
 - 
setCommit
Sets the commit ID for the specified line number.- Parameters:
 lineNumber- the line numberid- the commit ID
 - 
getCommit
Returns the commit ID for the specified line.- Parameters:
 line- the affected line- Returns:
 - the commit ID
 
 - 
setName
Sets the author name for the specified line number.- Parameters:
 lineNumber- the line numbername- the author name
 - 
getName
Returns the author name for the specified line.- Parameters:
 line- the affected line- Returns:
 - the author name
 
 - 
setEmail
Sets the email address for the specified line number.- Parameters:
 lineNumber- the line numberemailAddress- the email address of the author
 - 
getEmail
Returns the author email for the specified line.- Parameters:
 line- the affected line- Returns:
 - 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.- Parameters:
 lineNumber- the line numbertime- 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.- Parameters:
 line- the affected line- Returns:
 - 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
Merges the additional lines of the otherFileBlameinstance with the lines of this instance.- Parameters:
 other- the other blames- Throws:
 IllegalArgumentException- if the file name of the other instance does not match
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -