org.apache.jackrabbit.commons.iterator
Class PropertyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.PropertyIteratorAdapter
- All Implemented Interfaces:
- java.util.Iterator, PropertyIterator, RangeIterator
public class PropertyIteratorAdapter
- extends RangeIteratorDecorator
- implements PropertyIterator
Adapter class for turning RangeIterators or Iterators
into PropertyIterators.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
EMPTY
public static final PropertyIterator EMPTY
- Static instance of an empty
PropertyIterator.
PropertyIteratorAdapter
public PropertyIteratorAdapter(RangeIterator iterator)
- Creates an adapter for the given
RangeIterator.
- Parameters:
iterator - iterator of Property instances
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Iterator iterator)
- Creates an adapter for the given
Iterator.
- Parameters:
iterator - iterator of Property instances
PropertyIteratorAdapter
public PropertyIteratorAdapter(java.util.Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection - collection of Property instances
nextProperty
public Property nextProperty()
- Returns the next property.
- Specified by:
nextProperty in interface PropertyIterator
- Returns:
- next property
- Throws:
java.util.NoSuchElementException - if there is no next property
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.