public class FileBlame extends Object implements Iterable<Integer>, Serializable
| Constructor and Description |
|---|
FileBlame(String fileName)
Creates a new instance of
FileBlame. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCommit(int line)
Returns the commit ID for the specified line.
|
String |
getEmail(int line)
Returns the author email for the specified line.
|
String |
getFileName() |
Set<Integer> |
getLines() |
String |
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<Integer> |
iterator() |
void |
merge(FileBlame other)
Merges the additional lines of the other
FileBlame instance with the lines of this instance. |
protected Object |
readResolve()
Called after de-serialization to retain backward compatibility.
|
void |
setCommit(int lineNumber,
String id)
Sets the commit ID for the specified line number.
|
void |
setEmail(int lineNumber,
String emailAddress)
Sets the email address for the specified line number.
|
void |
setName(int lineNumber,
String name)
Sets the author name for the specified line number.
|
void |
setTime(int lineNumber,
int time)
Sets the modification time for the specified line.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String getFileName()
public void setCommit(int lineNumber,
String id)
lineNumber - the line numberid - the commit IDpublic String getCommit(int line)
line - the affected linepublic void setName(int lineNumber,
String name)
lineNumber - the line numbername - the author namepublic String getName(int line)
line - the affected linepublic void setEmail(int lineNumber,
String emailAddress)
lineNumber - the line numberemailAddress - the email address of the authorpublic String getEmail(int line)
line - the affected linepublic void setTime(int lineNumber,
int time)
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).public int getTime(int line)
line - the affected lineprotected Object readResolve()
public void merge(FileBlame other)
FileBlame instance with the lines of this instance.other - the other blamesIllegalArgumentException - if the file name of the other instance does not matchCopyright © 2016–2019. All rights reserved.