P
- the type of the implementing classpublic interface PathCore<P extends PathCore<P>> extends Comparable<P>
Path
-like
objects. Implementations of this class may be used to create real path
objects through composition.Modifier and Type | Method and Description |
---|---|
boolean |
endsWith(P other) |
P |
getFileName() |
P |
getName(int index) |
int |
getNameCount() |
P |
getParent() |
P |
getRoot() |
boolean |
isAbsolute() |
P |
normalize() |
P |
relativize(P other) |
P |
resolve(P other) |
P |
resolveSibling(P other) |
boolean |
startsWith(P other) |
P |
subpath(int beginIndex,
int endIndex) |
String |
toPathString(String separator) |
compareTo
boolean isAbsolute()
P getRoot()
P getFileName()
P getParent()
int getNameCount()
P getName(int index)
P subpath(int beginIndex, int endIndex)
boolean startsWith(P other)
boolean endsWith(P other)
P normalize()