Interface ArgumentConverter

    • Method Detail

      • convert

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