Uses of Class
org.klojang.util.Path
Packages that use Path
Package
Description
Utility classes for working with strings, numbers, arrays, collections, etc.
-
Uses of Path in org.klojang.util
Classes in org.klojang.util that implement interfaces with type arguments of type PathMethods in org.klojang.util that return PathModifier and TypeMethodDescriptionReturns a newPathrepresenting the concatenation of thisPathand the specifiedPath.Returns a newPathconsisting of the segments of thisPathplus the segments of the specifiedPath.static PathPath.empty()Returns an emptyPathinstance, consisting of zero path segments.static PathReturns a newPathinstance for the specified path string.Path.getCanonicalPath()Returns a newPathcontaining only the segments of thisPaththat are not array indices.static PathReturns aPathconsisting of a single segment.static PathReturns aPathconsisting of the specified segments.static PathReturns aPathconsisting of the specified segments.static PathReturns aPathconsisting of the specified segments.static PathReturns aPathconsisting of the specified segments.static PathReturns aPathconsisting of the specified segments.static PathPath.ofSegments(String[] segments) Returns aPathconsisting of the specified segments.static PathPath.ofSegments(List<String> segments) Returns aPathconsisting of the specified segments.Path.parent()Returns aPathwith all segments of thisPathexcept the last segment.Returns a newPathwith the path segment at the specified array index set to the new value.Path.reverse()Returns aPathin which the order of the segments is reversed.Path.shift()Returns aPathwith all segments of thisPathexcept the first segment.Path.subPath(int offset) Returns a newPathstarting with the segment at the specified array index.Path.subPath(int offset, int length) Returns a newPathconsisting oflengthsegments starting with segmentoffset.Methods in org.klojang.util with parameters of type PathModifier and TypeMethodDescriptionJSONObject.addElement(Path path, Object element) Appends the specified element to theCollectionfound at the specified path.Returns a newPathconsisting of the segments of thisPathplus the segments of the specifiedPath.int<T> org.klojang.check.extra.Result<T> Returns aResultobject containing the value of the specified path, orResult.notAvailable()if the path is not set.Returns aJSONObjectfor the map at the specified path.booleanReturns whether the specified path is set to a terminal value (and hence cannot be extended).Jumps to another branch in the tree of nested maps.Sets the specified path to the specified value.Unsets the value of the specified path.