Klasse FileBlame
java.lang.Object
io.jenkins.plugins.forensics.blame.FileBlame
- Alle implementierten Schnittstellen:
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.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
CreatesFileBlame
instances that optimize the memory footprint for file names by using aTreeStringBuilder
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
getCommit
(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.int
getTime
(int line) Returns the modification time for the specified line.int
hashCode()
iterator()
void
Merges the additional lines of the otherFileBlame
instance with the lines of this instance.protected Object
Called after de-serialization to retain backward compatibility.void
Sets the commit ID for the specified line number.void
Sets the email address for the specified line number.void
Sets the author name for the specified line number.void
setTime
(int lineNumber, int time) Sets the modification time for the specified line.toString()
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Methodendetails
-
readResolve
Called after de-serialization to retain backward compatibility.- Gibt zurück:
- this
-
getFileName
-
getLines
-
iterator
-
setCommit
Sets the commit ID for the specified line number.- Parameter:
lineNumber
- the line numberid
- the commit ID
-
getCommit
Returns the commit ID for the specified line.- Parameter:
line
- the affected line- Gibt zurück:
- the commit ID
-
setName
Sets the author name for the specified line number.- Parameter:
lineNumber
- the line numbername
- the author name
-
getName
Returns the author name for the specified line.- Parameter:
line
- the affected line- Gibt zurück:
- the author name
-
setEmail
Sets the email address for the specified line number.- Parameter:
lineNumber
- the line numberemailAddress
- the email address of the author
-
getEmail
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 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.- 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
Merges the additional lines of the otherFileBlame
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
-
equals
-
hashCode
public int hashCode()
-