org.apache.jackrabbit.commons.iterator
Class PropertyIterable

java.lang.Object
  extended by org.apache.jackrabbit.commons.iterator.PropertyIterable
All Implemented Interfaces:
Iterable<Property>

public class PropertyIterable
extends Object
implements Iterable<Property>

Adapter class that adapts a PropertyIterator instance to an Iterable instance that always returns the same underlying iterator.

Since:
Apache Jackrabbit 2.0

Constructor Summary
PropertyIterable(PropertyIterator iterator)
          Creates an iterable adapter for the given property iterator.
 
Method Summary
 Iterator<Property> iterator()
          Returns the property iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIterable

public PropertyIterable(PropertyIterator iterator)
Creates an iterable adapter for the given property iterator.

Parameters:
iterator - the property iterator to be adapted
Method Detail

iterator

public Iterator<Property> iterator()
Returns the property iterator.

Specified by:
iterator in interface Iterable<Property>
Returns:
property iterator


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.