Class PropertyIteratorAdapter
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter
-
- All Implemented Interfaces:
java.util.Iterator,javax.jcr.PropertyIterator,javax.jcr.RangeIterator
public class PropertyIteratorAdapter extends RangeIteratorDecorator implements javax.jcr.PropertyIterator
Adapter class for turningRangeIterators orIterators intoPropertyIterators.
-
-
Field Summary
Fields Modifier and Type Field Description static javax.jcr.PropertyIteratorEMPTYStatic instance of an emptyPropertyIterator.
-
Constructor Summary
Constructors Constructor Description PropertyIteratorAdapter(java.util.Collection collection)Creates an iterator for the given collection.PropertyIteratorAdapter(java.util.Iterator iterator)Creates an adapter for the givenIterator.PropertyIteratorAdapter(java.util.Iterator iterator, long size)PropertyIteratorAdapter(javax.jcr.RangeIterator iterator)Creates an adapter for the givenRangeIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.PropertynextProperty()Returns the next property.-
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skip
-
-
-
-
Constructor Detail
-
PropertyIteratorAdapter
public PropertyIteratorAdapter(javax.jcr.RangeIterator iterator)
Creates an adapter for the givenRangeIterator.- Parameters:
iterator- iterator ofPropertyinstances
-
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator.- Parameters:
iterator- iterator ofPropertyinstances
-
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Iterator iterator, long size)
-
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.- Parameters:
collection- collection ofPropertyinstances
-
-