org.apache.jackrabbit.commons.iterator
Class RowIterable

java.lang.Object
  extended by 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

Constructor Summary
RowIterable(RowIterator iterator)
          Creates an iterable adapter for the given row iterator.
 
Method Summary
 Iterator<Row> iterator()
          Returns the row iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowIterable

public RowIterable(RowIterator iterator)
Creates an iterable adapter for the given row iterator.

Parameters:
iterator - the row iterator to be adapted
Method Detail

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.