Interface Path
-
public interface Path
Interface describing a path and the various operations and properties of a path- Since:
- 4.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPathAsString()
Get the path as a Stringjava.util.List<java.lang.String>
getPathSegments()
Get each path segment.
-
-
-
Method Detail
-
getPathAsString
java.lang.String getPathAsString()
Get the path as a String- Returns:
- the path as a String
-
getPathSegments
java.util.List<java.lang.String> getPathSegments()
Get each path segment. For example if the path were "/path/to/my/file.txt" this method would return {"path", "to", "my", "file.txt"}- Returns:
-
-