@Immutable public class AbsoluteUnixPath extends Object
/).
This class is immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static AbsoluteUnixPath |
fromPath(Path path)
Gets a new
AbsoluteUnixPath from a Path. |
static AbsoluteUnixPath |
get(String unixPath)
Gets a new
AbsoluteUnixPath from a Unix-style path string. |
int |
hashCode() |
AbsoluteUnixPath |
resolve(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(String relativeUnixPath)
Resolves this path against another relative Unix path in string form.
|
String |
toString()
Returns the string form of the absolute Unix-style path.
|
public static AbsoluteUnixPath get(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(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(Path relativePath)
relativePath).relativePath - the relative path to resolve againstAbsoluteUnixPath representing the resolved pathpublic AbsoluteUnixPath resolve(String relativeUnixPath)
relativeUnixPath - the relative path to resolve againstAbsoluteUnixPath representing the resolved pathpublic String toString()
Copyright © 2019. All rights reserved.