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