java.lang.Object
org.miaixz.bus.mapper.binding.function.Fn.FnName<T,R>
- Type Parameters:
T- 实体类型R- 返回值类型
- All Implemented Interfaces:
Serializable,Function<T,,R> Fn<T,R>
支持直接指定字段名或列名的方法引用
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean是否为列名,false 表示字段名,true 表示列名final Class<?> final StringFields inherited from interface org.miaixz.bus.mapper.binding.function.Fn
FN_CLASS_FIELD_MAP, FN_COLUMN_MAP -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.mapper.binding.function.Fn
toClassField, toColumn, toEntityColumn, toField
-
Field Details
-
entityClass
-
name
-
column
public final boolean column是否为列名,false 表示字段名,true 表示列名
-
-
Constructor Details
-
FnName
构造函数,指定字段名- Parameters:
entityClass- 实体类类型name- 字段名
-
FnName
构造函数,指定字段名或列名- Parameters:
entityClass- 实体类类型name- 字段名或列名column- 是否为列名
-
-
Method Details
-
in
指定方法引用所属的实体类 -
apply
应用方法引用到指定对象(占位实现,返回 null) -
equals
比较两个 FnName 对象是否相等 -
hashCode
public int hashCode()计算对象的哈希值
-