org.apache.jackrabbit.commons.iterator
Class RowIterable
java.lang.Object
org.apache.jackrabbit.commons.iterator.RowIterable
- All Implemented Interfaces:
- Iterable<Row>
public class RowIterable
- extends Object
- implements Iterable<Row>
Adapter class that adapts a RowIterator
instance to an
Iterable|
instance that always returns the same underlying
iterator.
- Since:
- Apache Jackrabbit 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowIterable
public RowIterable(RowIterator iterator)
- Creates an iterable adapter for the given row iterator.
- Parameters:
iterator
- the row iterator to be adapted
iterator
public Iterator<Row> iterator()
- Returns the row iterator.
- Specified by:
iterator
in interface Iterable<Row>
- Returns:
- row iterator
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.