Class ResourceIterator

  • All Implemented Interfaces:
    Iterator<org.apache.sling.api.resource.Resource>

    public class ResourceIterator
    extends Object
    implements Iterator<org.apache.sling.api.resource.Resource>
    • Constructor Detail

      • ResourceIterator

        public ResourceIterator​(org.apache.sling.api.resource.Resource root,
                                String folderResourceType,
                                boolean includeFolders,
                                boolean includeLeafs)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<org.apache.sling.api.resource.Resource>
      • next

        public org.apache.sling.api.resource.Resource next()
        Specified by:
        next in interface Iterator<org.apache.sling.api.resource.Resource>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<org.apache.sling.api.resource.Resource>