Class PropertyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter
- All Implemented Interfaces:
Iterator,PropertyIterator,RangeIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyIteratorStatic instance of an emptyPropertyIterator. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyIteratorAdapter(Collection collection) Creates an iterator for the given collection.PropertyIteratorAdapter(Iterator iterator) Creates an adapter for the givenIterator.PropertyIteratorAdapter(Iterator iterator, long size) PropertyIteratorAdapter(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 emptyPropertyIterator.
-
-
Constructor Details
-
PropertyIteratorAdapter
Creates an adapter for the givenRangeIterator.- Parameters:
iterator- iterator ofPropertyinstances
-
PropertyIteratorAdapter
Creates an adapter for the givenIterator.- Parameters:
iterator- iterator ofPropertyinstances
-
PropertyIteratorAdapter
-
PropertyIteratorAdapter
Creates an iterator for the given collection.- Parameters:
collection- collection ofPropertyinstances
-
-
Method Details
-
nextProperty
Returns the next property.- Specified by:
nextPropertyin interfacePropertyIterator- Returns:
- next property
- Throws:
NoSuchElementException- if there is no next property
-