net.sf.statcvs.model
Class FilesRevisionIterator

java.lang.Object
  extended bynet.sf.statcvs.model.FilesRevisionIterator
All Implemented Interfaces:
RevisionIterator

public class FilesRevisionIterator
extends java.lang.Object
implements RevisionIterator

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...

Version:
$Id: FilesRevisionIterator.java,v 1.4 2003/03/18 10:33:55 lukasz Exp $
Author:
Richard Cyganiak

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

FilesRevisionIterator

public FilesRevisionIterator(java.util.Collection repositoryFiles)
Creates a new RevisionIterator which provides access to all revisions in the collection of CvsFile objects.

Parameters:
repositoryFiles - a collection of CvsFile objects
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: RevisionIterator
Returns true if this iteration has more elements.

Specified by:
hasNext in interface RevisionIterator
Returns:
True, if there are more revisions
See Also:
RevisionIterator.hasNext()

next

public CvsRevision next()
Description copied from interface: RevisionIterator
Returns the next cvs revision or otherwise a NoSuchElementException is thrown.

Specified by:
next in interface RevisionIterator
Returns:
The next revision
See Also:
RevisionIterator.next()

reset

public void reset()
Description copied from interface: RevisionIterator
Resets this iteration to the first element.

Specified by:
reset in interface RevisionIterator
See Also:
RevisionIterator.reset()