Package javax.jcr.version
Interface VersionIterator
- All Superinterfaces:
Iterator,RangeIterator
- All Known Implementing Classes:
VersionIteratorAdapter
Allows easy iteration through a list of
Versions objects with
nextVersion as well as a skip method inherited from
RangeIterator.-
Method Summary
Modifier and TypeMethodDescriptionReturns the nextVersionin the iteration.Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
Method Details
-
nextVersion
Version nextVersion()Returns the nextVersionin the iteration.- Returns:
- the next
Versionin the iteration. - Throws:
NoSuchElementException- if iteration has no moreVersions.
-