Class DefaultArgumentConverter

    • Method Detail

      • convert

        public Object convert​(Object source,
                              Class<?> targetType)
        Description copied from class: SimpleArgumentConverter
        Convert the supplied source object into the supplied targetType.
        Specified by:
        convert in class SimpleArgumentConverter
        Parameters:
        source - the source object to convert; may be null
        targetType - the target type the source object should be converted into; never null
        Returns:
        the converted object; may be null but only if the target type is a reference type