@ExperimentalApi public class Expansions extends Object
Modifier and Type | Field and Description |
---|---|
static Expansions |
EMPTY |
Constructor and Description |
---|
Expansions(Expansion... expansions) |
Expansions(Iterable<Expansion> expansions) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExpand(String propertyName) |
void |
checkRecursiveExpansion(String expansion)
Checks to see if the passed in expansion string is expanded again somewhere in the expansions map.
|
static String |
encode(String expand)
Encode expand string to a format that conforms
DefaultExpandParameter.ExpandKey
Replace colon to __ and everything except colon, underscore and a-zA-Z0-9 to _ for expand key
Remove everything except 0-9, :, -, | for indexes |
boolean |
equals(Object o) |
Expansions |
getSubExpansions(String propertyName) |
int |
hashCode() |
boolean |
isEmpty() |
Expansion[] |
merge(Expansion[] expansions) |
Expansions |
merge(Expansions expansions) |
static Expansions |
of(String... expansionStr) |
Expansions |
prepend(String propertyName)
Create a new Expansions that prepends the propertyName to the path of all expansions represented
in this Expansions object.
|
Expansion[] |
toArray() |
String |
toString() |
public static final Expansions EMPTY
public Expansions(Expansion... expansions)
public static Expansions of(String... expansionStr)
public Expansions merge(Expansions expansions)
public boolean canExpand(String propertyName)
public Expansions getSubExpansions(String propertyName)
public Expansions prepend(String propertyName)
The new set of expansions will answer true to canExpand(propertyName) and getSubExpansions(propertyName) will return the original set of expansions.
propertyName
- - the propertyName to prepend to the set of expansionspublic Expansion[] toArray()
public boolean isEmpty()
public void checkRecursiveExpansion(String expansion)
expansion
- public static String encode(String expand)
DefaultExpandParameter.ExpandKey
Replace colon to __ and everything except colon, underscore and a-zA-Z0-9 to _ for expand key
Remove everything except 0-9, :, -, | for indexesexpand
- single expand string that needs to encodeCopyright © 2003–2017 Atlassian. All rights reserved.