|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.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 keepMethod Detail |
public boolean hasNext()
RevisionIterator
hasNext
in interface RevisionIterator
True
, if there are more revisionsRevisionIterator.hasNext()
public CvsRevision next()
RevisionIterator
NoSuchElementException
is thrown.
next
in interface RevisionIterator
RevisionIterator.next()
public void reset()
RevisionIterator
reset
in interface RevisionIterator
RevisionIterator.reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |