public interface Path
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLastPathComponent()
Convenience function to return the last path element.
|
java.lang.String |
getPathComponent(int i)
Returns the path element at the specified location.
|
int |
getPathLength()
Returns the number of elements in the path, which can be retrieved through getPathComponent().
|
boolean |
isAncestorOf(Path path)
Returns whether the provided path is a child path of this one.
|
int getPathLength()
java.lang.String getPathComponent(int i)
i
- java.lang.String getLastPathComponent()
boolean isAncestorOf(Path path)
path
-