|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.statcvs.model.RevisionLimitIterator
Returns only the first X entries from a RevisionIterator.
| Constructor Summary | |
RevisionLimitIterator(RevisionIterator source,
int limit)
Creates a new RevisionIterator which contains only
the first limit entries of source. |
|
| Method Summary | |
boolean |
hasNext()
Returns true if this iteration has more elements. |
CvsRevision |
next()
Returns the next cvs revision or otherwise a NoSuchElementException is thrown. |
void |
reset()
Resets this iteration to the first element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RevisionLimitIterator(RevisionIterator source,
int limit)
RevisionIterator which contains only
the first limit entries of source.
source - the source iteratorlimit - the number of entries to keep| Method Detail |
public boolean hasNext()
RevisionIterator
hasNext in interface RevisionIteratorTrue, if there are more revisionsRevisionIterator.hasNext()public CvsRevision next()
RevisionIteratorNoSuchElementException is thrown.
next in interface RevisionIteratorRevisionIterator.next()public void reset()
RevisionIterator
reset in interface RevisionIteratorRevisionIterator.reset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||