Uses of Interface
org.miaixz.bus.core.center.function.FunctionX
Packages that use FunctionX
Package
Description
Bean拷贝实现,包括拷贝选项等
Array、Date、List、Map以及Iterator等封装
函数封装 接口灵感来自于ActFramework 一个函数接口代表一个一个函数,用于包装一个函数为对象
在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象
Map相关封装,提供特殊Map实现
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
语言特性包,包括大量便捷的数据结构,包括:
ANSI:ANSI编码
Builder:构建器
Caller:查找调用者
Copier:拷贝(复制)
Generator:生成器
Getter:getXXX抽象
Intern:规范化表示形式
Loader:加载器的抽象
Mutable:可变值对象封装
Range:区间和边界封装
Tuple:元组
提供文本相关操作的封装
提供通用树生成,特点:
提供各种工具封装 xyz:做好一切必要准备,可以行动了
-
Uses of FunctionX in org.miaixz.bus.core.bean.copier
Methods in org.miaixz.bus.core.bean.copier with parameters of type FunctionXModifier and TypeMethodDescription<P,R> CopyOptions CopyOptions.setIgnoreProperties(FunctionX<P, R>... funcs) 设置忽略的目标对象中属性列表,设置一个属性列表,不拷贝这些属性值,Lambda方式 -
Uses of FunctionX in org.miaixz.bus.core.center
Methods in org.miaixz.bus.core.center with parameters of type FunctionXModifier and TypeMethodDescriptionCollectionStream.groupKeyValue(Collection<E> collection, FunctionX<E, K> key, FunctionX<E, V> value) 将collection按照规则(比如有相同的班级id)分组成map,map中的key为班级id,value为班级名Collection<E> -------> Map<K,List<V>>CollectionStream.groupKeyValue(Collection<E> collection, FunctionX<E, K> key, FunctionX<E, V> value, boolean isParallel) 将collection按照规则(比如有相同的班级id)分组成map,map中的key为班级id,value为班级名Collection<E> -------> Map<K,List<V>>static <V,K> Map <K, V> CollectionStream.toIdentityMap(Collection<V> collection, FunctionX<V, K> key) 将collection转化为类型不变的mapCollection<V> ----> Map<K,V>static <V,K> Map <K, V> CollectionStream.toIdentityMap(Collection<V> collection, FunctionX<V, K> key, boolean isParallel) 将collection转化为类型不变的mapCollection<V> ----> Map<K,V> -
Uses of FunctionX in org.miaixz.bus.core.center.function
Methods in org.miaixz.bus.core.center.function that return FunctionXModifier and TypeMethodDescriptionstatic <T> FunctionX<T, T> FunctionX.identity()Returns a function that always returns its input argument.Methods in org.miaixz.bus.core.center.function with parameters of type FunctionX -
Uses of FunctionX in org.miaixz.bus.core.center.map
Methods in org.miaixz.bus.core.center.map with parameters of type FunctionX -
Uses of FunctionX in org.miaixz.bus.core.io.file
Methods in org.miaixz.bus.core.io.file with parameters of type FunctionXModifier and TypeMethodDescription<T> TFileReader.read(FunctionX<BufferedReader, T> readerHandler) 按照给定的readerHandler读取文件中的数据 -
Uses of FunctionX in org.miaixz.bus.core.lang
Methods in org.miaixz.bus.core.lang with parameters of type FunctionXModifier and TypeMethodDescription<U> Optional<U> Optional.flattedMap(FunctionX<? super T, ? extends Optional<? extends U>> mapper) 如果包裹里的值存在,就执行传入的操作(Function.apply(T))并返回该操作返回值 如果不存在,返回一个空的Optional和Optional.map(org.miaixz.bus.core.center.function.FunctionX<? super T, ? extends U>)的区别为 传入的操作返回值必须为Optional<U> Optional<U> -
Uses of FunctionX in org.miaixz.bus.core.text
Methods in org.miaixz.bus.core.text with parameters of type FunctionX -
Uses of FunctionX in org.miaixz.bus.core.tree
Methods in org.miaixz.bus.core.tree that return FunctionXModifier and TypeMethodDescriptionLambdaNodeConfig.getChildrenKeyFun()获取子节点名称方法LambdaNodeConfig.getIdKeyFun()获取ID方法LambdaNodeConfig.getNameKeyFun()获取节点名称方法LambdaNodeConfig.getParentIdKeyFun()获取父ID方法FunctionX<T, Comparable<?>> LambdaNodeConfig.getWeightKeyFun()设置权重方法Methods in org.miaixz.bus.core.tree with parameters of type FunctionXModifier and TypeMethodDescriptionstatic <T,R extends Comparable<R>>
BeanTree<T, R> BeanTree.of(FunctionX<T, R> idGetter, FunctionX<T, R> pidGetter, R pidValue, FunctionX<T, List<T>> childrenGetter, BiConsumerX<T, List<T>> childrenSetter) 构建BeanTreestatic <T,R extends Comparable<R>>
BeanTree<T, R> BeanTree.ofMatch(FunctionX<T, R> idGetter, FunctionX<T, R> pidGetter, PredicateX<T> parentPredicate, FunctionX<T, List<T>> childrenGetter, BiConsumerX<T, List<T>> childrenSetter) 构建BeanTreeLambdaNodeConfig.setChildrenKeyFun(FunctionX<T, List<T>> childrenKeyFun) 设置子节点名称方法LambdaNodeConfig.setIdKeyFun(FunctionX<T, R> idKeyFun) 设置ID方法LambdaNodeConfig.setNameKeyFun(FunctionX<T, CharSequence> nameKeyFun) 设置节点名称方法LambdaNodeConfig.setParentIdKeyFun(FunctionX<T, R> parentIdKeyFun) 设置父ID方法LambdaNodeConfig.setWeightKeyFun(FunctionX<T, Comparable<?>> weightKeyFun) 设置权重方法 -
Uses of FunctionX in org.miaixz.bus.core.xyz
Methods in org.miaixz.bus.core.xyz with parameters of type FunctionXModifier and TypeMethodDescriptionstatic <A extends Annotation,R>
RAnnoKit.getAnnotationValue(AnnotatedElement annotationEle, FunctionX<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(FunctionX<E, F> field, Function<E, C> condition, C value) 通过 某字段对应值 获取 枚举中另一字段值,获取不到时为nullstatic <T> TFileKit.read(File file, Charset charset, FunctionX<BufferedReader, T> readerHandler) 按照给定的readerHandler读取文件中的数据static <T> TFileKit.read(String path, Charset charset, FunctionX<BufferedReader, T> readerHandler) 按照给定的readerHandler读取文件中的数据static <T> TFileKit.readUtf8(File file, FunctionX<BufferedReader, T> readerHandler) 按照给定的readerHandler读取文件中的数据static <T> TFileKit.readUtf8(String path, FunctionX<BufferedReader, T> readerHandler) 按照给定的readerHandler读取文件中的数据static StringPatternKit.replaceAll(CharSequence text, String regex, FunctionX<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。static StringPatternKit.replaceAll(CharSequence text, Pattern pattern, FunctionX<Matcher, String> replaceFun) 替换所有正则匹配的文本,并使用自定义函数决定如何替换 replaceFun可以通过Matcher提取出匹配到的内容的不同部分,然后经过重新处理、组装变成新的内容放回原位。