Class BasicPathDetails

    • Constructor Detail

      • BasicPathDetails

        public BasicPathDetails​(Path path,
                                boolean readable,
                                boolean writable,
                                boolean hidden,
                                BasicPathDetails.ObjectType type,
                                long size)
    • Method Detail

      • getPath

        public Path getPath()
        Description copied from interface: PathDetails
        Gets the path associated with the metadata.
        Specified by:
        getPath in interface PathDetails
        Returns:
        the associated file system object's path
      • isReadable

        public boolean isReadable()
        Description copied from interface: PathDetails
        Indicates whether the associated path can be read.
        Specified by:
        isReadable in interface PathDetails
        Returns:
        true the path represents a readable file or directory, false otherwise.
        See Also:
        FileClient.isReadable(Path)
      • isWritable

        public boolean isWritable()
        Description copied from interface: PathDetails
        Indicates whether the associated path can be written.
        Specified by:
        isWritable in interface PathDetails
        Returns:
        true the path represents a writable file or directory, false otherwise.
        See Also:
        FileClient.isWritable(Path)
      • isFile

        public boolean isFile()
        Description copied from interface: PathDetails
        Indicates whether the associated path represents a file.
        Specified by:
        isFile in interface PathDetails
        Returns:
        true the path represents a file, false otherwise.
        See Also:
        FileClient.isFile(Path)
      • isDirectory

        public boolean isDirectory()
        Description copied from interface: PathDetails
        Indicates whether the associated path represents a directory.
        Specified by:
        isDirectory in interface PathDetails
        Returns:
        true the path represents a directory, false otherwise.
        See Also:
        FileClient.isDirectory(Path)
      • isHidden

        public boolean isHidden()
        Description copied from interface: PathDetails
        Indicates whether the associated path is hidden by the file system.
        Specified by:
        isHidden in interface PathDetails
        Returns:
        true if the path is hidden, false otherwise.
        See Also:
        FileClient.isHidden(Path)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object