net.sf.statcvs.model
Class CommitListBuilder

java.lang.Object
  extended by net.sf.statcvs.model.CommitListBuilder

public class CommitListBuilder
extends java.lang.Object

Takes a RevisionIterator, which must be sorted by date, and builds a List of Commits from it. The result list is sorted by date.

Version:
$Id: CommitListBuilder.java,v 1.6 2003/04/19 23:09:27 cyganiak Exp $
Author:
Richard Cyganiak

Constructor Summary
CommitListBuilder(RevisionIterator sortedRevisions)
          Creates a new instance using the given RevisionIterator.
 
Method Summary
 java.util.List createCommitList()
          Creates a List of Commits from the source iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommitListBuilder

public CommitListBuilder(RevisionIterator sortedRevisions)
Creates a new instance using the given RevisionIterator. The input iterator must be sorted by date, oldest first. This can be achieved using a RevisionSortIterator.

Parameters:
sortedRevisions - a sorted RevisionIterator
Method Detail

createCommitList

public java.util.List createCommitList()
Creates a List of Commits from the source iterator. The result list will be sorted by date.

Returns:
a new list of Commit objects