Class ExpandingIterator<T>

  • All Implemented Interfaces:
    Iterator<org.apache.sling.query.api.internal.Option<T>>

    public class ExpandingIterator<T>
    extends AbstractIterator<org.apache.sling.query.api.internal.Option<T>>
    This iterator evaluates each element from the source iterator, expanding it using given function.
    • Constructor Detail

      • ExpandingIterator

        public ExpandingIterator​(org.apache.sling.query.api.internal.ElementToIteratorFunction<T> expandingFunction,
                                 Iterator<org.apache.sling.query.api.internal.Option<T>> sourceIterator)
    • Method Detail

      • getElement

        protected org.apache.sling.query.api.internal.Option<T> getElement()
        Specified by:
        getElement in class AbstractIterator<org.apache.sling.query.api.internal.Option<T>>