org.apache.jackrabbit.commons.iterator
Class VersionIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.VersionIteratorAdapter
- All Implemented Interfaces:
- Iterator, RangeIterator, VersionIterator
public class VersionIteratorAdapter
- extends RangeIteratorDecorator
- implements VersionIterator
Adapter class for turning RangeIterator
s or Iterator
s
into VersionIterator
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final VersionIterator EMPTY
- Static instance of an empty
VersionIterator
.
VersionIteratorAdapter
public VersionIteratorAdapter(RangeIterator iterator)
- Creates an adapter for the given
RangeIterator
.
- Parameters:
iterator
- iterator of Version
s
VersionIteratorAdapter
public VersionIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator
.
- Parameters:
iterator
- iterator of Version
s
VersionIteratorAdapter
public VersionIteratorAdapter(Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection
- collection of Version
s
nextVersion
public Version nextVersion()
- Returns the next version.
- Specified by:
nextVersion
in interface VersionIterator
- Returns:
- next version
- Throws:
NoSuchElementException
- if there is no next version
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.