Package io.milton.common
Class Path
java.lang.Object
io.milton.common.Path
- All Implemented Interfaces:
Serializable
Immutable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
root
-
LENGTH_COMPARATOR
-
-
Method Details
-
path
-
path
-
getLength
public int getLength() -
getParts
-
getFirst
- Returns:
- - the first part of the path. ie a/b/c returns a
-
getAfterFirst
-
getStripFirst
-
getName
-
getParent
-
isRoot
public boolean isRoot() -
toPath
-
toString
-
toString
-
root
-
hashCode
public int hashCode() -
equals
-
child
-
isRelative
public boolean isRelative() -
add
Add the path components of the given path to this one. Eg "a/b/c" + "/d/e/f" = "a/b/c/d/e/f"- Parameters:
p-- Returns:
-