Interface Path

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getLastPathComponent()
      Convenience function to return the last path element.
      Path getParentPath()
      Returns a path representing the element above the current path.
      java.lang.String getPathComponent​(int i)
      Returns the path element at the specified location.
      int getPathLength()
      Returns the number of elements in the path, which can be retrieved through getPathComponent().
      boolean isAncestorOf​(Path path)
      Returns whether the provided path is a child path of this one.
    • Method Detail

      • getPathLength

        int getPathLength()
        Returns the number of elements in the path, which can be retrieved through getPathComponent().
      • getPathComponent

        java.lang.String getPathComponent​(int i)
        Returns the path element at the specified location.
      • getLastPathComponent

        java.lang.String getLastPathComponent()
        Convenience function to return the last path element.
      • isAncestorOf

        boolean isAncestorOf​(Path path)
        Returns whether the provided path is a child path of this one.
      • getParentPath

        Path getParentPath()
        Returns a path representing the element above the current path.