Uses of Interface
org.aoju.bus.core.lang.function.XFunction
Packages that use XFunction
Package
Description
Bean拷贝实现,包括拷贝选项等
函数封装 一个函数接口代表一个函数,用于包装一个函数为对象 在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为对象,从而传递对象
Map相关封装,提供特殊Map实现以及列表类型值的Map实现
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of XFunction in org.aoju.bus.core.beans.copier
Methods in org.aoju.bus.core.beans.copier with parameters of type XFunctionModifier and TypeMethodDescription<P,R> CopyOptions CopyOptions.setIgnoreProperties(XFunction<P, R>... funcs) 设置忽略的目标对象中属性列表,设置一个属性列表,不拷贝这些属性值,Lambda方式 -
Uses of XFunction in org.aoju.bus.core.lang.function
Methods in org.aoju.bus.core.lang.function that return XFunctionModifier and TypeMethodDescriptionstatic <T> XFunction<T, T> XFunction.identity()返回一个始终返回其输入参数的函数Methods in org.aoju.bus.core.lang.function with parameters of type XFunction -
Uses of XFunction in org.aoju.bus.core.map
Methods in org.aoju.bus.core.map with parameters of type XFunction -
Uses of XFunction in org.aoju.bus.core.toolkit
Methods in org.aoju.bus.core.toolkit with parameters of type XFunctionModifier and TypeMethodDescriptionstatic <A extends Annotation,R>
RAnnoKit.getAnnotationValue(AnnotatedElement annotationEle, XFunction<A, R> propertyName) 获取指定注解属性的值 如果无指定的属性方法返回nullstatic <E extends Enum<E>,C>
E通过 某字段对应值 获取 枚举,获取不到时为nullstatic <E extends Enum<E>,C>
E通过 某字段对应值 获取 枚举,获取不到时为defaultEnumstatic <E extends Enum<E>,F, C>
FEnumKit.getFieldBy(XFunction<E, F> field, Function<E, C> condition, C value) 通过 某字段对应值 获取 枚举中另一字段值,获取不到时为nullstatic String替换所有正则匹配的文本,并使用自定义函数决定如何替换static String替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static StringPatternKit.replaceAll(CharSequence text, String regex, XFunction<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static StringPatternKit.replaceAll(CharSequence text, Pattern pattern, XFunction<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static <K,V, E> Map <K, V> 集合转换为Map,转换规则为: 按照keyFunc函数规则根据元素对象生成Key,按照valueFunc函数规则根据元素对象生成value组成新的Mapstatic <K,V> Map <K, V> Iterator转换为Map,转换规则为: 按照keyFunc函数规则根据元素对象生成Key,元素作为值