Class ExpansionsParser
java.lang.Object
com.atlassian.servicedesk.api.util.expansion.ExpansionsParser
Converts
Expansions to and from a String for use with REST calls say.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConverts a collection ofExpansions into a single string.static StringasString(Expansions expansions) Converts aExpansionscollection into a single string.static Expansion[]Converts a string representation of a collection of Expansions back into anExpansionarray.static Expansionsstatic ExpansionsparseAsExpansions(String expand) Converts a string representation of a collection ofExpansionsinto an Expansions instance.static ExpansionsparseAsExpansions(List<String> expands) Converts list of string representations ofExpansions into an Expansions instance.static ExpansionparseSingle(String expand) Converts a string representation of a single Expansion back into an Expansion.static ExpansionsparseWithPrefix(String prefix, String expansions)
-
Constructor Details
-
ExpansionsParser
public ExpansionsParser()
-
-
Method Details
-
parse
Converts a string representation of a collection of Expansions back into anExpansionarray. -
parseAsExpansions
Converts list of string representations ofExpansions into an Expansions instance. If the given list contains a single element, attempts to parse it as a collection of expansions (i.e comma-separated) -
parseAsExpansions
Converts a string representation of a collection ofExpansionsinto an Expansions instance. -
parseSingle
Converts a string representation of a single Expansion back into an Expansion. -
asString
Converts aExpansionscollection into a single string. -
asString
Converts a collection ofExpansions into a single string. -
parse
-
parseWithPrefix
-