Package | Description |
---|---|
com.atlassian.bitbucket.content |
Modifier and Type | Field and Description |
---|---|
static SimplePath |
SimplePath.ROOT |
Modifier and Type | Method and Description |
---|---|
SimplePath |
SimplePath.abbreviate(int maxLength)
Abbreviates the path by removing path components from the middle until the length of the
path
is not greater than maxLength . |
SimplePath[] |
SimplePath.abbreviatePathComponents(int maxLength)
Returns a similar result to
getPathComponents() , but abbreviates
the result (inserts null at the break point) |
SimplePath |
SimplePath.getCommonRoot(SimplePath other) |
SimplePath |
SimplePath.getParentPath() |
SimplePath[] |
SimplePath.getPathComponents() |
SimplePath |
SimplePath.getPathHead() |
SimplePath |
SimplePath.getStripTail(SimplePath other,
boolean caseSensitive)
if other is an exact tail of this, return the path leading up to that
tail otherwise return null
|
SimplePath |
SimplePath.getSubPath(int depth) |
SimplePath |
SimplePath.getTailPath() |
SimplePath |
SimplePath.simplify() |
SimplePath |
SimplePath.trimFirst() |
SimplePath |
SimplePath.trimFirst(int n) |
SimplePath |
SimplePath.trimLast() |
Modifier and Type | Method and Description |
---|---|
int |
SimplePath.compareTo(SimplePath o) |
SimplePath |
SimplePath.getCommonRoot(SimplePath other) |
SimplePath |
SimplePath.getStripTail(SimplePath other,
boolean caseSensitive)
if other is an exact tail of this, return the path leading up to that
tail otherwise return null
|
boolean |
SimplePath.hasPrefix(SimplePath p)
determines if this path begins with all of
p |
boolean |
SimplePath.hasPrefix(SimplePath p,
boolean caseSensitive) |
boolean |
SimplePath.isAncestor(SimplePath descendant) |
Constructor and Description |
---|
SimplePath(SimplePath aParent,
SimplePath aPath) |
SimplePath(SimplePath aParent,
String... aPath) |
SimplePath(SimplePath aParent,
String aPath) |
SimplePath(SimplePath aParent,
String aPath,
boolean allowSloshes) |
SimplePath(String aParent,
SimplePath aPath) |
Copyright © 2022 Atlassian. All rights reserved.