接口 ConversionSupport

    • 方法详细资料

      • support

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