Interface TypedPath


  • public interface TypedPath
    A mix-in for an object that represents a file system path. Provides (possibly) fast accessors for the type of the file.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean exists()
      Does this path exist?
      java.nio.file.Path getPath()
      Return the path.
      boolean isDirectory()
      Is the path represented by this a directory?
      boolean isFile()
      Is the path represented by this a regular file?
      boolean isSymbolicLink()
      Is the path represented by this a symbolic link?
    • Method Detail

      • getPath

        java.nio.file.Path getPath()
        Return the path.
        Returns:
        the path.
      • exists

        boolean exists()
        Does this path exist?
        Returns:
        true when the path exists.
      • isDirectory

        boolean isDirectory()
        Is the path represented by this a directory?
        Returns:
        true if the underlying path is a directory
      • isFile

        boolean isFile()
        Is the path represented by this a regular file?
        Returns:
        true if the underlying path is a regular file
      • isSymbolicLink

        boolean isSymbolicLink()
        Is the path represented by this a symbolic link?
        Returns:
        true if the underlying path is a symbolic link