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 TypeMethodDescriptionbooleancontainsKey(String key) Return all values of all keys, flattened into a single collection.getValuesForKey(String key) Return the values associated with the givenkeyin the parameters.Return the values of the custom field.booleanisEmpty()voidput(String key, Collection<String> value) Put the values in.
-
Field Details
-
params
-
-
Constructor Details
-
StringParamsImpl
public StringParamsImpl() -
StringParamsImpl
-
StringParamsImpl
-
-
Method Details
-
getAllKeys
- Specified by:
getAllKeysin interfaceFieldParams
-
getKeysAndValues
- Specified by:
getKeysAndValuesin interfaceFieldParams
-
containsKey
- Specified by:
containsKeyin interfaceFieldParams
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceFieldParams
-
getAllValues
Description copied from interface:CollectionParamsReturn 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:
getAllValuesin interfaceCollectionParams
-
getValuesForNullKey
Description copied from interface:CollectionParamsReturn 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:
getValuesForNullKeyin interfaceCollectionParams
-
getValuesForKey
Description copied from interface:CollectionParamsReturn the values associated with the givenkeyin 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:
getValuesForKeyin interfaceCollectionParams- Parameters:
key- that you want to search with.- Returns:
- a collection of values OR
nullif nothing is found.
-
put
Description copied from interface:CollectionParamsPut the values in.- Specified by:
putin interfaceCollectionParams- Parameters:
key- for mappingvalue- a Collection of Strings.
-
getFirstValueForNullKey
- Specified by:
getFirstValueForNullKeyin interfaceStringParams
-
getFirstValueForKey
- Specified by:
getFirstValueForKeyin interfaceStringParams
-