|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.model.Commit
public class Commit
Represents a commit, which may consist of several 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 Summary | |
---|---|
Commit(Revision revision)
Creates a new instance which consists of the given revision. |
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Commit(Revision revision)
revision
- the single revision out of which the commit will
be createdMethod Detail |
---|
public 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 String
spublic int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |