跳过导航链接
A C D E F G I L M P R S T 

A

asyncGuavaCache(long, GuavaCache.Loader<V>) - 类 中的静态方法fun.hereis.code.utils.cache.GuavaCache
创建一个异步刷新的缓存,里面只有一个缓存值,直接调用get方法返回数据
asyncRefreshCache(long, CacheLoader<K, V>) - 类 中的静态方法fun.hereis.code.utils.cache.GuavaCache
创建一个异步刷新的缓存
asyncRefreshCache(long, CacheLoader<K, V>, Ticker) - 类 中的静态方法fun.hereis.code.utils.cache.GuavaCache
创建一个异步刷新的缓存,使用ticker ,方便单元测试

C

CollectionUtil - fun.hereis.code.utils中的类
集合工具类
CollectionUtil() - 类 的构造器fun.hereis.code.utils.CollectionUtil
 
CollectionUtil.Pick<T> - fun.hereis.code.utils中的接口
 
convertFromDate(Date) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
时间类型转换
convertFromLocalDateTime(LocalDateTime) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
时间类型转换
convertReflectionExceptionToUnchecked(Exception) - 类 中的静态方法fun.hereis.code.utils.Reflections
将反射时的checked exception转换为unchecked throwable.

D

DATE - 类 中的静态变量fun.hereis.code.utils.TimeUtil
只有日期的格式 yyyy-MM-dd
DATE_TIME - 类 中的静态变量fun.hereis.code.utils.TimeUtil
标准时间格式 yyyy-MM-dd HH:mm:ss
decrypt(String) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
解密

E

encrypt(String) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
加密

F

formatDate(Date) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
格式化标准日期格式
formatStandardTime(Date) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
格式化成标准时间格式 yyyy-MM-dd HH:mm:ss
fromList(List<V>, Function<V, K>) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
把list转换成map对象 从list中的单个对象使用getKey方法获取key,然后把对象作为value,
fun.hereis.code.utils - 程序包 fun.hereis.code.utils
 
fun.hereis.code.utils.cache - 程序包 fun.hereis.code.utils.cache
 

G

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
 

I

invokeGetter(Object, String) - 类 中的静态方法fun.hereis.code.utils.Reflections
调用Getter方法.
invokeMethod(Object, String, Class<?>[], Object[]) - 类 中的静态方法fun.hereis.code.utils.Reflections
直接调用对象方法, 无视private/protected修饰符.
invokeMethodByName(Object, String, Object[]) - 类 中的静态方法fun.hereis.code.utils.Reflections
直接调用对象方法, 无视private/protected修饰符, 用于一次性调用的情况,否则应使用getAccessibleMethodByName()函数获得Method后反复调用.
invokeSetter(Object, String, Object) - 类 中的静态方法fun.hereis.code.utils.Reflections
调用Setter方法, 仅匹配方法名。
isEmpty(Collection) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
判断集合是否为空或null
isToday(Date) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
判断是否是今天

L

load() - 接口 中的方法fun.hereis.code.utils.cache.GuavaCache.Loader
 

M

main(String[]) - 类 中的静态方法fun.hereis.code.utils.RSAUtil
 
makeAccessible(Method) - 类 中的静态方法fun.hereis.code.utils.Reflections
改变private/protected的方法为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。
makeAccessible(Field) - 类 中的静态方法fun.hereis.code.utils.Reflections
改变private/protected的成员变量为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。
mergeMap(Map<String, String>...) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
合并多个map

P

pick(Collection, CollectionUtil.Pick) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
摘取列表数据中的部分数据
pick(T) - 接口 中的方法fun.hereis.code.utils.CollectionUtil.Pick
 
putIfAbsent(Map<String, String>, String, String) - 类 中的静态方法fun.hereis.code.utils.CollectionUtil
如果不存在此key时添加

R

read() - 类 中的方法fun.hereis.code.utils.cache.GuavaTicker
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
Reflections - fun.hereis.code.utils中的类
反射工具类.
Reflections() - 类 的构造器fun.hereis.code.utils.Reflections
 
refresh() - 类 中的方法fun.hereis.code.utils.cache.GuavaCache
强制刷新缓存
REFRESH_EXECUTOR - 类 中的静态变量fun.hereis.code.utils.cache.GuavaCache
刷新缓存的执行器
RSAUtil - fun.hereis.code.utils中的类
RSA工具类
RSAUtil() - 类 的构造器fun.hereis.code.utils.RSAUtil
 

S

setFieldValue(Object, String, Object) - 类 中的静态方法fun.hereis.code.utils.Reflections
直接设置对象属性值, 无视private/protected修饰符, 不经过setter函数.

T

theBeginningOfDay(int) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
获取某一天的开始时间 00:00:00
theEndOfDay(int) - 类 中的静态方法fun.hereis.code.utils.TimeUtil
获取某一天的结束时间 23:59:59
tick(Duration) - 类 中的方法fun.hereis.code.utils.cache.GuavaTicker
修改时钟值
TimeUtil - fun.hereis.code.utils中的类
时间相关工具类
TimeUtil() - 类 的构造器fun.hereis.code.utils.TimeUtil
 
A C D E F G I L M P R S T 
跳过导航链接

Copyright © 2023 Pivotal Software, Inc.. All rights reserved.