public final class RelativeUniformPath extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
RelativeUniformPath |
addSuffix(java.lang.String... suffix)
Creates a new
RelativeUniformPath by prepending the given suffixes to
the relative uniform path. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLastSegment()
Returns the name of the last segment of this path.
|
int |
hashCode() |
static RelativeUniformPath |
of(java.util.List<java.lang.String> segments)
Creates a relative uniform path from the given segments.
|
static RelativeUniformPath |
of(java.lang.String... segments)
Creates a relative uniform path from the given segments.
|
UniformPath |
resolveAgainstAbsolutePath(UniformPath uniformPath)
Resolves this relative path against the given absolute path, performing path
canonicalization in the process (i.e.
|
java.lang.String |
toString() |
public static RelativeUniformPath of(java.lang.String... segments)
../src
) is attempted at this stage.of(List)
public static RelativeUniformPath of(java.util.List<java.lang.String> segments)
../src
) is attempted at this stage.public java.lang.String getLastSegment()
public RelativeUniformPath addSuffix(java.lang.String... suffix)
RelativeUniformPath
by prepending the given suffixes to
the relative uniform path.public UniformPath resolveAgainstAbsolutePath(UniformPath uniformPath)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object