Package javax.jcr.version
Interface VersionIterator
-
- All Superinterfaces:
Iterator,RangeIterator
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 java.util.Iterator
forEachRemaining, hasNext, next, remove
-
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:
NoSuchElementException- if iteration has no moreVersions.
-
-