跳过导航链接
A C D E G I L O P R S T U W 

A

accept(T, U) - 接口 中的方法com.robot.transform.util.LambdaUtil.BiConsumerWithExceptions
 
accept(T) - 接口 中的方法com.robot.transform.util.LambdaUtil.ConsumerWithExceptions
 
ANNOTATION_CACHE - 类 中的静态变量com.robot.transform.util.TransformUtil
 
apply(T, U) - 接口 中的方法com.robot.transform.util.LambdaUtil.BiFunctionWithExceptions
 
apply(T) - 接口 中的方法com.robot.transform.util.LambdaUtil.FunctionWithExceptions
 

C

capitalize(String) - 类 中的静态方法com.robot.transform.util.TransformUtil
首字母大写
checkAnnotationOfTransformer(Annotation, Field, Class<?>) - 类 中的方法com.robot.transform.util.TransformUtil
检查自定义注解
code - 类 中的变量com.robot.transform.component.DictBean
 
com.robot.transform - 程序包 com.robot.transform
 
com.robot.transform.annotation - 程序包 com.robot.transform.annotation
 
com.robot.transform.component - 程序包 com.robot.transform.component
 
com.robot.transform.transformer - 程序包 com.robot.transform.transformer
 
com.robot.transform.util - 程序包 com.robot.transform.util
 
context - 类 中的静态变量com.robot.transform.util.SpringContextUtil
 
convert(T) - 接口 中的方法com.robot.transform.component.UnWrapper
将convert更名为unWrap

D

Dict<T> - com.robot.transform.component中的接口
字典接口 自定义的字典枚举类实现本接口后可省略属性code和text,以及对应的get方法 在构造方法中只需调用init方法即可初始化
Dict.DictPool - com.robot.transform.component中的类
 
DICT_MAP - 类 中的静态变量com.robot.transform.component.Dict.DictPool
 
DICT_NAME_CLASS_MAP - 类 中的静态变量com.robot.transform.component.Dict.DictPool
 
DictBean<T> - com.robot.transform.component中的类
字典bean 只有code和text,可用于展示下拉框
DictBean() - 类 的构造器com.robot.transform.component.DictBean
 
DictPool() - 类 的构造器com.robot.transform.component.Dict.DictPool
 
doAfter(Object) - 类 中的方法com.robot.transform.TranslatorAspect
 

E

EnumTransformer<T> - com.robot.transform.transformer中的类
枚举转换器
EnumTransformer() - 类 的构造器com.robot.transform.transformer.EnumTransformer
 

G

genericConversionService - 类 中的变量com.robot.transform.TranslatorAspect
 
get() - 接口 中的方法com.robot.transform.util.LambdaUtil.SupplierWithExceptions
 
getAll(Class<? extends Dict<T>>) - 接口 中的静态方法com.robot.transform.component.Dict
获取所有字典枚举项(常用下拉框数据请求) 枚举值上标记@Deprecated的不会返回
getAnnotationOfTransformer(Transformer<Object, Annotation>, Field, Transform) - 类 中的方法com.robot.transform.util.TransformUtil
获取转换器绑定的注解 如果是SimpleTransformer的子类,则绑定的注解默认都是@Transform
getBean(Class<T>) - 类 中的静态方法com.robot.transform.util.SpringContextUtil
获取示例,如果找不到会报错
getByCode(Class<? extends Dict<T>>, T) - 接口 中的静态方法com.robot.transform.component.Dict
通过code获取字典枚举实例
getCode() - 接口 中的方法com.robot.transform.component.Dict
获取编码
getCodeByText(Class<? extends Dict<T>>, String) - 接口 中的静态方法com.robot.transform.component.Dict
通过text获取code
getDict(String) - 类 中的静态方法com.robot.transform.component.Dict.DictPool
 
getDict(K) - 类 中的静态方法com.robot.transform.component.Dict.DictPool
 
getItems(E...) - 接口 中的静态方法com.robot.transform.component.Dict
获取给定的字典枚举项(常用下拉框数据请求)
getItemsExclude(E...) - 接口 中的静态方法com.robot.transform.component.Dict
获取所有字典枚举项,除开指定的枚举
getOriginalFieldName(Object, Field, Transform) - 类 中的方法com.robot.transform.util.TransformUtil
获取原字段名称 如果没有显示指定将自动推断
getText() - 接口 中的方法com.robot.transform.component.Dict
获取文本
getTextByCode(Class<? extends Dict<T>>, T) - 接口 中的静态方法com.robot.transform.component.Dict
通过code获取value
getTransformAnnotation(Field) - 类 中的方法com.robot.transform.util.TransformUtil
获取属性上的@Transform注解,如果有衍生注解则合并相同属性 ps.这里实际缓存的是注解的代理对象

I

IDictTransformer<T> - com.robot.transform.transformer中的接口
数据字典转换器接口
init(T, String) - 接口 中的方法com.robot.transform.component.Dict
初始化

L

LambdaUtil - com.robot.transform.util中的类
Lambda异常处理工具类
LambdaUtil() - 类 的构造器com.robot.transform.util.LambdaUtil
 
LambdaUtil.BiConsumerWithExceptions<T,U,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.BiFunctionWithExceptions<T,U,R,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.BiPredicateWithExceptions<T,U,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.ConsumerWithExceptions<T,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.FunctionWithExceptions<T,R,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.PredicateWithExceptions<T,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.RunnableWithExceptions<E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.SupplierWithExceptions<T,E extends Exception> - com.robot.transform.util中的接口
 
LambdaUtil.UnreachableException - com.robot.transform.util中的异常错误
 

O

onApplicationEvent(ContextRefreshedEvent) - 类 中的方法com.robot.transform.TransformAutoConfiguration
 

P

putDict(Dict<T>, T, String) - 类 中的静态方法com.robot.transform.component.Dict.DictPool
 

R

readMethodInvoke(Object, String) - 类 中的静态方法com.robot.transform.util.TransformUtil
读取属性值
run() - 接口 中的方法com.robot.transform.util.LambdaUtil.RunnableWithExceptions
 

S

setApplicationContext(ApplicationContext) - 类 中的方法com.robot.transform.util.SpringContextUtil
 
SimpleTransformer<T> - com.robot.transform.transformer中的接口
简单转换器接口
SpringContextUtil - com.robot.transform.util中的类
Spring上下文工具
SpringContextUtil() - 类 的构造器com.robot.transform.util.SpringContextUtil
 
sure(LambdaUtil.SupplierWithExceptions<R, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
如果一段代码确保不会抛出所申明的异常,可以使用该方法进行包装 如:new String(byteArr, "UTF-8")申明了UnsupportedEncodingException, 但编码"UTF-8"是必定不会抛异常的,使用sure进行包装 String text = sure(() -> new String(byteArr, "UTF-8")) 注: sure方法有一定的风险,因为它隐藏了可能的异常申明,所以请谨慎使用,确保(sure)不会抛出异常才可以使用
sure(LambdaUtil.RunnableWithExceptions<E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
同上

T

test(T, U) - 接口 中的方法com.robot.transform.util.LambdaUtil.BiPredicateWithExceptions
 
test(T) - 接口 中的方法com.robot.transform.util.LambdaUtil.PredicateWithExceptions
 
text - 类 中的变量com.robot.transform.component.DictBean
 
throwAsUnchecked(Exception) - 类 中的静态方法com.robot.transform.util.LambdaUtil
 
Transform - com.robot.transform.annotation中的注释类型
转换注解 最基本的注解,可以被其他自定义注解衍生
transform(T, TransformEnum) - 类 中的方法com.robot.transform.transformer.EnumTransformer
 
transform(T, TransformDict) - 接口 中的方法com.robot.transform.transformer.IDictTransformer
转换
transform(T, String) - 接口 中的方法com.robot.transform.transformer.IDictTransformer
转换
transform(T, Transform) - 接口 中的方法com.robot.transform.transformer.SimpleTransformer
转换
transform(T) - 接口 中的方法com.robot.transform.transformer.SimpleTransformer
转换
transform(T, A) - 接口 中的方法com.robot.transform.transformer.Transformer
翻译
transform(Object) - 类 中的静态方法com.robot.transform.util.TransformUtil
转换对象,支持集合(Collection)或者单个bean 并直接改变对象内部属性
TransformAutoConfiguration - com.robot.transform中的类
转换器配置类
TransformAutoConfiguration() - 类 的构造器com.robot.transform.TransformAutoConfiguration
 
TransformDict - com.robot.transform.annotation中的注释类型
数据字典转换 注意:该注解的转换器需要由业务来定义,如果有数据字典转换的需求,先定义一个数据字典的转换器
TransformEnum - com.robot.transform.annotation中的注释类型
枚举转换
Transformer<T,A extends Annotation> - com.robot.transform.transformer中的接口
转换器接口 支持自定义注解
transformField(Object, Field) - 类 中的方法com.robot.transform.util.TransformUtil
翻译属性
TransformUtil - com.robot.transform.util中的类
转换工具类
TransformUtil() - 类 的构造器com.robot.transform.util.TransformUtil
 
TranslatorAspect - com.robot.transform中的类
转换器AOP
TranslatorAspect() - 类 的构造器com.robot.transform.TranslatorAspect
 

U

UnreachableException() - 异常错误 的构造器com.robot.transform.util.LambdaUtil.UnreachableException
 
unWrap(T) - 接口 中的方法com.robot.transform.component.UnWrapper
解包
UnWrapper<T> - com.robot.transform.component中的接口
解包器 当方法返回值是包装类(如Page、ResultWrapper等)时,指定解包的逻辑 注意解包之后的返回参数必须是某个bean或者集合类型
updateAnnotationProxy(Annotation, String, Object) - 类 中的静态方法com.robot.transform.util.TransformUtil
动态更新注解值,用于缓存提升性能 注意该方法仅针对spring对注解的代理有效

W

wrapBiConsumer(LambdaUtil.BiConsumerWithExceptions<T, U, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装双重消费函数(BiConsumer)
wrapBiFunction(LambdaUtil.BiFunctionWithExceptions<T, U, R, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装双入参普通函数(BiFunction)
wrapBiPredicate(LambdaUtil.BiPredicateWithExceptions<T, U, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装双入参条件函数(BiPredicate)
wrapConsumer(LambdaUtil.ConsumerWithExceptions<T, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装消费函数(Consumer)
wrapFunction(LambdaUtil.FunctionWithExceptions<T, R, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装普通函数(Function) 注:方法签名中的" throws E "编译器会提示多余,但其实是为了将实际的异常向外传递,如果不这么做: 1.外层代码中编译器将无法提示有异常需要处理 2.也无法主动在外层捕获具体的异常,如果尝试try一个具体的异常,编译器将提示: 在try语句体中永远不会抛出相应异常(Exception 'XXX' is never thrown in the corresponding try block)
wrapPredicate(LambdaUtil.PredicateWithExceptions<T, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装条件函数(Predicate)
wrapRunnable(LambdaUtil.RunnableWithExceptions<E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装纯执行函数(Runnable)
wrapSupplier(LambdaUtil.SupplierWithExceptions<T, E>) - 类 中的静态方法com.robot.transform.util.LambdaUtil
包装生产函数(Supplier)
writeMethodInvoke(Object, String, Class<T>, T) - 类 中的静态方法com.robot.transform.util.TransformUtil
给属性设值
A C D E G I L O P R S T U W 
跳过导航链接

Copyright © 2022. All rights reserved.