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, skip
public static final javax.jcr.version.VersionIterator EMPTY
VersionIterator
.public VersionIteratorAdapter(javax.jcr.RangeIterator iterator)
RangeIterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of Version
spublic VersionIteratorAdapter(Collection collection)
collection
- collection of Version
spublic javax.jcr.version.Version nextVersion()
nextVersion
in interface javax.jcr.version.VersionIterator
NoSuchElementException
- if there is no next versionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.