@Immutable public interface ParameterConverter
When dealing with Numbers and their primitive types, its imperative to differentiate between conversions on empty strings. Empty string be converted to a null 'Long' but not to a 'long'.
Introduced / changed as part of JRA-15664
Modifier and Type | Method and Description |
---|---|
Object |
convertParameter(String[] parameterValues,
Class paramType)
This is called to perform the conversion.
|
Object convertParameter(String[] parameterValues, Class paramType) throws IllegalArgumentException
parameterValues
- a String[] that is never null and at least length 1 or more.paramType
- the type of the target objectIllegalArgumentException
- if the value cant be convertedCopyright © 2002-2022 Atlassian. All Rights Reserved.