Class Path

    • Method Detail

      • getLength

        public int getLength()
      • getParts

        public String[] getParts()
      • getFirst

        public String getFirst()
        Returns:
        - the first part of the path. ie a/b/c returns a
      • getAfterFirst

        public List<String> getAfterFirst()
      • getStripFirst

        public Path getStripFirst()
      • getName

        public String getName()
      • getParent

        public Path getParent()
      • isRoot

        public boolean isRoot()
      • toPath

        public String toPath()
      • root

        public static Path root()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isRelative

        public boolean isRelative()
      • add

        public Path add​(Path p)
        Add the path components of the given path to this one. Eg "a/b/c" + "/d/e/f" = "a/b/c/d/e/f"
        Parameters:
        p -
        Returns: