Class ResourcePathCollatingIterator

  • All Implemented Interfaces:
    Iterator<org.apache.sling.caconfig.resource.spi.ContextResource>

    public class ResourcePathCollatingIterator
    extends org.apache.commons.collections4.iterators.CollatingIterator<org.apache.sling.caconfig.resource.spi.ContextResource>
    Expected a list of iterators containing paths, where each path is a direct or indirect parent of the previous one (= sorted by path hierarchy starting with the deepest path). Result is a new iterator with all resources combined from all iterators in the same order, duplicates not eliminated.
    • Constructor Detail

      • ResourcePathCollatingIterator

        public ResourcePathCollatingIterator​(List<Iterator<org.apache.sling.caconfig.resource.spi.ContextResource>> iterator)