Package com.day.cq.wcm.commons
Class ResourceIterator<T>
java.lang.Object
com.day.cq.wcm.commons.ResourceIterator<T>
- All Implemented Interfaces:
Iterator<T>
Implements a generic iterator based on an iterator of resources which adapts
the element to the respective adapter type. Resources that cannot be adapted
to the specified adapter type are skipped.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceIterator(Iterator<Resource> base, Class<T> adapterType) Creates a new iterator that is based on the given resource iterator. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ResourceIterator
Creates a new iterator that is based on the given resource iterator.- Parameters:
base- base iteratoradapterType- adapter type
-
-
Method Details