|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.statcvs.model.ListRevisionIterator | +--net.sf.statcvs.model.RevisionSortIterator
Sorts the output of a given RevisionIterator
by date,
starting with the oldest revision.
This is achieved by caching the output of the source iterator.
Field Summary | |
static int |
ORDER_ASC
constant for descending sort order to be used in RevisionSortIterator(RevisionIterator, int) |
static int |
ORDER_DESC
constant for ascending sort order to be used in RevisionSortIterator(RevisionIterator, int) |
Constructor Summary | |
RevisionSortIterator(java.util.List revisions)
Returns a new instance which sorts a List of
revisions by date, starting with oldest. |
|
RevisionSortIterator(RevisionIterator source)
Creates a new iterator from a source iterator. |
|
RevisionSortIterator(RevisionIterator source,
int order)
Creates a new iterator from a source iterator. |
Methods inherited from class net.sf.statcvs.model.ListRevisionIterator |
getList, hasNext, initList, initListFromIterator, next, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ORDER_ASC
RevisionSortIterator(RevisionIterator, int)
public static final int ORDER_DESC
RevisionSortIterator(RevisionIterator, int)
Constructor Detail |
public RevisionSortIterator(RevisionIterator source)
CvsRevision
objects
of the source, but sorted by date, starting with oldest.
source
- the source iterator to be sorted by date.public RevisionSortIterator(RevisionIterator source, int order)
CvsRevision
objects
of the source, but sorted by date. The sort order
can be specified.
source
- the source iterator to be sorted by date.order
- one of ORDER_ASC
or ORDER_DESC
public RevisionSortIterator(java.util.List revisions)
List
of
revisions by date, starting with oldest.
revisions
- a list of revisions
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |