Class PathStr

All Implemented Interfaces:
Serializable, Comparable<Path<String>>, Iterable<Path<String>>, Path<String>

public class PathStr extends PathBase<String,PathStr>
A path implementations for strings. Mimics Unix paths. Escaping: String is split on '/' Backspace '\' escapes '/' i.e. \/ -> / Example: PathOpsStr.create("/hell\//o/world").getSegments() yields [hell/, o, world].
Author:
raven
See Also:
  • Constructor Details

  • Method Details

    • parse

      public static PathStr parse(String str)
    • newAbsolutePath

      public static PathStr newAbsolutePath(String segment)
    • newAbsolutePath

      public static PathStr newAbsolutePath(String... segments)
    • newAbsolutePath

      public static PathStr newAbsolutePath(List<String> segments)
    • newRelativePath

      public static PathStr newRelativePath(String segment)
    • newRelativePath

      public static PathStr newRelativePath(String... segments)
    • newRelativePath

      public static PathStr newRelativePath(List<String> segments)