public class StringParamsImpl extends Object implements StringParams
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Collection<String>> |
params |
| Constructor and Description |
|---|
StringParamsImpl() |
StringParamsImpl(ActionParams actionParams) |
StringParamsImpl(Map params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
Set |
getAllKeys() |
Collection |
getAllValues()
Return all values of all keys, flattened into a single collection.
|
String |
getFirstValueForKey(String key) |
String |
getFirstValueForNullKey() |
Map |
getKeysAndValues() |
Collection<String> |
getValuesForKey(String key)
Return the values associated with the given
key in the parameters. |
Collection |
getValuesForNullKey()
Return the values of the custom field.
|
boolean |
isEmpty() |
void |
put(String key,
Collection<String> value)
Put the values in.
|
protected Map<String,Collection<String>> params
public StringParamsImpl()
public StringParamsImpl(Map params)
public StringParamsImpl(ActionParams actionParams)
public Set getAllKeys()
getAllKeys in interface FieldParamspublic Map getKeysAndValues()
getKeysAndValues in interface FieldParamspublic boolean containsKey(String key)
containsKey in interface FieldParamspublic boolean isEmpty()
isEmpty in interface FieldParamspublic Collection getAllValues()
CollectionParamsCollectionParams.getValuesForNullKey() instead if, for example, you just need the values of the custom field.getAllValues in interface CollectionParamspublic Collection getValuesForNullKey()
CollectionParamsThe values associated with the null key represents the values of the custom field. For example, the user selected in a single user picker, or the list of users selected in a multiple user picker.
Note that unlike CollectionParams.getAllValues(), this method does not return values associated with other non-null keys.
getValuesForNullKey in interface CollectionParamspublic Collection<String> getValuesForKey(@Nullable String key)
CollectionParamskey in the parameters.
Depending on the type of field, additional keys might be introduced in addition to the null key. JIRA might also add additional keys into the parameters. For example, issue id and project id might be passed into the parameters under separate keys during custom field validation.
getValuesForKey in interface CollectionParamskey - that you want to search with.null if nothing is found.public void put(String key, Collection<String> value)
CollectionParamsput in interface CollectionParamskey - for mappingvalue - a Collection of Strings.public String getFirstValueForNullKey()
getFirstValueForNullKey in interface StringParamspublic String getFirstValueForKey(String key)
getFirstValueForKey in interface StringParamsCopyright © 2002-2024 Atlassian. All Rights Reserved.