public class FileStatistics extends Object implements Serializable
| Constructor and Description |
|---|
FileStatistics(String fileName)
Creates a new instance of
FileStatistics. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getCreationTime()
Returns the creation time of this file.
|
String |
getFileName() |
int |
getLastModificationTime()
Returns the time of the last modification of this file (i.e. last commit to the file).
|
int |
getNumberOfAuthors() |
int |
getNumberOfCommits() |
int |
hashCode() |
void |
inspectCommit(int commitTime,
String author)
Inspects the next commit for this file.
|
protected Object |
readResolve()
Called after de-serialization to retain backward compatibility.
|
String |
toString() |
public FileStatistics(String fileName)
FileStatistics.fileName - the name of the file for which statistics will be generatedpublic String getFileName()
protected Object readResolve()
public int getNumberOfAuthors()
public int getNumberOfCommits()
public int getCreationTime()
public int getLastModificationTime()
public void inspectCommit(int commitTime,
String author)
commitTime - 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.).author - author (or committer) nameCopyright © 2016–2019. All rights reserved.