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.9 2003/03/18 10:33:55 lukasz 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 getAllFiles()
          Returns a set of all CvsFile objects which are affected by the revisions in the source set.
 java.util.Set getAllModules()
          Returns a set of all Strings containing all module names which show up in the source set.
 java.util.Set getAllUsers()
          Returns a set of all user names which have committed 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

getAllUsers

public java.util.Set getAllUsers()
Returns a set of all user names which have committed revisions in the source set.

Returns:
a set of user names

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

getAllModules

public java.util.Set getAllModules()
Returns a set of all Strings containing all module names which show up in the source set.

Returns:
a set of directory names

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