@Immutable
public class AbsoluteUnixPath
extends java.lang.Object
/).
This class is immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
static AbsoluteUnixPath |
fromPath(java.nio.file.Path path)
Gets a new
AbsoluteUnixPath from a Path. |
static AbsoluteUnixPath |
get(java.lang.String unixPath)
Gets a new
AbsoluteUnixPath from a Unix-style path string. |
int |
hashCode() |
AbsoluteUnixPath |
resolve(java.nio.file.Path relativePath)
Resolves this path against another relative path (by the name elements of
relativePath). |
AbsoluteUnixPath |
resolve(RelativeUnixPath relativeUnixPath)
Resolves this path against another relative path.
|
AbsoluteUnixPath |
resolve(java.lang.String relativeUnixPath)
Resolves this path against another relative Unix path in string form.
|
java.lang.String |
toString()
Returns the string form of the absolute Unix-style path.
|
public static AbsoluteUnixPath get(java.lang.String unixPath)
AbsoluteUnixPath from a Unix-style path string. The path must begin with a
forward slash (/).unixPath - the Unix-style path string in absolute formAbsoluteUnixPathpublic static AbsoluteUnixPath fromPath(java.nio.file.Path path)
AbsoluteUnixPath from a Path. The path must be absolute
(indicated by a non-null Path.getRoot()).path - the absolute Path to convert to an AbsoluteUnixPath.AbsoluteUnixPathpublic AbsoluteUnixPath resolve(RelativeUnixPath relativeUnixPath)
relativeUnixPath - the relative path to resolve againstAbsoluteUnixPath representing the resolved pathpublic AbsoluteUnixPath resolve(java.nio.file.Path relativePath)
relativePath).relativePath - the relative path to resolve againstAbsoluteUnixPath representing the resolved pathpublic AbsoluteUnixPath resolve(java.lang.String relativeUnixPath)
relativeUnixPath - the relative path to resolve againstAbsoluteUnixPath representing the resolved pathpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object