Class UniqueResourceIterator
java.lang.Object
org.apache.sling.resourceresolver.impl.helper.AbstractIterator<org.apache.sling.api.resource.Resource>
org.apache.sling.resourceresolver.impl.helper.UniqueResourceIterator
- All Implemented Interfaces:
Iterator<org.apache.sling.api.resource.Resource>
public class UniqueResourceIterator
extends AbstractIterator<org.apache.sling.api.resource.Resource>
This iterator removes duplicated Resource entries. Regular resources
overrides the synthetic ones.
-
Constructor Summary
ConstructorsConstructorDescriptionUniqueResourceIterator(Set<String> visited, Iterator<org.apache.sling.api.resource.Resource> input) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sling.api.resource.Resourceseek()Abstract method to be overriden by subclassesMethods inherited from class org.apache.sling.resourceresolver.impl.helper.AbstractIterator
hasNext, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
UniqueResourceIterator
-
-
Method Details
-
seek
protected org.apache.sling.api.resource.Resource seek()Description copied from class:AbstractIteratorAbstract method to be overriden by subclasses- Specified by:
seekin classAbstractIterator<org.apache.sling.api.resource.Resource>
-