Interface ArgumentConverter

    • Method Detail

      • convert

        Object convert​(Object source,
                       ParameterContext context)
                throws ArgumentConversionException
        Convert the supplied source object according to the supplied context.
        source - the source object to convert; may be null
        context - the parameter context where the converted object will be used; never null
        the converted object; may be null but only if the target type is a reference type
        ArgumentConversionException - if an error occurs during the conversion