Package nva.commons.core.paths
Class UnixPath
java.lang.Object
nva.commons.core.paths.UnixPath
Class for manipulating Unix-like paths. Provides a standard way to add children to the paths so that we do not have
to deal all the time with the path delimiters.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddRoot()booleanstatic UnixPathfromString(String childPath) Deprecated.getPathElementByIndexFromEnd(int index) inthashCode()booleanbooleanisRoot()static UnixPathreplacePathElementByIndexFromEnd(int index, String replacement) toString()
-
Field Details
-
EMPTY_PATH
-
ROOT
- See Also:
-
ROOT_PATH
-
PATH_DELIMITER
- See Also:
-
-
Method Details
-
of
-
fromString
-
isRoot
public boolean isRoot() -
getParent
-
hashCode
public int hashCode() -
equals
-
toString
-
addChild
-
addChild
-
getLastPathElement
-
getPathElementByIndexFromEnd
-
getFilename
Deprecated. -
addRoot
-
removeRoot
-
isEmptyPath
public boolean isEmptyPath() -
replacePathElementByIndexFromEnd
-