|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.model.LinesOfCodeIterator
A customized iterator, which provides a date-sorted list of all dates where the lines of code count changed. It can be used to create a lines of code graph for a given set of revisions.
This iterator iterates on a list of change event. Each change event has an associated date and a lines of code count, which is the sum of all files at that time.
Constructor Summary | |
LinesOfCodeIterator(RevisionIterator source)
Creates a new LinesOfCodeIterator for the
source revision set. |
Method Summary | |
java.util.Date |
getDate()
Returns the date of the current change event. |
int |
getLinesOfCode()
Returns the lines of code count for the current change event. |
boolean |
hasNext()
Returns true if there are more changes. |
boolean |
next()
Advances the internal pointer to the next record, and returns true if there is such a record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinesOfCodeIterator(RevisionIterator source)
LinesOfCodeIterator
for the
source revision set. The source set does not have to be
sorted by date.
source
- the RevisionIterator which contains the
revisions that should be included in the lines of code
calculation.Method Detail |
public boolean hasNext()
true
if there are more changes.
This does not advance the internal pointer.
true
if another entry can
be accessed by next()
public boolean next()
true
if there is such a record.
true
if a record is accessiblepublic int getLinesOfCode() throws java.util.NoSuchElementException
next()
must be called once before the first event
can be accessed.
java.util.NoSuchElementException
- if the iterator is empty or
next()
was not calledpublic java.util.Date getDate() throws java.util.NoSuchElementException
next()
must be called once before the first event
can be accessed.
java.util.NoSuchElementException
- if the iterator is empty or
next()
was not called
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |