- gen(int) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
-
生成指定长度的密钥对
- get() - 类 中的方法fun.hereis.code.utils.cache.GuavaCache
-
获取缓存值
- getAccessibleField(Object, String) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
循环向上转型, 获取对象的DeclaredField, 并强制设置为可访问.
- getAccessibleMethod(Object, String, Class<?>...) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问.
- getAccessibleMethodByName(Object, String) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问.
- getClassGenericType(Class) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
通过反射, 获得Class定义中声明的泛型参数的类型, 注意泛型必须定义在父类处 如无法找到, 返回Object.class. eg.
- getClassGenericType(Class, int) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
通过反射, 获得Class定义中声明的父类的泛型参数的类型.
- getFieldValue(Object, String) - 类 中的静态方法fun.hereis.code.utils.Reflections
-
直接读取对象属性值, 无视private/protected修饰符, 不经过getter函数.
- getPrivateKey(String) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
-
从字符串转换为私钥
- getPublicKey(String) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
-
从字符串转换为公钥
- getTicker() - 类 中的方法fun.hereis.code.utils.cache.GuavaCache
-
获取时钟,通过拨动时钟,模拟时间流逝,可以方便单元测试
- getValue(String, Map<String, String>, Map<String, String>) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
-
从两个map中取值,当第一个map中不存在时返回第二个map中的值
- GuavaCache<V> - fun.hereis.code.utils.cache中的类
-
基于guava cache 封装了一层常用的缓存场景,就是异步全量刷新配置缓存。
- GuavaCache.Loader<V> - fun.hereis.code.utils.cache中的接口
-
加载缓存接口
- GuavaTicker - fun.hereis.code.utils.cache中的类
-
主要用于缓存测试
- GuavaTicker() - 类 的构造器fun.hereis.code.utils.cache.GuavaTicker
-