Uses of Class
org.klojang.path.Path

Packages that use Path
Package
Description
Classes related to following a path to the object or resource denoted by it.
  • Uses of Path in org.klojang.path

    Methods in org.klojang.path that return Path
    Modifier and Type
    Method
    Description
    Path.append(String path)
    Returns a new Path representing the concatenation of this Path and the specified Path.
    Path.append(Path other)
    Returns a new Path consisting of the segments of this Path plus the segments of the specified Path.
    static Path
    Path.copyOf(Path other)
    Returns a copy of the specified path.
    static Path
    Path.empty()
    Returns an empty Path instance, consisting of zero path segments.
    static Path
    Path.from(String path)
    Returns a new Path instance for the specified path string.
    static Path
    Path.from(String[] segments)
    Returns a Path consisting of the specified segments.
    Returns a new Path containing only the segments of this Path that are not array indices.
    static Path
    Path.of(String segment)
    Returns a Path consisting of a single segment.
    static Path
    Path.of(String... segments)
    Returns a Path consisting of the specified segments.
    static Path
    Path.of(String segment0, String segment1)
    Returns a Path consisting of the specified segments.
    static Path
    Path.of(String segment0, String segment1, String segment2)
    Returns a Path consisting of the specified segments.
    static Path
    Path.of(String segment0, String segment1, String segment2, String segment3)
    Returns a Path consisting of the specified segments.
    static Path
    Path.of(String segment0, String segment1, String segment2, String segment3, String segment4)
    Returns a Path consisting of the specified segments.
    Path.parent()
    Returns a Path with all segments of this Path except the last segment.
    Path.replace(int index, String newValue)
    Returns a new Path with the path segment at the specified array index set to the new value.
    Path.reverse()
    Returns a Path in which the order of the segments is reversed.
    Path.shift()
    Returns a Path with all segments of this Path except the first segment.
    Path.subPath(int offset)
    Returns a new Path starting with the segment at the specified array index.
    Path.subPath(int offset, int length)
    Returns a new Path consisting of length segments starting with segment offset.
    Methods in org.klojang.path with parameters of type Path
    Modifier and Type
    Method
    Description
    Path.append(Path other)
    Returns a new Path consisting of the segments of this Path plus the segments of the specified Path.
    int
    Path.compareTo(Path other)
     
    static Path
    Path.copyOf(Path other)
    Returns a copy of the specified path.
    KeyDeserializer.deserialize(Path path, int segmentIndex)
    Converts the path segment at the specified index to a map key.
    static <T> T
    PathWalker.read(Object host, Path path)
    Returns the value of the specified path within the specified object.
    Method parameters in org.klojang.path with type arguments of type Path
    Modifier and Type
    Method
    Description
    void
    PathWalker.readValues(Object host, Map<Path,Object> output)
    Reads the values of all paths and inserts them into the provided path-to-value map.
    Constructors in org.klojang.path with parameters of type Path
    Modifier
    Constructor
    Description
     
    PathWalker(Path... paths)
    Creates a PathWalker for the specified paths.
    Constructor parameters in org.klojang.path with type arguments of type Path
    Modifier
    Constructor
    Description
     
    Creates a PathWalker for the specified paths.
     
    PathWalker(List<Path> paths, boolean suppressExceptions)
    Creates a PathWalker for the specified paths.
     
    PathWalker(List<Path> paths, boolean suppressExceptions, KeyDeserializer keyDeserializer)
    Creates a PathWalker for the specified paths.