public class VersionIteratorAdapter extends RangeIteratorDecorator implements javax.jcr.version.VersionIterator
| Modifier and Type | Field and Description |
|---|---|
static javax.jcr.version.VersionIterator |
EMPTY
Static instance of an empty
VersionIterator. |
| Constructor and Description |
|---|
VersionIteratorAdapter(Collection collection)
Creates an iterator for the given collection.
|
VersionIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator. |
VersionIteratorAdapter(javax.jcr.RangeIterator iterator)
Creates an adapter for the given
RangeIterator. |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.version.Version |
nextVersion()
Returns the next version.
|
getPosition, getSize, hasNext, next, remove, skippublic static final javax.jcr.version.VersionIterator EMPTY
VersionIterator.public VersionIteratorAdapter(javax.jcr.RangeIterator iterator)
RangeIterator.iterator - iterator of Versionspublic VersionIteratorAdapter(Iterator iterator)
Iterator.iterator - iterator of Versionspublic VersionIteratorAdapter(Collection collection)
collection - collection of Versionspublic javax.jcr.version.Version nextVersion()
nextVersion in interface javax.jcr.version.VersionIteratorNoSuchElementException - if there is no next versionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.