- All Known Subinterfaces:
ManagedDirectory
A path-like object that can provide a
Java NIO Path.
This enables wrapping various implementations and providers of Path objects
in a translucent façade that enables representing paths in a hierarchical format.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if two path roots are equivalent.Get the parent path root, if there is one.getPath()Get theJava NIO Pathfor this path-like object.getUri()Get a URI representation of this path-like object.getUrl()Get a URL representation of this path-like object.inthashCode()Determine the hash-code for the object.
-
Method Details
-
equals
Determine if two path roots are equivalent. If the provided object isnullor not an instance of aPathRoot, then this will returnfalseunless otherwise specified. -
hashCode
int hashCode()Determine the hash-code for the object. -
getPath
Get theJava NIO Pathfor this path-like object. -
getUri
Get a URI representation of this path-like object. -
getUrl
Get a URL representation of this path-like object. -
getParent
Get the parent path root, if there is one.- Returns:
- the parent path root, or
nullif no parent root exists.
-