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 turningRangeIterator
s orIterator
s intoPropertyIterator
s.
-
-
Field Summary
Fields Modifier and Type Field Description static javax.jcr.PropertyIterator
EMPTY
Static 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.Property
nextProperty()
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 ofProperty
instances
-
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator
.- Parameters:
iterator
- iterator ofProperty
instances
-
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 ofProperty
instances
-
-