Uses of Interface
org.aoju.bus.core.lang.function.Func1
Packages that use Func1
Package
Description
Bean拷贝实现,包括拷贝选项等
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of Func1 in org.aoju.bus.core.beans.copier
Methods in org.aoju.bus.core.beans.copier with parameters of type Func1Modifier and TypeMethodDescription<P,R> CopyOptions CopyOptions.setIgnoreProperties(Func1<P, R>... funcs) 设置忽略的目标对象中属性列表,设置一个属性列表,不拷贝这些属性值,Lambda方式 -
Uses of Func1 in org.aoju.bus.core.toolkit
Methods in org.aoju.bus.core.toolkit with parameters of type Func1Modifier and TypeMethodDescriptionstatic <E extends Enum<E>,C>
E通过 某字段对应值 获取 枚举,获取不到时为nullstatic <E extends Enum<E>,F, C>
FEnumKit.getFieldBy(Func1<E, F> field, Function<E, C> condition, C value) 通过 某字段对应值 获取 枚举中另一字段值,获取不到时为nullstatic <T> StringLambdaKit.getFieldName(Func1<T, ?> func) 获取lambda表达式Getter或Setter函数(方法)对应的字段名称,规则如下: getXxxx获取为xxxx,如getName得到name setXxxx获取为xxxx,如setName得到name isXxxx获取为xxxx,如isName得到name 其它不满足规则的方法名抛出IllegalArgumentExceptionstatic <P> StringLambdaKit.getMethodName(Func1<P, ?> func) 获取lambda表达式函数(方法)名称static <P,R> Class<P> LambdaKit.getRealClass(Func1<P, R> func) 通过对象的方法或类的静态方法引用,然后根据SerializedLambda.getInstantiatedMethodType()获取lambda实现类 传入lambda有参数且含有返回值的情况能够匹配到此方法:static String替换所有正则匹配的文本,并使用自定义函数决定如何替换static String替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static StringPatternKit.replaceAll(CharSequence text, String regex, Func1<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static StringPatternKit.replaceAll(CharSequence text, Pattern pattern, Func1<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static <T> SerializedLambda解析lambda表达式,加了缓存 该缓存可能会在任意不定的时间被清除static <K,V, E> Map<K, V> 集合转换为Map,转换规则为: 按照keyFunc函数规则根据元素对象生成Key,按照valueFunc函数规则根据元素对象生成value组成新的Mapstatic <K,V> Map<K, V> Iterator转换为Map,转换规则为: 按照keyFunc函数规则根据元素对象生成Key,元素作为值