public class Path extends Object implements Serializable, Comparable<Path>
./java/com/cenqua/fisheye/Path.java r54145
Constructor and Description |
---|
Path() |
Path(CharSequence path) |
Path(CharSequence path,
boolean allowSloshes) |
Path(Path path) |
Path(Path aParent,
Path aPath) |
Path(Path aParent,
String aPath) |
Path(Path aParent,
String aPath,
boolean allowSloshes) |
Path(String aParent,
Path aPath) |
Modifier and Type | Method and Description |
---|---|
Path |
abbreviate(int maxLength)
abbreviate a path by removing path components from the middle until the length of the path (as via .getPath()) is
not greater then maxLength.
|
int |
compareTo(Path o) |
boolean |
equals(Object o) |
String[] |
getComponents() |
String |
getExtension() |
String |
getName() |
Path |
getParent() |
String |
getPath() |
String |
getPath(boolean caseSensitive) |
int |
hashCode() |
boolean |
isRoot() |
static String |
join(String str1,
String str2)
Intelligently Put a "/" between two strings.
|
void |
toLowerCase() |
String |
toString() |
public Path()
public Path(CharSequence path)
public Path(CharSequence path, boolean allowSloshes)
public Path(Path path)
public Path getParent()
public String getPath()
public String[] getComponents()
public String getName()
public static String join(String str1, String str2)
public boolean isRoot()
public int compareTo(Path o)
compareTo
in interface Comparable<Path>
public Path abbreviate(int maxLength)
The first and last path component are always in the returned path.
If any path components were removed, an ellipsis ("...") will appear in the middle
The returned path may in some cases still be greater.
public String getPath(boolean caseSensitive)
public void toLowerCase()
public String getExtension()
Copyright © 2002-2017 Atlassian. All Rights Reserved.