Interface Path<T>

Type Parameters:
T - The types of segments in the path
All Superinterfaces:
Comparable<Path<T>>, Iterable<Path<T>>
All Known Subinterfaces:
PathSys<T,S>
All Known Implementing Classes:
PathBase, PathJson, PathNio, PathStr, PathSysBase, PathWrapperBase

public interface Path<T> extends Iterable<Path<T>>, Comparable<Path<T>>
An interface summarized from Path. Purely provides the path manipulation functions - without FileSystem dependency. This enables the use of all the path operations in different contexts, such as for use as keys in hierarchical representations of RDF data (e.g. TreeGrids).
Author:
Claus Stadler
  • Method Details

    • toAbsolutePath

      Path<T> toAbsolutePath()
    • isAbsolute

      boolean isAbsolute()
    • getSegments

      List<T> getSegments()
    • getRoot

      Path<T> getRoot()
    • getFileName

      Path<T> getFileName()
    • getParent

      Path<T> getParent()
    • getNameCount

      int getNameCount()
    • getName

      Path<T> getName(int index)
    • subpath

      Path<T> subpath(int beginIndex, int endIndex)
    • subpath

      Path<T> subpath(int beginIndex)
      Experimental. Not part of nio Path.
    • startsWith

      boolean startsWith(Path<T> other)
    • endsWith

      boolean endsWith(Path<T> other)
    • normalize

      Path<T> normalize()
    • resolveStr

      Path<T> resolveStr(String other)
    • resolve

      Path<T> resolve(T other)
    • resolve

      Path<T> resolve(Path<T> other)
    • resolveSiblingStr

      Path<T> resolveSiblingStr(String other)
    • resolveSibling

      Path<T> resolveSibling(T other)
    • resolveSibling

      Path<T> resolveSibling(Path<T> other)
    • relativize

      Path<T> relativize(Path<T> other)
    • toSegment

      default T toSegment()
    • getSystem

      Object getSystem()
      Returns an object such as the file system underlying this path. Returns null if not applicable. Experimental.