Record Class GenericConversionService.NoOpConverter
java.lang.Object
java.lang.Record
cn.taketoday.core.conversion.support.GenericConversionService.NoOpConverter
- 所有已实现的接口:
GenericConverter
private static record GenericConversionService.NoOpConverter(String name)
extends Record
implements GenericConverter
Internal converter that performs no operation.
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.core.conversion.GenericConverter
GenericConverter.ConvertiblePair -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor.final boolean指示某个其他对象是否“等于”此对象。Return the source and target types that this converter can convert between.final inthashCode()返回此对象的哈希代码值。name()返回name记录组件的值。toString()返回此记录的字符串表示形式。
-
字段详细资料
-
name
name记录组件的字段。
-
-
构造器详细资料
-
NoOpConverter
创建NoOpConverter记录的实例。- 参数:
name-name记录组件的值
-
-
方法详细资料
-
getConvertibleTypes
从接口复制的说明:GenericConverterReturn the source and target types that this converter can convert between.Each entry is a convertible source-to-target type pair.
For
conditional convertersthis method may returnnullto indicate all source-to-target pairs should be considered.- 指定者:
getConvertibleTypes在接口中GenericConverter
-
convert
@Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) 从接口复制的说明:GenericConverterConvert the source object to the targetType described by theTypeDescriptor.- 指定者:
convert在接口中GenericConverter- 参数:
source- the source object to convert (may benull)sourceType- the type descriptor of the field we are converting fromtargetType- the type descriptor of the field we are converting to- 返回:
- the converted object
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
name
返回name记录组件的值。- 返回:
name记录组件的值
-