Class Path

    • Field Detail

      • EMPTY_SEGMENTS

        public static final String[] EMPTY_SEGMENTS
      • ROOT

        public static final Path ROOT
      • EMPTY

        public static final Path EMPTY
      • bits

        protected int bits
      • segments

        protected final String[] segments
    • Constructor Detail

      • Path

        public Path​(String[] segments)
      • Path

        public Path​(String[] segments,
                    int bits)
      • Path

        protected Path​(String[] segments,
                       int bits,
                       boolean updateHashCode)
    • Method Detail

      • parse

        public static Path parse​(String path)
      • length

        public int length()
      • segments

        public String[] segments()
      • hasLeadingSlash

        public boolean hasLeadingSlash()
      • hasTrailingSlash

        public boolean hasTrailingSlash()
      • isAbsolute

        public boolean isAbsolute()
      • copy

        public Path copy()
      • copy

        public Path copy​(int bits)
      • lastSegment

        public String lastSegment()
      • getFileExtension

        public String getFileExtension()
      • getFileName

        public String getFileName()
      • makeAbsolute

        public Path makeAbsolute()
      • makeRelative

        public Path makeRelative()
      • removeTrailingSlash

        public Path removeTrailingSlash()
      • isRoot

        public boolean isRoot()
      • segment

        public String segment​(int i)
      • removeLastSegment

        public Path removeLastSegment()
      • removeLastSegments

        public Path removeLastSegments​(int i)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object