Class Path
java.lang.Object
com.atlassian.jira.issue.attachment.Path
- All Implemented Interfaces:
Serializable
,Comparable<Path>
Copied from FECRU
./java/com/cenqua/fisheye/Path.java r54145
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabbreviate
(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
boolean
String[]
getName()
getPath()
getPath
(boolean caseSensitive) int
hashCode()
boolean
isRoot()
static String
Intelligently Put a "/" between two strings.void
toString()
-
Constructor Details
-
Path
public Path() -
Path
-
Path
-
Path
-
Path
-
Path
-
Path
-
Path
-
-
Method Details
-
getParent
-
getPath
- Returns:
- the string representation of the path
-
getComponents
-
getName
-
toString
-
equals
-
hashCode
public int hashCode() -
join
Intelligently Put a "/" between two strings. -
isRoot
public boolean isRoot() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
-
abbreviate
abbreviate a path by removing path components from the middle until the length of the path (as via .getPath()) is not greater then 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.
-
getPath
-
toLowerCase
public void toLowerCase() -
getExtension
- Returns:
- the file extension of the path (with no .), or null if there is no file extension
-