|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.FilesRevisionIterator
Provides access to all revisions inside a list of CvsFile
objects.
Instances of this class are returned by
CvsContent.getRevisionIterator()
.
The revisions are not in any particular order. You might use a
RevisionSortIterator
to sort the revisions, or a
RevisionFilterIterator
to filter by user, directory,
date range...
Constructor Summary | |
FilesRevisionIterator(java.util.Collection repositoryFiles)
Creates a new RevisionIterator which provides access to all
revisions in the collection of CvsFile objects. |
Method Summary | |
boolean |
hasNext()
Returns true if this iteration has more elements. |
CvsRevision |
next()
Returns the next cvs revision or otherwise a NoSuchElementException is thrown. |
void |
reset()
Resets this iteration to the first element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilesRevisionIterator(java.util.Collection repositoryFiles)
RevisionIterator
which provides access to all
revisions in the collection of CvsFile
objects.
repositoryFiles
- a collection of CvsFile
objectsMethod Detail |
public boolean hasNext()
RevisionIterator
hasNext
in interface RevisionIterator
True
, if there are more revisionsRevisionIterator.hasNext()
public CvsRevision next()
RevisionIterator
NoSuchElementException
is thrown.
next
in interface RevisionIterator
RevisionIterator.next()
public void reset()
RevisionIterator
reset
in interface RevisionIterator
RevisionIterator.reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |