Class ResourceNodeIterator

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

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

      • resolver

        protected final org.apache.sling.api.resource.ResourceResolver resolver
      • nodeIterator

        protected final javax.jcr.NodeIterator nodeIterator
    • Constructor Detail

      • ResourceNodeIterator

        public ResourceNodeIterator​(@NotNull
                                    @NotNull org.apache.sling.api.resource.ResourceResolver resolver,
                                    @NotNull
                                    @NotNull javax.jcr.NodeIterator nodeIterator)
      • ResourceNodeIterator

        public ResourceNodeIterator​(@NotNull
                                    @NotNull org.apache.sling.api.resource.ResourceResolver resolver,
                                    @NotNull
                                    @NotNull javax.jcr.NodeIterator nodeIterator,
                                    @Nullable
                                    @Nullable ResourceFilter filter)
    • 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>