| 接口 | 说明 |
|---|---|
| ClassResourceUtils.FileFilter |
文件名过滤器接口
|
| CollectionUtils.DualTransformer<L,R> |
dual transform type between L and R
CollectionUtils.DualTransformer.toRight(Object) L -> RCollectionUtils.DualTransformer.fromRight(Object) R -> L |
| CollectionUtils.Function<F,T> | |
| CoreDebugLog.OutputString |
消息输出接口
应用层通过实现此接口实现日志输出 |
| Delegator<T> |
装饰者模式接口
|
| ILazyInitVariable<T> |
延迟初始化(Lazy initialization)变量封装接口
|
| InterfaceDecoratorProbe |
InterfaceDecorator方法调用侦听器 |
| VolatileVariable.VariableGetter<T> |
| 类 | 说明 |
|---|---|
| AnnotationProxy<A extends java.lang.annotation.Annotation> |
Description:
InvocationHandler implementation of Annotation that pretends it
is a "real" source code annotation. |
| ArrayUtils | |
| Assert |
断言类
|
| Base64Utils |
copy from org.apache.axiom.util.base64.Base64Utils(axiom-api-1.2.13.jar)
|
| BaseInterfaceDecorator<I,T> |
实现接口实例
应用层可以根据需要继承此类重写 BaseInterfaceDecorator.invoke(Object, Method, Object[])方法,
也可以通过注册侦听器InterfaceDecoratorProbe在方法调用时实现应用逻辑 |
| BaseParameterNames |
获取构造函数或方法的参数名基类
当不能获取参数名的情况下, BaseParameterNames.returnFakeNameIfFail为false时返回null,否则返回返回arg,arg2...格式的替代名BaseParameterNames.returnFakeNameIfFail默认为true |
| BaseTls<T> |
基于Thread Local Storage的双重检查锁定实现
ILazyInitVariable的抽象类原理说明参见《The "Double-Checked Locking is Broken" Declaration》 |
| BaseVolatile<T> |
基于volatile的双重检查锁定实现
ILazyInitVariable的抽象类原理说明参见《The "Double-Checked Locking is Broken" Declaration》 要求 JDK5 以上版本 |
| BinaryUtils |
二进制数据(byte[],ByteBuffer)工具类
|
| BufferUtils |
NIO Buffer工具类
|
| ClassLoaderUtils |
根据指定的libdirs,classpath创建
URLClassLoader的工具类classpath中"${jdk_tools_jar}"代表 $java_home/lib/tools.jar参见 ClassLoaderUtils.toJarURLs(String...) |
| ClassResourceUtils |
classpath resource 工具
|
| CmdExecutor |
linux命令行执行器
|
| CollectionUtils | |
| ConditionChecks |
条件检查工具类
|
| Configuration |
读取配置文件(properties)中的参数
|
| ConfigUtils |
配置文件读取工具类
|
| CoreDebugLog |
全局日志输出
用于核心模块输出调试日志, 通过调用 CoreDebugLog.setOutput(OutputString)方法设置日志输出接口实例应用层可以实现在指定平台的日志输出 |
| CoreDebugLog.AndroidOutput | |
| CoreDebugLog.StandardOutput |
基于标准控制台输出的
CoreDebugLog.OutputString实现 |
| FaceUtilits | 已过时
replace by
BinaryUtils,SimpleTypes,MiscellaneousUtils |
| FaceUtilitsX | |
| ILazyInitVariable.BaseLazyVar<T> | |
| InterfaceContainer<I> |
实现接口实例的级联容器
|
| InterfaceDecorator<I,T> |
实现接口实例
|
| InterfaceDecoratorProbe.DefaultProbe |
InterfaceDecoratorProbe的默认实现(DO NOTHING) |
| InterfaceNonimplDecorator<I> |
实现在实例
|
| Judge |
条件判断
|
| MiscellaneousUtils |
杂项(未分类)工具箱
|
| NameStringUtils | |
| NativeUtils |
从jar包中加载指定路径下的动态库
|
| Pair<L,R> |
A convenience class to represent name-value pairs.
|
| ParameterNames |
基于解析类数据实现获取构造函数或方法的参数名
|
| Platform |
copy from jna-4.1.0.jar com.sun.jna.Platform but 'is64Bit' method
|
| Primitives |
Contains static utility methods pertaining to primitive types and their
corresponding wrapper types.
|
| ResourcePool<R> |
资源池管理对象
ResourcePool.apply(),ResourcePool.free()用于申请/释放资源,申请的资源对象不可跨线程调用,通过重写 ResourcePool.isNestable()方法决定是否允许嵌套调用 |
| ResourcePool.IntResourcePool |
以固定步长生成的一组数字为资源的资源池对象
|
| SampleLog | 已过时
name spelling mistake, replaced by
SimpleLog |
| ShareLock |
共享锁
实现固定数目 ShareLock.maxShareCount 的资源共享锁,限制并发线程数目. |
| SimpleLog |
简单日志输出工具类
|
| SimpleTypes |
类型工具(反射)
|
| SPIUtils | |
| ThreadFactoryBuilder |
A ThreadFactory builder, providing any combination of these features:
whether threads should be marked as daemon threads
a naming format
a thread priority
an uncaught exception handler
a backing thread factory
If no backing thread factory is provided, a default backing thread factory is used as if by
calling
setThreadFactory(Executors.defaultThreadFactory()). |
| TimeCostProbe |
耗时统计对象
用于程序执行耗时统计 |
| VolatileVariable<T> |
通过
VolatileVariable.VariableGetter接口实例提供变量值,实现基于volatile的双重检查锁定实现懒加载变量实例 |
| 枚举 | 说明 |
|---|---|
| ClassLoaderUtils.ParentStrategy |
parent为null时策略defaultParentLoader 使用default parent class loader,参见URLClassLoader.newInstance(URL[])threadContextLoader 使用当前线程的Thread Context ClassLoader作为parent,参见Thread.getContextClassLoader() currentClassLoader 使用当前类(ClassLoaderUtils)的class loader |
| ClassResourceUtils.TypeFilter |
Copyright © 2023. All Rights Reserved.