|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.Commit
Represents a commit, which may consist of several CvsRevision
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(CvsRevision revision)
Creates a new instance which consists of the given revision. |
Method Summary | |
void |
addRevision(CvsRevision revision)
Adds a revision to the commit. |
int |
compareTo(Object other)
Compares this commit to another revision, based on their date. |
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 CvsRevision 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(CvsRevision revision)
revision
- the single revision out of which the commit will
be createdMethod Detail |
public void addRevision(CvsRevision revision)
revision
- the CvsRevision
to add.public Set getRevisions()
CvsRevision
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |