public class FileStatistics extends Object implements Serializable
| Constructor and Description |
|---|
FileStatistics(String fileName)
Creates a new instance of
FileStatistics. |
FileStatistics(String fileName,
int today)
Creates a new instance of
FileStatistics. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getAgeInDays()
Returns the age of this file.
|
String |
getFileName() |
int |
getLastModifiedInDays()
Returns the last modification time of this 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 FileStatistics(String fileName, int today)
FileStatistics.fileName - the name of the file for which statistics will be generatedtoday - today (given as number of seconds since the standard base time known as "the epoch", namely January 1,
1970, 00:00:00 GMT.).public String getFileName()
protected Object readResolve()
public int getNumberOfAuthors()
public int getNumberOfCommits()
public int getAgeInDays()
public int getLastModifiedInDays()
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.