@PublicApi public interface CollectionParams extends FieldParams
Modifier and Type | Method and Description |
---|---|
Collection |
getAllValues()
Return all values of all keys, flattened into a single collection.
|
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.
|
void |
put(String key,
Collection<String> value)
Put the values in.
|
containsKey, getAllKeys, getKeysAndValues, isEmpty
Collection getAllValues()
getValuesForNullKey()
instead if, for example, you just need the values of the custom field.Collection getValuesForNullKey()
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.
@Nullable Collection<String> getValuesForKey(@Nullable String key)
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.
key
- that you want to search with.null
if nothing is found.void put(String key, Collection<String> value)
key
- for mappingvalue
- a Collection of Strings.Copyright © 2002-2024 Atlassian. All Rights Reserved.