net.sf.statcvs.model
Class RevisionIteratorSummary

java.lang.Object
  extended bynet.sf.statcvs.model.RevisionIteratorSummary

public class RevisionIteratorSummary
extends java.lang.Object

Utility class which provides useful information about a RevisionIterator, for example the number of elements on the iterator, a list of affected files, and the date of the first commit.

Version:
$Id: RevisionIteratorSummary.java,v 1.12 2003/04/20 14:24:14 cyganiak Exp $
Author:
Anja Jentzsch, Richard Cyganiak

Constructor Summary
RevisionIteratorSummary(RevisionIterator source)
          Creates a new RevisionIteratorSummary, based on a source RevisionIterator.
 
Method Summary
 java.util.Set getAllAuthors()
          Returns a set of all authors which have committed revisions in the source set.
 java.util.Set getAllFiles()
          Returns a set of all CvsFile objects which are affected by the revisions in the source set.
 java.util.Date getFirstDate()
          Gets the date of the earliest revision in the source set.
 java.util.Date getLastDate()
          Gets the date of the latest revision in the source set.
 int getLineValue()
          Returns the number of code lines that were added in the source change set.
 int size()
          Returns the number of revisions (changes) in this set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionIteratorSummary

public RevisionIteratorSummary(RevisionIterator source)
Creates a new RevisionIteratorSummary, based on a source RevisionIterator. The source iterator's reset() method is called.

Parameters:
source - the source iterator
Method Detail

size

public int size()
Returns the number of revisions (changes) in this set.

Returns:
the number of revisions (changes) in this set

getAllAuthors

public java.util.Set getAllAuthors()
Returns a set of all authors which have committed revisions in the source set.

Returns:
a set of Author objects

getFirstDate

public java.util.Date getFirstDate()
Gets the date of the earliest revision in the source set.

Returns:
the earliest revision

getLastDate

public java.util.Date getLastDate()
Gets the date of the latest revision in the source set.

Returns:
the latest revision

getAllFiles

public java.util.Set getAllFiles()
Returns a set of all CvsFile objects which are affected by the revisions in the source set.

Returns:
a set of CvsFile objects

getLineValue

public int getLineValue()
Returns the number of code lines that were added in the source change set.

Returns:
int number of lines added in the change set