public interface RelPath extends PathWrapper
| Modifier and Type | Method and Description |
|---|---|
static RelPath |
get(String first,
String... more)
Construct a path.
|
default RelPath |
getParent() |
default RelPath |
normalize()
Behaves exactly like
Path.normalize(). |
static RelPath |
of(Path path)
Cosnstruct using
Path object. |
default RelPath |
resolve(RelPath other) |
default Path |
resolve(String other) |
default RelPath |
resolveRel(String other) |
default RelPath |
subpath(int beginIndex,
int endIndex) |
endsWith, endsWith, equals, equals, getFileSystem, getPath, hashCode, startsWith, toStringstatic RelPath of(Path path)
Path object.
Note this operation is just a cast if the path is BuckUnixPath.
RuntimeException - the path is not absolute.static RelPath get(String first, String... more)
RuntimeException - if the path is absolute.default RelPath normalize()
Path.normalize().default RelPath getParent()
default RelPath subpath(int beginIndex, int endIndex)