java.lang.Comparablepublic class Commit
extends java.lang.Object
implements java.lang.Comparable
Revision
objects. A commit means that several files were committed at once by the
same author with the same message.
TODO: Rename getAuthor() to getLogin(), getAffectedFiles() to getAffectedFileNames() (or change to return CvsFiles?)| Constructor | Description |
|---|---|
Commit(Revision revision) |
Creates a new instance which consists of the given revision.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRevision(Revision revision) |
Adds a revision to the commit.
|
int |
compareTo(java.lang.Object other) |
Compares this commit to another revision, based on their date.
|
boolean |
equals(java.lang.Object rhs) |
|
java.util.Set |
getAffectedFiles() |
Returns a
String Set containing all filenames
which were affected by this Commit. |
Author |
getAuthor() |
Returns the author of the commit.
|
java.lang.String |
getComment() |
Returns the comment of the commit.
|
java.util.Date |
getDate() |
Returns the date when the commit took place.
|
java.util.Set |
getRevisions() |
Returns the
Revision objects that make up this commit. |
int |
hashCode() |
public Commit(Revision revision)
revision - the single revision out of which the commit will
be createdpublic void addRevision(Revision revision)
revision - the Revision to add.public java.util.Set getRevisions()
Revision objects that make up this commit.public Author getAuthor()
public java.lang.String getComment()
public java.util.Date getDate()
public java.util.Set getAffectedFiles()
String Set containing all filenames
which were affected by this Commit.Set of Stringspublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object