接口 Conversion

    • 方法详细资料

      • convert

        Object convert​(@NotNull
                       @NotNull Object source,
                       @NotNull
                       @NotNull TypeDescriptor sourceType,
                       @NotNull
                       @NotNull TypeDescriptor targetType)
        将源对象转换为 TypeDescriptor 描述的目标类型
        参数:
        source - 要转换的源对象(可以是 null
        sourceType - 要从中转换的字段的类型描述符
        targetType - 要转换为的字段的类型描述符
        返回:
        the converted object