Class StringParamsImpl
java.lang.Object
com.atlassian.jira.issue.transport.impl.StringParamsImpl
- All Implemented Interfaces:
CollectionParams
,FieldParams
,StringParams
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Return all values of all keys, flattened into a single collection.getValuesForKey
(String key) Return the values associated with the givenkey
in the parameters.Return the values of the custom field.boolean
isEmpty()
void
put
(String key, Collection<String> value) Put the values in.
-
Field Details
-
params
-
-
Constructor Details
-
StringParamsImpl
public StringParamsImpl() -
StringParamsImpl
-
StringParamsImpl
-
-
Method Details
-
getAllKeys
- Specified by:
getAllKeys
in interfaceFieldParams
-
getKeysAndValues
- Specified by:
getKeysAndValues
in interfaceFieldParams
-
containsKey
- Specified by:
containsKey
in interfaceFieldParams
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceFieldParams
-
getAllValues
Description copied from interface:CollectionParams
Return all values of all keys, flattened into a single collection. UseCollectionParams.getValuesForNullKey()
instead if, for example, you just need the values of the custom field.- Specified by:
getAllValues
in interfaceCollectionParams
-
getValuesForNullKey
Description copied from interface:CollectionParams
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
CollectionParams.getAllValues()
, this method does not return values associated with other non-null keys.- Specified by:
getValuesForNullKey
in interfaceCollectionParams
-
getValuesForKey
Description copied from interface:CollectionParams
Return the values associated with the givenkey
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.
- Specified by:
getValuesForKey
in interfaceCollectionParams
- Parameters:
key
- that you want to search with.- Returns:
- a collection of values OR
null
if nothing is found.
-
put
Description copied from interface:CollectionParams
Put the values in.- Specified by:
put
in interfaceCollectionParams
- Parameters:
key
- for mappingvalue
- a Collection of Strings.
-
getFirstValueForNullKey
- Specified by:
getFirstValueForNullKey
in interfaceStringParams
-
getFirstValueForKey
- Specified by:
getFirstValueForKey
in interfaceStringParams
-