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 newPath
representing the concatenation of thisPath
and the specifiedPath
.Returns a newPath
consisting of the segments of thisPath
plus the segments of the specifiedPath
.static Path
Path.empty()
Returns an emptyPath
instance, consisting of zero path segments.static Path
Returns a newPath
instance for the specified path string.Path.getCanonicalPath()
Returns a newPath
containing only the segments of thisPath
that are not array indices.static Path
Returns aPath
consisting of a single segment.static Path
Returns aPath
consisting of the specified segments.static Path
Returns aPath
consisting of the specified segments.static Path
Returns aPath
consisting of the specified segments.static Path
Returns aPath
consisting of the specified segments.static Path
Returns aPath
consisting of the specified segments.static Path
Path.ofSegments
(String[] segments) Returns aPath
consisting of the specified segments.static Path
Path.ofSegments
(List<String> segments) Returns aPath
consisting of the specified segments.Path.parent()
Returns aPath
with all segments of thisPath
except the last segment.Returns a newPath
with the path segment at the specified array index set to the new value.Path.reverse()
Returns aPath
in which the order of the segments is reversed.Path.shift()
Returns aPath
with all segments of thisPath
except the first segment.Path.subPath
(int offset) Returns a newPath
starting with the segment at the specified array index.Path.subPath
(int offset, int length) Returns a newPath
consisting oflength
segments 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 theCollection
found at the specified path.Returns a newPath
consisting of the segments of thisPath
plus the segments of the specifiedPath
.int
<T> org.klojang.check.extra.Result
<T> Returns aResult
object containing the value of the specified path, orResult.notAvailable()
if the path is not set.Returns aJSONObject
for the map at the specified path.boolean
Returns 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.