Class RowIteratorAdapter
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- org.apache.jackrabbit.commons.iterator.RowIteratorAdapter
-
- All Implemented Interfaces:
java.util.Iterator
,RowIterator
,RangeIterator
public class RowIteratorAdapter extends RangeIteratorDecorator implements RowIterator
-
-
Field Summary
Fields Modifier and Type Field Description static RowIterator
EMPTY
Static instance of an emptyRowIterator
.
-
Constructor Summary
Constructors Constructor Description RowIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.RowIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator
.RowIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Row
nextRow()
Returns the next row.-
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skip
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
-
-
-
Field Detail
-
EMPTY
public static final RowIterator EMPTY
Static instance of an emptyRowIterator
.
-
-
Constructor Detail
-
RowIteratorAdapter
public RowIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.- Parameters:
iterator
- iterator ofRow
s
-
RowIteratorAdapter
public RowIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator
.- Parameters:
iterator
- iterator ofRow
s
-
RowIteratorAdapter
public RowIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.- Parameters:
collection
- collection ofRow
s
-
-
Method Detail
-
nextRow
public Row nextRow()
Returns the next row.- Specified by:
nextRow
in interfaceRowIterator
- Returns:
- next row
- Throws:
java.util.NoSuchElementException
- if there is no next row
-
-