net.sf.statcvs.model
public class Commit extends Object implements 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 and Description |
---|
Commit(Revision revision)
Creates a new instance which consists of the given revision.
|
Modifier and Type | Method and Description |
---|---|
void |
addRevision(Revision revision)
Adds a revision to the commit.
|
int |
compareTo(Object other)
Compares this commit to another revision, based on their date.
|
boolean |
equals(Object rhs) |
Set |
getAffectedFiles()
Returns a
String Set containing all filenames
which were affected by this Commit . |
Author |
getAuthor()
Returns the author of the commit.
|
String |
getComment()
Returns the comment of the commit.
|
Date |
getDate()
Returns the date when the commit took place.
|
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 Set getRevisions()
Revision
objects that make up this commit.public Author getAuthor()
public String getComment()
public Date getDate()
public Set getAffectedFiles()
String
Set
containing all filenames
which were affected by this Commit
.Set
of String
spublic int compareTo(Object other)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)