Uses of Class
org.aoju.bus.core.lang.mutable.MutableEntry
Packages that use MutableEntry
Package
Description
Bean拷贝实现,包括拷贝选项等
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of MutableEntry in org.aoju.bus.core.beans.copier
Fields in org.aoju.bus.core.beans.copier with type parameters of type MutableEntryModifier and TypeFieldDescriptionprotected UnaryOperator<MutableEntry<String, Object>> CopyOptions.fieldEditor字段属性名和属性值编辑器,用于自定义属性转换规则(例如驼峰转下划线等),自定义属性值转换规则(例如null转""等)Methods in org.aoju.bus.core.beans.copier that return MutableEntryMethod parameters in org.aoju.bus.core.beans.copier with type arguments of type MutableEntryModifier and TypeMethodDescriptionCopyOptions.setFieldEditor(UnaryOperator<MutableEntry<String, Object>> editor) 设置字段属性编辑器,用于自定义属性转换规则,例如驼峰转下划线等 此转换器只针对源端的字段做转换,请确认转换后与目标端字段一致 当转换后的字段名为null时忽略这个字段 需要注意的是,当使用ValueProvider作为数据提供者时,这个映射是相反的,即参数中key为目标Bean的名称,而返回值是提供者中的key,并且对值的修改无效 -
Uses of MutableEntry in org.aoju.bus.core.toolkit
Method parameters in org.aoju.bus.core.toolkit with type arguments of type MutableEntryModifier and TypeMethodDescriptionBeanKit.beanToMap(Object bean, Map<String, Object> targetMap, boolean ignoreNullValue, UnaryOperator<MutableEntry<String, Object>> keyEditor) 对象转Map 通过实现UnaryOperator可以自定义字段值,如果这个Editor返回null则忽略这个字段,以便实现: