public class

StringParamsImpl

extends Object
implements StringParams
java.lang.Object
   ↳ com.atlassian.jira.issue.transport.impl.StringParamsImpl

Summary

Fields
protected Map<StringCollection<String>> params
Public Constructors
StringParamsImpl()
StringParamsImpl(Map params)
StringParamsImpl(ActionParams actionParams)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.transport.CollectionParams
From interface com.atlassian.jira.issue.transport.FieldParams
From interface com.atlassian.jira.issue.transport.StringParams

Fields

protected Map<StringCollection<String>> params

Public Constructors

public StringParamsImpl ()

public StringParamsImpl (Map params)

public StringParamsImpl (ActionParams actionParams)

Public Methods

public boolean containsKey (String key)

public Set getAllKeys ()

public Collection getAllValues ()

Return all values of all keys, flattened into a single collection. Use getValuesForNullKey() instead if, for example, you just need the values of the custom field.

public String getFirstValueForKey (String key)

public String getFirstValueForNullKey ()

public Map getKeysAndValues ()

public Collection<String> getValuesForKey (String key)

Return the values associated with the given key 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.

public Collection getValuesForNullKey ()

Return the values of the custom field.

The 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 getAllValues(), this method does not return values associated with other non-null keys.

public boolean isEmpty ()

public void put (String key, Collection<String> value)

Put the values in.

Parameters
key for mapping
value a Collection of Strings.