java.lang.Object | |
↳ | com.atlassian.jira.rest.api.util.StringList |
This class is used for dealing with query parameters that contain comma-separated lists of strings. The utility
methods fromQueryParam(String)
and toQueryParam()
can be used to convert back and forth between
String and StringList.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new, empty, StringList.
| |||||||||||
Constructs the List of Strings from a query param string.
| |||||||||||
Constructs the List of Strings from another List.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an immutable list of strings.
| |||||||||||
Returns a new StringList containing the concatenation of this StringList's fields and the fields in the given
string list.
| |||||||||||
Creates a new StringList from an array of strings.
| |||||||||||
Creates a new StringList from an Iterable of strings.
| |||||||||||
Creates a new StringList from a query parameter.
| |||||||||||
Returns a new StringList containing the concatenation of all of the StringLists in the given List.
| |||||||||||
Returns a string representation of this StringList, suitable for using in a query param.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Creates a new, empty, StringList.
Constructs the List of Strings from a query param string.
queryParam | a String containing the query param value |
---|
Constructs the List of Strings from another List.
fields | a List of Strings |
---|
Returns an immutable list of strings.
Returns a new StringList containing the concatenation of this StringList's fields and the fields in the given string list.
stringList | a StringList |
---|
Creates a new StringList from an array of strings.
strings | an array of String |
---|
Creates a new StringList from an Iterable of strings.
strings | an array of String |
---|
Creates a new StringList from a query parameter. The input string is expected to be a comma-separated list of strings.
queryParam | a comma-separated String list |
---|
Returns a new StringList containing the concatenation of all of the StringLists in the given List.
stringLists | a List of StringLists |
---|
Returns a string representation of this StringList, suitable for using in a query param. This essentially a comma-separated list of values.