Package javax.jcr.version
Interface VersionIterator
-
- All Superinterfaces:
java.util.Iterator,RangeIterator
- All Known Implementing Classes:
VersionIteratorAdapter
public interface VersionIterator extends RangeIterator
Allows easy iteration through a list ofVersions objects withnextVersionas well as askipmethod inherited fromRangeIterator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VersionnextVersion()Returns the nextVersionin the iteration.-
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
-
-
-
Method Detail
-
nextVersion
Version nextVersion()
Returns the nextVersionin the iteration.- Returns:
- the next
Versionin the iteration. - Throws:
java.util.NoSuchElementException- if iteration has no moreVersions.
-
-