Interface AContainer

    • Method Detail

      • getMembers

        java.util.SortedSet<? extends AResource> getMembers()
        Returns this container's members, sorted by their name.
        Returns:
        this container's members
      • findMember

        @CheckForNull
        AResource findMember​(java.lang.String path)
        Returns the member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource), if it exists.
        Parameters:
        path - a path, relative to this container
        Returns:
        the member identified by the path or null if no such member exists
      • getFile

        AFile getFile​(java.nio.file.Path path)
        Returns the file that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource). It may not exist.
        Parameters:
        path - a path, relative to this container
        Returns:
        the file identified by the path
      • getFolder

        AFolder getFolder​(java.nio.file.Path path)
        Returns the folder that is a member of this container (or one of its members) denoted by the given path (interpreted as relative to this resource). It may not exist.
        Parameters:
        path - a path, relative to this container
        Returns:
        the folder identified by the path
      • iterator

        default java.util.Iterator<AResource> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<AResource>