public class Path extends Object implements Comparable<Path>
| Modifier and Type | Method and Description |
|---|---|
String |
absolutePath(String path) |
int |
compareTo(Path other) |
boolean |
equals(Object obj) |
String |
getName()
Returns the base name of this path, or null if this path is the root path.
|
Path |
getParent()
Returns the parent of this path, or null if this path has no parent.
|
String |
getPath() |
int |
hashCode() |
static Path |
path(String path) |
String |
relativePath(String path) |
Path |
resolve(String path) |
String |
toString() |
public static final Path ROOT
public Path(String path)
public String getPath()
public int compareTo(Path other)
compareTo in interface Comparable<Path>public Path getParent()
public String getName()
Copyright © 2013. All rights reserved