Uses of Interface
org.aoju.bus.core.lang.Editor
Packages that use Editor
Package
Description
Bean拷贝实现,包括拷贝选项等
Bean值提供者方式封装
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of Editor in org.aoju.bus.core.beans.copier
Methods in org.aoju.bus.core.beans.copier with parameters of type EditorModifier and TypeMethodDescriptionCopyOptions.setFieldNameEditor(Editor<String> fieldNameEditor) 设置字段属性编辑器,用于自定义属性转换规则,例如驼峰转下划线等 此转换器只针对源端的字段做转换,请确认转换后与目标端字段一致 当转换后的字段名为null时忽略这个字段 需要注意的是,当使用ValueProvider作为数据提供者时,这个映射是相反的,即fieldMapping中key为目标Bean的名称,而value是提供者中的key -
Uses of Editor in org.aoju.bus.core.beans.copier.provider
Constructors in org.aoju.bus.core.beans.copier.provider with parameters of type EditorModifierConstructorDescriptionBeanValueProvider(Object bean, boolean ignoreCase, boolean ignoreError, Editor<String> keyEditor) 构造 -
Uses of Editor in org.aoju.bus.core.toolkit
Methods in org.aoju.bus.core.toolkit with parameters of type EditorModifier and TypeMethodDescriptionBeanKit.beanToMap(Object bean, Map<String, Object> targetMap, boolean ignoreNullValue, Editor<String> keyEditor) 对象转Map 通过实现Editor可以自定义字段值,如果这个Editor返回null则忽略这个字段,以便实现:static <T> T编辑Bean的字段,static字段不会处理 例如需要对指定的字段做判空操作、null转""操作等等。通过Editor抽取集合元素中的某些值返回为新列表 例如提供的是一个Bean列表,通过Editor接口实现获取某个字段值,返回这个字段值组成的新列表通过Editor抽取集合元素中的某些值返回为新列表 例如提供的是一个Bean列表,通过Editor接口实现获取某个字段值,返回这个字段值组成的新列表static <T> T[]过滤 过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能:static <T> Collection<T>CollKit.filter(Collection<T> collection, Editor<T> editor) 过滤 过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能:static <T> List<T>过滤 过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能:static <K,V> Map<K, V> 过滤 过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能:static <K,V> Map<K, V> 过滤 过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能:static <T> StringArrayKit.join(T[] array, CharSequence conjunction, Editor<T> editor) 以 conjunction 为分隔符将数组转换为字符串