Record Class GenericConversionService.NoOpConverter

java.lang.Object
java.lang.Record
cn.taketoday.core.conversion.support.GenericConversionService.NoOpConverter
所有已实现的接口:
GenericConverter
封闭类:
GenericConversionService

private static record GenericConversionService.NoOpConverter(String name) extends Record implements GenericConverter
Internal converter that performs no operation.
  • 字段详细资料

    • name

      private final String name
      name 记录组件的字段。
  • 构造器详细资料

    • NoOpConverter

      private NoOpConverter(String name)
      创建 NoOpConverter 记录的实例。
      参数:
      name - name 记录组件的值
  • 方法详细资料

    • getConvertibleTypes

      @Nullable public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
      从接口复制的说明: GenericConverter
      Return the source and target types that this converter can convert between.

      Each entry is a convertible source-to-target type pair.

      For conditional converters this method may return null to indicate all source-to-target pairs should be considered.

      指定者:
      getConvertibleTypes 在接口中 GenericConverter
    • convert

      @Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
      从接口复制的说明: GenericConverter
      Convert the source object to the targetType described by the TypeDescriptor.
      指定者:
      convert 在接口中 GenericConverter
      参数:
      source - the source object to convert (may be null)
      sourceType - the type descriptor of the field we are converting from
      targetType - the type descriptor of the field we are converting to
      返回:
      the converted object
    • toString

      public String toString()
      返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。
      指定者:
      toString 在类中 Record
      返回:
      此对象的字符串表示形式
    • hashCode

      public final int hashCode()
      返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。
      指定者:
      hashCode 在类中 Record
      返回:
      此对象的哈希代码值
    • equals

      public final boolean equals(Object o)
      指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用 Objects::equals(Object,Object) 进行比较。
      指定者:
      equals 在类中 Record
      参数:
      o - 要与之进行比较的对象
      返回:
      如果此对象与 o 参数相同,则为 true;否则为 false
    • name

      public String name()
      返回 name 记录组件的值。
      返回:
      name 记录组件的值