Class RowIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.RowIteratorAdapter
- All Implemented Interfaces:
Iterator,RowIterator,RangeIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RowIteratorStatic instance of an emptyRowIterator. -
Constructor Summary
ConstructorsConstructorDescriptionRowIteratorAdapter(Collection collection) Creates an iterator for the given collection.RowIteratorAdapter(Iterator iterator) Creates an adapter for the givenIterator.RowIteratorAdapter(RangeIterator iterator) Creates an adapter for the givenRangeIterator. -
Method Summary
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skipMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
Field Details
-
EMPTY
Static instance of an emptyRowIterator.
-
-
Constructor Details
-
RowIteratorAdapter
Creates an adapter for the givenRangeIterator.- Parameters:
iterator- iterator ofRows
-
RowIteratorAdapter
Creates an adapter for the givenIterator.- Parameters:
iterator- iterator ofRows
-
RowIteratorAdapter
Creates an iterator for the given collection.- Parameters:
collection- collection ofRows
-
-
Method Details
-
nextRow
Returns the next row.- Specified by:
nextRowin interfaceRowIterator- Returns:
- next row
- Throws:
NoSuchElementException- if there is no next row
-