Package org.aksw.commons.path.core
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
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 Summary
Modifier and TypeMethodDescriptionbooleangetName(int index) intgetRoot()Returns an object such as the file system underlying this path.booleanrelativize(Path<T> other) resolveSibling(Path<T> other) resolveSibling(T other) resolveSiblingStr(String other) resolveStr(String other) booleanstartsWith(Path<T> other) subpath(int beginIndex) Experimental.subpath(int beginIndex, int endIndex) default TMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
toAbsolutePath
-
isAbsolute
boolean isAbsolute() -
getSegments
-
getRoot
-
getFileName
-
getParent
-
getNameCount
int getNameCount() -
getName
-
subpath
-
subpath
Experimental. Not part of nio Path. -
startsWith
-
endsWith
-
normalize
-
resolveStr
-
resolve
-
resolve
-
resolveSiblingStr
-
resolveSibling
-
resolveSibling
-
relativize
-
toSegment
-
getSystem
Object getSystem()Returns an object such as the file system underlying this path. Returns null if not applicable. Experimental.
-