类 ToStringConversion

    • 构造器详细资料

      • ToStringConversion

        public ToStringConversion()
    • 方法详细资料

      • support

        public boolean support​(@NotNull
                               @NotNull TypeDescriptor sourceType,
                               @NotNull
                               @NotNull TypeDescriptor targetType)
        从接口复制的说明: ConversionSupport
        判断是否可以将源对象类型转换为 TypeDescriptor 描述的目标类型
        指定者:
        support 在接口中 ConversionSupport
        参数:
        sourceType - 要从中转换的字段的类型描述符
        targetType - 要转换为的字段的类型描述符
        返回:
        the converted object
      • convert

        public Object convert​(@NotNull
                              @NotNull Object source,
                              @NotNull
                              @NotNull TypeDescriptor sourceType,
                              @NotNull
                              @NotNull TypeDescriptor targetType)
        从接口复制的说明: Conversion
        将源对象转换为 TypeDescriptor 描述的目标类型
        指定者:
        convert 在接口中 Conversion
        参数:
        source - 要转换的源对象(可以是 null
        sourceType - 要从中转换的字段的类型描述符
        targetType - 要转换为的字段的类型描述符
        返回:
        the converted object