- cachedPool() - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder
-
- CachedThreadPoolBuilder() - 类 的构造器cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
- cancel(boolean) - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- cast(Object, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.ObjectKits
-
将对象转为指定的类型
支持日期,数字,boolean类型转换
- charsSplitter(String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
使用多个可选的char作为分割符, 还可以设置omitEmptyStrings,trimResults等配置
设置后的Splitter进行重用,不要每次创建
- ClassKits - cn.webfuse.core.kit.reflect中的类
-
获取Class信息的工具类
copy from vjtools and do some modify
- ClassKits() - 类 的构造器cn.webfuse.core.kit.reflect.ClassKits
-
- ClassLoaderKits - cn.webfuse.core.kit.reflect中的类
-
copy from vjtools
- ClassLoaderKits() - 类 的构造器cn.webfuse.core.kit.reflect.ClassLoaderKits
-
- clearStackTrace(T) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
清除StackTrace.
- clone() - 异常错误 中的方法cn.webfuse.core.exception.CloneableException
-
- clone(String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableException
-
简便函数, clone并重新设定Message
- clone() - 异常错误 中的方法cn.webfuse.core.exception.CloneableRuntimeException
-
- clone(String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableRuntimeException
-
简便函数, clone并重新设定Message
- CloneableException - cn.webfuse.core.exception中的异常错误
-
适用于异常信息需要变更的情况, 可通过clone(),不经过构造函数(也就避免了获得StackTrace)地从之前定义的静态异常中克隆,再设定新的异常信息
private static CloneableException TIMEOUT_EXCEPTION = new CloneableException("Timeout") .setStackTrace(My.class,
"hello"); ...
- CloneableException() - 异常错误 的构造器cn.webfuse.core.exception.CloneableException
-
- CloneableException(String) - 异常错误 的构造器cn.webfuse.core.exception.CloneableException
-
- CloneableException(String, Throwable) - 异常错误 的构造器cn.webfuse.core.exception.CloneableException
-
- CloneableRuntimeException - cn.webfuse.core.exception中的异常错误
-
适用于异常信息需要变更的情况, 可通过clone(),不经过构造函数(也就避免了获得StackTrace)地从之前定义的静态异常中克隆,再设定新的异常信息
- CloneableRuntimeException() - 异常错误 的构造器cn.webfuse.core.exception.CloneableRuntimeException
-
- CloneableRuntimeException(String) - 异常错误 的构造器cn.webfuse.core.exception.CloneableRuntimeException
-
- CloneableRuntimeException(String, Throwable) - 异常错误 的构造器cn.webfuse.core.exception.CloneableRuntimeException
-
- close() - 类 中的方法cn.webfuse.core.kit.text.StringBuilderWriter
-
Closing this writer has no effect.
- closeQuietly(Closeable) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
在final中安静的关闭, 不再往外抛出异常避免影响原有异常,最常用函数.
- cn.webfuse.core.constant - 程序包 cn.webfuse.core.constant
-
- cn.webfuse.core.exception - 程序包 cn.webfuse.core.exception
-
- cn.webfuse.core.kit - 程序包 cn.webfuse.core.kit
-
- cn.webfuse.core.kit.collection - 程序包 cn.webfuse.core.kit.collection
-
- cn.webfuse.core.kit.concurrent - 程序包 cn.webfuse.core.kit.concurrent
-
- cn.webfuse.core.kit.crypto - 程序包 cn.webfuse.core.kit.crypto
-
- cn.webfuse.core.kit.date - 程序包 cn.webfuse.core.kit.date
-
- cn.webfuse.core.kit.id - 程序包 cn.webfuse.core.kit.id
-
- cn.webfuse.core.kit.io - 程序包 cn.webfuse.core.kit.io
-
- cn.webfuse.core.kit.mapper - 程序包 cn.webfuse.core.kit.mapper
-
- cn.webfuse.core.kit.number - 程序包 cn.webfuse.core.kit.number
-
- cn.webfuse.core.kit.reflect - 程序包 cn.webfuse.core.kit.reflect
-
- cn.webfuse.core.kit.text - 程序包 cn.webfuse.core.kit.text
-
- cn.webfuse.core.lang - 程序包 cn.webfuse.core.lang
-
- cn.webfuse.core.lang.concurrent - 程序包 cn.webfuse.core.lang.concurrent
-
- cn.webfuse.core.lang.concurrent.jsr166e - 程序包 cn.webfuse.core.lang.concurrent.jsr166e
-
- cn.webfuse.core.lang.concurrent.threadpool - 程序包 cn.webfuse.core.lang.concurrent.threadpool
-
- collection - 类 中的变量cn.webfuse.core.kit.mapper.XmlMapper.CollectionWrapper
-
- CollectionKits - cn.webfuse.core.kit.collection中的类
-
Collection的工具集
- CollectionKits() - 类 的构造器cn.webfuse.core.kit.collection.CollectionKits
-
- CollectionWrapper() - 类 的构造器cn.webfuse.core.kit.mapper.XmlMapper.CollectionWrapper
-
- COLON - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- COMMA - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- commaDelimitedListToStringArray(String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
Convert a comma delimited list (e.g., a row from a CSV file) into an
array of strings.
- comparator - 类 中的变量cn.webfuse.core.lang.SortedArrayList
-
- compare(E, E) - 类 中的方法cn.webfuse.core.lang.SortedArrayList
-
Compares two keys using the correct comparison method for this
collection.
- completed(T) - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- concat(T, T[]) - 类 中的静态方法cn.webfuse.core.kit.collection.ArrayKits
-
添加元素到数组头.
- concat(T[], T) - 类 中的静态方法cn.webfuse.core.kit.collection.ArrayKits
-
添加元素到数组末尾.
- concat(String, String...) - 类 中的静态方法cn.webfuse.core.kit.io.FilePathKits
-
以拼接路径名
- ControllableQueue(int) - 类 的构造器cn.webfuse.core.lang.concurrent.threadpool.QueueableCachedThreadPool.ControllableQueue
-
- convertBeanToMap(Object) - 类 中的静态方法cn.webfuse.core.kit.mapper.BeanMapper
-
Bean对象转换为Map
- convertBeanToMap(Object, boolean) - 类 中的静态方法cn.webfuse.core.kit.mapper.BeanMapper
-
将Bean对象转换为Map,并提供是否忽略父属性的参数
- convertBeanToMap(Object, boolean, boolean) - 类 中的静态方法cn.webfuse.core.kit.mapper.BeanMapper
-
将Bean对象转换为Map,并提供 是否忽略父属性的参数 和 是否忽略值为null的参数
- convertBeanToMap(Object, boolean, boolean, String...) - 类 中的静态方法cn.webfuse.core.kit.mapper.BeanMapper
-
将Bean对象转换为Map,并提供 是否忽略父属性的参数 和 是否忽略值为null的参数 还有 忽略哪些字段的参数
- convertMapToBean(Map<String, Object>, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.mapper.BeanMapper
-
将Map对象转换成Bean对象
- convertNumberToTargetClass(Number, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.number.NumberKits
-
将给定的数字转换为给定目标类的实例
- convertReflectionExceptionToUnchecked(Exception) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
将反射时的checked exception转换为unchecked exception.
- copy(File, File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
复制文件或目录, not following links.
- copy(Path, Path) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
复制文件或目录, not following links.
- copy(Reader, Writer) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
在Reader与Writer间复制内容
- copy(InputStream, OutputStream) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
在InputStream与OutputStream间复制内容
- copyDir(File, File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
复制目录
- copyDir(Path, Path) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
复制目录
- copyFile(File, File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
文件复制.
- copyFile(Path, Path) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
文件复制.
- createIfAbsentReturnLast(ConcurrentMap<K, V>, K, MapKits.ValueCreator<? extends V>) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
如果Key不存在则创建,返回最后存储在Map中的Value.
- createMarshaller(Class, String) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
创建Marshaller并设定encoding(可为null).
- createTempDir() - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
在临时目录创建临时目录,命名为${毫秒级时间戳}-${同一毫秒内的随机数}.
- createTempFile() - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
在临时目录创建临时文件,命名为tmp-${random.nextLong()}.tmp
- createTempFile(String, String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
在临时目录创建临时文件,命名为${prefix}${random.nextLong()}${suffix}
- createUnmarshaller(Class) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
创建UnMarshaller.
- CRLF - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- generate() - 接口 中的方法cn.webfuse.core.kit.id.IdGenerator
-
- get() - 接口 中的方法cn.webfuse.core.kit.collection.MapKits.ValueCreator
-
创建对象
- get() - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- get(long, TimeUnit) - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- get(String) - 类 中的静态方法cn.webfuse.core.lang.concurrent.ThreadLocalContext
-
取出ThreadLocal的上下文信息.
- getAccessibleMethodByName(Class, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问.
- getAllAnnotations(Class<?>) - 类 中的静态方法cn.webfuse.core.kit.reflect.AnnotationKits
-
递归Class所有的Annotation,一个最彻底的实现.
- getAnnotatedFields(Class<? extends Object>, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.reflect.AnnotationKits
-
找出所有标注了该annotation的属性,循环遍历父类,包含private属性.
- getAnnotatedPublicFields(Class<? extends Object>, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.reflect.AnnotationKits
-
找出所有标注了该annotation的公共属性,循环遍历父类.
- getAnnotatedPublicMethods(Class<?>, Class<T>) - 类 中的静态方法cn.webfuse.core.kit.reflect.AnnotationKits
-
找出所有标注了该annotation的公共方法(含父类的公共函数),循环其接口.
- getBoolean(String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Boolean类型的系统变量,为空时返回null,代表未设置,而不是Boolean.getBoolean()的false.
- getBoolean(String, Boolean) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Boolean类型的系统变量,为空时返回默认值, 而不是Boolean.getBoolean()的false.
- getBoolean(String, String, Boolean) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
合并系统变量(-D),环境变量 和默认值,以系统变量优先
- getBuilder() - 类 中的方法cn.webfuse.core.kit.text.StringBuilderWriter
-
Returns the underlying builder.
- getClassGenericType(Class) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassKits
-
通过反射, 获得Class定义中声明的泛型参数的类型,
注意泛型必须定义在父类处.
- getClassGenericType(Class, int) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassKits
-
通过反射, 获得Class定义中声明的父类的泛型参数的类型.
- getCode() - 枚举 中的方法cn.webfuse.core.constant.BaseErrorCode
-
- getCode() - 接口 中的方法cn.webfuse.core.exception.ErrorCode
-
错误代码。
- getComparator() - 类 中的方法cn.webfuse.core.lang.SortedArrayList
-
Returns comparator assigned to this collection, if such exist.
- getDefaultClassLoader() - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassLoaderKits
-
Copy from Spring, 按顺序获取默认ClassLoader
1.
- getDouble(String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Double类型的系统变量,为空时返回null.
- getDouble(String, Double) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Double类型的系统变量,为空时返回默认值.
- getDouble(String, String, Double) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
合并系统变量(-D),环境变量 和默认值,以系统变量优先
- getField(Class, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
循环向上转型, 获取对象的DeclaredField, 并强制设置为可访问.
- getFieldValue(Object, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
直接读取对象属性值, 无视private/protected修饰符, 不经过getter函数.
- getFieldValue(Object, Field) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
使用已获取的Field, 直接读取对象属性值, 不经过getter函数.
- getFileExtension(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
获取文件名的扩展名部分(不包含.)
- getFileExtension(String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
获取文件名的扩展名部分(不包含.)
- getFileName(String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
获取文件名(不包含路径)
- getFirst(Collection<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.CollectionKits
-
取得Collection的第一个元素,如果collection为空返回null.
- getFirst(List<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
获取第一个元素, 如果List为空返回 null.
- getGetterMethod(Class<?>, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
循环遍历,按属性名获取前缀为get或is的函数,并设为可访问
- getInstance() - 类 中的静态方法cn.webfuse.core.kit.id.SnowflakeGenerator
-
- getInteger(String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Integer类型的系统变量,为空时返回null.
- getInteger(String, Integer) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Integer类型的系统变量,为空时返回默认值
- getInteger(String, String, Integer) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
合并系统变量(-D),环境变量 和默认值,以系统变量优先
- getJarPath(Class<?>) - 类 中的静态方法cn.webfuse.core.kit.io.FilePathKits
-
获得参数clazz所在的Jar文件的绝对路径
- getJaxbContext(Class) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
- getLast(Collection<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.CollectionKits
-
获取Collection的最后一个元素,如果collection为空返回null.
- getLast(List<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
获取最后一个元素,如果List为空返回null.
- getLeft() - 类 中的方法cn.webfuse.core.lang.Pair
-
- getLeft() - 类 中的方法cn.webfuse.core.lang.Triple
-
- getLong(String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Long类型的系统变量,为空时返回null.
- getLong(String, Long) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取Integer类型的系统变量,为空时返回默认值
- getLong(String, String, Long) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
合并系统变量(-D),环境变量 和默认值,以系统变量优先
- getMapper() - 类 中的方法cn.webfuse.core.kit.mapper.JsonMapper
-
取出Mapper做进一步的设置或使用其他序列化API.
- getMessage() - 枚举 中的方法cn.webfuse.core.constant.BaseErrorCode
-
- getMessage() - 异常错误 中的方法cn.webfuse.core.exception.CloneableException
-
- getMessage() - 异常错误 中的方法cn.webfuse.core.exception.CloneableRuntimeException
-
- getMessage() - 接口 中的方法cn.webfuse.core.exception.ErrorCode
-
用户显示给用户的信息。
- getMessage() - 异常错误 中的方法cn.webfuse.core.exception.UncheckedException
-
- getMethod(Class<?>, String, Class<?>...) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
循环向上转型, 获取对象的DeclaredMethod, 并强制设置为可访问.
- getMiddle() - 类 中的方法cn.webfuse.core.lang.Triple
-
- getMonthLength(Date) - 类 中的静态方法cn.webfuse.core.kit.date.DateKits
-
获取某个月有多少天, 考虑闰年等因数, 移植Jodd Core的TimeUtil
copy from vjtools
- getMonthLength(int, int) - 类 中的静态方法cn.webfuse.core.kit.date.DateKits
-
获取某个月有多少天, 考虑闰年等因数, 移植Jodd Core的TimeUtil
copy from vjtools
- getParentPath(String) - 类 中的静态方法cn.webfuse.core.kit.io.FilePathKits
-
获得上层目录的路径
- getProperty(Object, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
先尝试用Getter函数读取, 如果不存在则直接读取变量.
- getReplaceAll(String, String, String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
Replace every subsequence of the input sequence that matches the
pattern with the given replacement string.
- getReplaceFirst(String, String, String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
Replace the first subsequence of the input sequence that matches the
regex with the given replacement string.
- getResourcesQuietly(String) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
- getResourcesQuietly(String, ClassLoader) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
- getRight() - 类 中的方法cn.webfuse.core.lang.Pair
-
- getRight() - 类 中的方法cn.webfuse.core.lang.Triple
-
- getRootCause(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
获取异常的Root Cause.
- getSetterMethod(Class<?>, String, Class<?>) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
循环遍历,按属性名获取前缀为set的函数,并设为可访问
- getStatus() - 枚举 中的方法cn.webfuse.core.constant.BaseErrorCode
-
- getStatus() - 接口 中的方法cn.webfuse.core.exception.ErrorCode
-
状态码
- getString(String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取String类型的系统变量,为空时返回null.
- getString(String, String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
读取String类型的系统变量,为空时返回默认值
- getString(String, String, String) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
合并系统变量(-D),环境变量 和默认值,以系统变量优先
- getSubmittedCount() - 类 中的方法cn.webfuse.core.lang.concurrent.threadpool.QueueableCachedThreadPool
-
- getValue(Map<String, Object>, String, Class<V>) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
- gracefulShutdown(ExecutorService, int) - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadPoolKits
-
按照ExecutorService JavaDoc示例代码编写的Graceful Shutdown方法.
- gracefulShutdown(ExecutorService, int, TimeUnit) - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadPoolKits
-
- group(String, CharSequence) - 类 中的静态方法cn.webfuse.core.kit.text.RegexKits
-
返回在以前匹配操作期间由给定组捕获的输入子序列.
- group(String, CharSequence, int) - 类 中的静态方法cn.webfuse.core.kit.text.RegexKits
-
返回在以前匹配操作期间由给定组捕获的输入子序列.
- IdGenerator<T> - cn.webfuse.core.kit.id中的接口
-
ID生成器
- increment() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
Equivalent to add(1).
- INSTANCE - 类 中的静态变量cn.webfuse.core.kit.mapper.JsonMapper
-
- instanceOf(Class, Class) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassKits
-
判断某个值对象是否是某个类对象
- intersection(List<? extends T>, List<? extends T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
list1, list2的交集(同时在list1和list2的对象),产生新List
copy from Apache Common Collection4 ListUtils,但其做了不合理的去重,因此重新改为性能较低但不去重的版本
与List.retainAll()相比,考虑了的List中相同元素出现的次数, 如"a"在list1出现两次,而在list2中只出现一次,则交集里会保留一个"a".
- intersectionView(Set<E>, Set<?>) - 类 中的静态方法cn.webfuse.core.kit.collection.SetKits
-
set1, set2的交集(同时在set1和set2的对象)的只读view,不复制产生新的Set对象.
- intValue() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
Returns the
LongAdder.sum() as an
int after a narrowing
primitive conversion.
- invokeConstructor(Class<T>, Object...) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
调用构造函数.
- invokeGetter(Object, String) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
调用Getter方法, 无视private/protected修饰符.
- invokeMethod(Object, String, Object...) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
反射调用对象方法, 无视private/protected修饰符.
- invokeMethod(Object, String, Object[], Class<?>[]) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
反射调用对象方法, 无视private/protected修饰符.
- invokeMethod(Object, Method, Object...) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
调用预先获取的Method,用于反复调用的场景
- invokeMethodByName(Object, String, Object[]) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
反射调用对象方法, 无视private/protected修饰符
只匹配函数名,如果有多个同名函数调用第一个.
- invokeSetter(Object, String, Object) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
调用Setter方法, 无视private/protected修饰符, 按传入value的类型匹配函数.
- IOKits - cn.webfuse.core.kit.io中的类
-
copy from vjtools
IO Stream/Reader相关工具集.
- IOKits() - 类 的构造器cn.webfuse.core.kit.io.IOKits
-
- isCancelled() - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- isCausedBy(Throwable, Class<? extends Exception>...) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
判断异常是否由某些底层的异常引起.
- isDirExists(String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
判断目录是否存在, from Jodd
- isDirExists(Path) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
- isDirExists(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
判断目录是否存在, from Jodd
- isDone() - 类 中的方法cn.webfuse.core.lang.concurrent.BasicFuture
-
- isFileExists(String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
判断文件是否存在, from Jodd.
- isFileExists(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
判断文件是否存在, from Jodd.
- isFileExists(Path) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
判断文件是否存在, from Jodd.
- isHexNumber(String) - 类 中的静态方法cn.webfuse.core.kit.number.NumberKits
-
判断字符串是否16进制
- isLeapYear(Date) - 类 中的静态方法cn.webfuse.core.kit.date.DateKits
-
是否闰年.
- isLeapYear(int) - 类 中的静态方法cn.webfuse.core.kit.date.DateKits
-
是否闰年,copy from Jodd Core的TimeUtil
参数是公元计数, 如2016
copy from vjtools
- isNumber(String) - 类 中的静态方法cn.webfuse.core.kit.number.NumberKits
-
判断字符串是否合法数字
- ISO_8859_1 - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- isPresent(String, ClassLoader) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassLoaderKits
-
探测类是否存在classpath中
- isSubClassOrInterfaceOf(Class, Class) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassKits
-
https://github.com/linkedin/linkedin-utils/blob/master/org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java
The purpose of this method is somewhat to provide a better naming / documentation than the javadoc of
Class.isAssignableFrom method.
- isValid(String) - 类 中的静态方法cn.webfuse.core.kit.id.ObjectIdGenerator
-
给定的字符串是否为有效的ObjectId
- N - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- newArray(Class<T>, int) - 类 中的静态方法cn.webfuse.core.kit.collection.ArrayKits
-
copy from vjtools
传入类型与大小创建数组.
- newArrayBlockingQueue(int) - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建并发阻塞情况下,长度受限,更节约内存,但共用一把锁的队列(无双端队列实现).
- newArrayDeque(int) - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建ArrayDeque (JDK无ArrayQueue)
需设置初始长度,默认为16,数组满时成倍扩容
- newBlockingDeque(int) - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建并发阻塞情况下,长度受限,头队尾两把锁, 但使用更多内存的双端队列.
- newBlockingUnlimitDeque() - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建并发阻塞情况下,长度不受限的双端队列.
- newBlockingUnlimitQueue() - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建并发阻塞情况下,长度不受限的队列.
- newConcurrentNonBlockingDeque() - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建无阻塞情况下,性能最优的并发双端队列
- newConcurrentNonBlockingQueue() - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建无阻塞情况下,性能最优的并发队列
- newConcurrentSortedMap() - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型,构造类型正确的ConcurrentSkipListMap.
- newEnumMap(Class<K>) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
相比HashMap,当key是枚举类时, 性能与空间占用俱佳.
- newHashMap(K, V) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型, 构造类型正确的HashMap.
- newHashMap(K[], V[]) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型, 构造类型正确的HashMap.
- newHashMap(List<K>, List<V>) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型, 构造类型正确的HashMap.
- newHashMapWithCapacity(int, float) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型, 构造类型正确的HashMap.
- NEWLINE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- newLinkedBlockingQueue(int) - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建并发阻塞情况下,长度受限,头队尾两把锁, 但使用更多内存的队列.
- newLinkedDeque() - 类 中的静态方法cn.webfuse.core.kit.collection.QueueKits
-
创建LinkedDeque (LinkedList实现了Deque接口)
- newSetFromMap(Map<T, Boolean>) - 类 中的静态方法cn.webfuse.core.kit.collection.SetKits
-
从Map构造Set的大杀器, 可以用来制造各种Set
copy from vjtools
- newSortedMap() - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型,构造类型正确的TreeMap.
- newSortedMap(Comparator<C>) - 类 中的静态方法cn.webfuse.core.kit.collection.MapKits
-
根据等号左边的类型,构造类型正确的TreeMap.
- next() - 类 中的静态方法cn.webfuse.core.kit.id.ObjectIdGenerator
-
获取一个objectId用下划线分割
- next(boolean) - 类 中的静态方法cn.webfuse.core.kit.id.ObjectIdGenerator
-
获取一个objectId用下划线分割
- nextDouble() - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-之间的double, 使用ThreadLocalRandom
- nextDouble(Random) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-Double.MAX之间的double
- nextDouble(double) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-max之间的double, 使用ThreadLocalRandom
注意:与JDK默认返回0-1的行为不一致.
- nextDouble(Random, double) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-max之间的double
- nextDouble(double, double) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min-max之间的double,ThreadLocalRandom
- nextDouble(Random, double, double) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min-max之间的double
- nextId() - 类 中的方法cn.webfuse.core.kit.id.SnowflakeGenerator
-
- nextInt(Random) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0到Intger.MAX_VALUE的随机Int, 可传入ThreadLocalRandom或SecureRandom
- nextInt(int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0到max的随机Int, 使用ThreadLocalRandom.
- nextInt(Random, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0到max的随机Int, 可传入SecureRandom或ThreadLocalRandom
- nextInt(int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min到max的随机Int, 使用ThreadLocalRandom.
- nextInt(Random, int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min到max的随机Int,可传入SecureRandom或ThreadLocalRandom.
- nextLong() - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-Long.MAX_VALUE间的随机Long, 使用ThreadLocalRandom.
- nextLong(Random) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-Long.MAX_VALUE间的随机Long, 可传入SecureRandom或ThreadLocalRandom
- nextLong(long) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-max间的随机Long, 使用ThreadLocalRandom.
- nextLong(Random, long) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回0-max间的随机Long, 可传入SecureRandom或ThreadLocalRandom
- nextLong(long, long) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min-max间的随机Long, 使用ThreadLocalRandom.
- nextLong(Random, long, long) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回min-max间的随机Long,可传入SecureRandom或ThreadLocalRandom.
- NO - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- nonEmptyMapper() - 类 中的静态方法cn.webfuse.core.kit.mapper.JsonMapper
-
创建只输出非Null且非Empty(如List.isEmpty)的属性到Json字符串的Mapper.
- nonNullMapper() - 类 中的静态方法cn.webfuse.core.kit.mapper.JsonMapper
-
创建只输出非Null的属性到Json字符串的Mapper.
- normalizePath(String) - 类 中的静态方法cn.webfuse.core.kit.io.FilePathKits
-
在Windows环境里,兼容Windows上的路径分割符,将 '/' 转回 '\'
- notNullList(List<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
清理掉List中的Null对象
copy from vjtools
- NULL - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- NumberKits - cn.webfuse.core.kit.number中的类
-
- NumberKits() - 类 的构造器cn.webfuse.core.kit.number.NumberKits
-
- randomAsciiFixLength(int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机ASCII字符(含字母,数字及其他符号),固定长度
- randomAsciiFixLength(Random, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机ASCII字符(含字母,数字及其他符号),固定长度
- randomAsciiRandomLength(int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机ASCII字符(含字母,数字及其他符号),随机长度
- randomAsciiRandomLength(Random, int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机ASCII字符(含字母,数字及其他符号),随机长度
- RandomKits - cn.webfuse.core.kit中的类
-
copy from vjtools
随机数工具集.
- RandomKits() - 类 的构造器cn.webfuse.core.kit.RandomKits
-
- randomLetterFixLength(int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母,固定长度
- randomLetterFixLength(Random, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母,固定长度
- randomLetterRandomLength(int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母,随机长度
- randomLetterRandomLength(Random, int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母,随机长度
- randomStringFixLength(int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母或数字,固定长度
- randomStringFixLength(Random, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母或数字,固定长度
- randomStringRandomLength(int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母或数字,随机长度
- randomStringRandomLength(Random, int, int) - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
随机字母或数字,随机长度
- readLine(InputStream) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
读取一行数据,比如System.in的用户输入
- readLine(Reader) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
读取一行数据
- ReflectionKits - cn.webfuse.core.kit.reflect中的类
-
copy from vjtools
反射工具类.
- ReflectionKits() - 类 的构造器cn.webfuse.core.kit.reflect.ReflectionKits
-
- REGEX_BLANK_LINE - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配空白行
- REGEX_CHINA_POSTAL_CODE - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配中国邮政编码
- REGEX_DOUBLE_BYTE_CHAR - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配双字节字符(包括汉字在内)
- REGEX_INTEGER - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配整数
- REGEX_MOBILE_ALL - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配所有号码(手机卡 + 数据卡 + 上网卡)
- REGEX_MOBILE_SMS - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配所有支持短信功能的号码(手机卡 + 上网卡)
- REGEX_NEGATIVE_FLOAT - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配负浮点数
- REGEX_NEGATIVE_INTEGER - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配负整数
- REGEX_NOT_NEGATIVE_INTEGER - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配非负整数(正整数+0)
- REGEX_NOT_POSITIVE_INTEGER - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配非正整数(负整数+0)
- REGEX_POSITIVE_FLOAT - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配正浮点数
- REGEX_POSITIVE_INTEGER - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配正整数
- REGEX_QQ_NUM - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配QQ号
- REGEX_TIME - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配时间(时:分:秒)
- REGEX_USERNAME - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
Regex of username.
- REGEX_ZH - 类 中的静态变量cn.webfuse.core.constant.RegexConstants
-
正则:匹配中文字符
- RegexConstants - cn.webfuse.core.constant中的类
-
正则的常量
手机号码正则参考:https://github.com/VincentSit/ChinaMobilePhoneNumberRegex/blob/master/README-CN.md
- RegexConstants() - 类 的构造器cn.webfuse.core.constant.RegexConstants
-
- RegexKits - cn.webfuse.core.kit.text中的类
-
正则表达式工具类
- RegexKits() - 类 的构造器cn.webfuse.core.kit.text.RegexKits
-
- register(SystemPropertiesKits.PropertiesListener) - 类 中的方法cn.webfuse.core.kit.SystemPropertiesKits.ListenableProperties
-
- registerSystemPropertiesListener(SystemPropertiesKits.PropertiesListener) - 类 中的静态方法cn.webfuse.core.kit.SystemPropertiesKits
-
Properties 本质上是一个HashTable,每次读写都会加锁,所以不支持频繁的System.getProperty(name)来检查系统内容变化 因此扩展了一个ListenableProperties,
在其所关心的属性变化时进行通知.
- removeEnd(String, char) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
如果结尾字符为c, 去除掉该字符.
- replaceFirst(String, char, char) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
String 有replace(char,char),但缺少单独replace first/last的
- replaceLast(String, char, char) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
String 有replace(char,char)替换全部char,但缺少单独replace first/last
- reset() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
Resets variables maintaining the sum to zero.
- reset() - 类 中的静态方法cn.webfuse.core.lang.concurrent.ThreadLocalContext
-
清理ThreadLocal的Context内容.
- ResourceKits - cn.webfuse.core.kit.io中的类
-
copy from vjtools
针对Jar包内的文件的工具类.
- ResourceKits() - 类 的构造器cn.webfuse.core.kit.io.ResourceKits
-
- RETURN - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- RIGHT_BRACE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- RIGHT_BRACKET - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- RIGHT_CHEV - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- RIGHT_SQ_BRACKET - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- round(Number, int, RoundingMode) - 类 中的静态方法cn.webfuse.core.kit.number.NumberKits
-
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
- round(String, int, RoundingMode) - 类 中的静态方法cn.webfuse.core.kit.number.NumberKits
-
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
- safeRunnable(Runnable) - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadPoolKits
-
防止用户没有捕捉异常导致中断了线程池中的线程, 使得SchedulerService无法继续执行.
- scheduledPool() - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder
-
- ScheduledThreadPoolBuilder() - 类 的构造器cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.ScheduledThreadPoolBuilder
-
- secureRandom() - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
SecureRandom使用性能更好的SHA1PRNG, Tomcat的sessionId生成也用此算法.
- SEMICOLON - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- set(int, E) - 类 中的方法cn.webfuse.core.lang.SortedArrayList
-
已过时。
- setDaemon(Boolean) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
与threadFactory互斥, 优先使用ThreadFactory
默认为NULL,不进行设置,使用JDK的默认值.
- setDaemon(Boolean) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
与threadFactory互斥, 优先使用ThreadFactory
默认为NULL,不进行设置,使用JDK的默认值.
- setDaemon(Boolean) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
与threadFactory互斥, 优先使用ThreadFactory
默认为NULL,不进行设置,使用JDK的默认值.
- setField(Object, Field, Object) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
使用预先获取的Field, 直接读取对象属性值, 不经过setter函数.
- setFieldValue(Object, String, Object) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
直接设置对象属性值, 无视private/protected修饰符, 不经过setter函数.
- setKeepAliveSecs(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
JDK默认值60秒太高,如高达1000线程时,要低于16QPS时才会开始回收线程, 因此改为默认10秒.
- setKeepAliveSecs(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
- SetKits - cn.webfuse.core.kit.collection中的类
-
Set的工具集
- SetKits() - 类 的构造器cn.webfuse.core.kit.collection.SetKits
-
- setMaxSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
Max默认Integer.MAX_VALUE的,建议设置
- setMaxSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
- setMessage(String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableException
-
简便函数, 重新设定Message
- setMessage(String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableRuntimeException
-
简便函数, 重新设定Message
- setMinSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
- setMinSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
- setParent(QueueableCachedThreadPool) - 类 中的方法cn.webfuse.core.lang.concurrent.threadpool.QueueableCachedThreadPool.ControllableQueue
-
- setPoolSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
Pool大小,默认为1,即singleThreadPool
- setPoolSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.ScheduledThreadPoolBuilder
-
默认为1
- setProperty(Object, String, Object) - 类 中的静态方法cn.webfuse.core.kit.reflect.ReflectionKits
-
先尝试用Setter函数写入, 如果不存在则直接写入变量, 按传入value的类型匹配函数.
- setProperty(String, String) - 类 中的方法cn.webfuse.core.kit.SystemPropertiesKits.ListenableProperties
-
- setQueueSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
不设置时默认为-1, 使用无限长的LinkedBlockingQueue.
- setQueueSize(int) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
LinkedQueue长度, 默认100
- setRejectHanlder(RejectedExecutionHandler) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
- setRejectHanlder(RejectedExecutionHandler) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
- setRejectHanlder(RejectedExecutionHandler) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
- setStackTrace(Class<?>, String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableException
-
简便函数,定义静态异常时使用
- setStackTrace(Class<?>, String) - 异常错误 中的方法cn.webfuse.core.exception.CloneableRuntimeException
-
简便函数,定义静态异常时使用
- setStackTrace(T, Class<?>, String) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
copy from Netty, 为静态异常设置StackTrace.
- setThreadFactory(ThreadFactory) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
与threadNamePrefix互斥, 优先使用ThreadFactory
- setThreadFactory(ThreadFactory) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
与threadNamePrefix互斥, 优先使用ThreadFactory
- setThreadFactory(ThreadFactory) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
与threadNamePrefix互斥, 优先使用ThreadFactory
- setThreadFactory(ThreadFactory) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.ScheduledThreadPoolBuilder
-
与threadNamePrefix互斥, 优先使用ThreadFactory
- setThreadNamePrefix(String) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.CachedThreadPoolBuilder
-
与threadFactory互斥, 优先使用ThreadFactory
- setThreadNamePrefix(String) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.FixedThreadPoolBuilder
-
与ThreadFactory互斥, 优先使用ThreadFactory
- setThreadNamePrefix(String) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.QueueableCachedThreadPoolBuilder
-
与threadFactory互斥, 优先使用ThreadFactory
- setThreadNamePrefix(String) - 类 中的方法cn.webfuse.core.kit.concurrent.ThreadPoolBuilder.ScheduledThreadPoolBuilder
-
- sha1Hex(String) - 类 中的静态方法cn.webfuse.core.kit.crypto.HashingKits
-
SHA1加密
- sha224Hex(String) - 类 中的静态方法cn.webfuse.core.kit.crypto.HashingKits
-
SHA224加密
- sha256Hex(String) - 类 中的静态方法cn.webfuse.core.kit.crypto.HashingKits
-
SHA256加密
- sha384Hex(String) - 类 中的静态方法cn.webfuse.core.kit.crypto.HashingKits
-
SHA384加密
- sha512Hex(String) - 类 中的静态方法cn.webfuse.core.kit.crypto.HashingKits
-
SHA512加密
- simplifyPath(String) - 类 中的静态方法cn.webfuse.core.kit.io.FilePathKits
-
将路径整理,如 "a/..
- SINGLE_QUOTE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- singletonList(T) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
返回只含一个元素但结构特殊的List,节约空间.
- SLASH - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- sleep(long) - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadKits
-
sleep等待, 单位为毫秒, 已捕捉并处理InterruptedException.
- sleep(long, TimeUnit) - 类 中的静态方法cn.webfuse.core.kit.concurrent.ThreadKits
-
sleep等待,已捕捉并处理InterruptedException.
- SNOW_FLAKE - 接口 中的静态变量cn.webfuse.core.kit.id.IdGenerator
-
雪花算法
- SNOW_FLAKE_STRING - 接口 中的静态变量cn.webfuse.core.kit.id.IdGenerator
-
雪花算法转String
- SnowflakeGenerator - cn.webfuse.core.kit.id中的类
-
From: https://github.com/twitter/snowflake
基于snowflake的ID生成器
An object that generates IDs.
- SnowflakeGenerator(long, long) - 类 的构造器cn.webfuse.core.kit.id.SnowflakeGenerator
-
- SortedArrayList<E> - cn.webfuse.core.lang中的类
-
从Jodd整体复制,部分指定了index的操作不支持,如 add(index, element)
修改包括:改进Comparator泛型定义,findInsertionPoint的位移改进
https://github.com/oblac/jodd/blob/master/jodd-core/src/main/java/jodd/util/collection/SortedArrayList.java
An extension of ArrayList that insures that all of the items
added are sorted.
- SortedArrayList(Comparator<? super E>) - 类 的构造器cn.webfuse.core.lang.SortedArrayList
-
Constructs a new SortedArrayList.
- SortedArrayList() - 类 的构造器cn.webfuse.core.lang.SortedArrayList
-
Constructs a new SortedArrayList expecting
elements are comparable.
- SortedArrayList(Collection<? extends E>) - 类 的构造器cn.webfuse.core.lang.SortedArrayList
-
Constructs a new SortedArrayList expecting
elements are comparable.
- SPACE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- split(String, char) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
高性能的Split,针对char的分隔符号,比JDK String自带的高效.
- split(String, char, int) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
高性能的Split,针对char的分隔符号,比JDK String自带的高效.
- stackTraceText(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
将StackTrace[]转换为String, 供Logger或e.printStackTrace()外的其他地方使用.
- STAR - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- startWith(CharSequence, char) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
判断字符串是否以字母开头
如果字符串为Null或空,返回false
- StringBuilderWriter - cn.webfuse.core.kit.text中的类
-
JDK的java.io.StringWriter使用StringBuffer,移植Commons IO使用StringBuilder的版本.
- StringBuilderWriter() - 类 的构造器cn.webfuse.core.kit.text.StringBuilderWriter
-
- StringBuilderWriter(int) - 类 的构造器cn.webfuse.core.kit.text.StringBuilderWriter
-
Constructs a new
StringBuilder instance with the specified capacity.
- StringBuilderWriter(StringBuilder) - 类 的构造器cn.webfuse.core.kit.text.StringBuilderWriter
-
- StringKits - cn.webfuse.core.kit.text中的类
-
- StringKits() - 类 的构造器cn.webfuse.core.kit.text.StringKits
-
- StringPool - cn.webfuse.core.constant中的接口
-
Pool of String constants to prevent repeating of
hard-coded String literals in the code.
- Striped64 - cn.webfuse.core.lang.concurrent.jsr166e中的类
-
移植
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/Striped64.java Revision 1.10
copy from vjtools
A package-local class holding common representation and mechanics
for classes supporting dynamic striping on 64bit values.
- sum() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
Returns the current sum.
- sumThenReset() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
- synchronizedList(List<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
返回包装后同步的List,所有方法都会被synchronized原语同步.
- SystemPropertiesKits - cn.webfuse.core.kit中的类
-
copy from vjtools
关于SystemProperties的工具类
1.
- SystemPropertiesKits() - 类 的构造器cn.webfuse.core.kit.SystemPropertiesKits
-
- SystemPropertiesKits.ListenableProperties - cn.webfuse.core.kit中的类
-
Properties 本质上是一个HashTable,每次读写都会加锁,所以不支持频繁的System.getProperty(name)来检查系统内容变化 因此扩展了Properties子类,
在其所关心的属性变化时进行通知.
- SystemPropertiesKits.PropertiesListener - cn.webfuse.core.kit中的类
-
获取所关心的Property变更的Listener基类.
- TAB - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- ThreadKits - cn.webfuse.core.kit.concurrent中的类
-
copy from vjtools
线程相关工具类.
- ThreadKits() - 类 的构造器cn.webfuse.core.kit.concurrent.ThreadKits
-
- ThreadLocalContext - cn.webfuse.core.lang.concurrent中的类
-
copy from vjtools
存储于ThreadLocal的Map, 用于存储上下文.
- ThreadLocalContext() - 类 的构造器cn.webfuse.core.lang.concurrent.ThreadLocalContext
-
- threadLocalRandom() - 类 中的静态方法cn.webfuse.core.kit.RandomKits
-
返回无锁的ThreadLocalRandom
- ThreadPoolBuilder - cn.webfuse.core.kit.concurrent中的类
-
ThreadPool创建的工具类.
- ThreadPoolBuilder() - 类 的构造器cn.webfuse.core.kit.concurrent.ThreadPoolBuilder
-
- ThreadPoolBuilder.CachedThreadPoolBuilder - cn.webfuse.core.kit.concurrent中的类
-
创建CachedThreadPool, maxSize建议设置
1.
- ThreadPoolBuilder.FixedThreadPoolBuilder - cn.webfuse.core.kit.concurrent中的类
-
创建FixedThreadPool.建议必须设置queueSize保证有界。
- ThreadPoolBuilder.QueueableCachedThreadPoolBuilder - cn.webfuse.core.kit.concurrent中的类
-
从Tomcat移植过来的可扩展可用Queue缓存任务的ThreadPool
- ThreadPoolBuilder.ScheduledThreadPoolBuilder - cn.webfuse.core.kit.concurrent中的类
-
- ThreadPoolKits - cn.webfuse.core.kit.concurrent中的类
-
copy from vjtools
线程池工具集
1.
- ThreadPoolKits() - 类 的构造器cn.webfuse.core.kit.concurrent.ThreadPoolKits
-
- TILDA - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- tilNextMillis(long) - 类 中的方法cn.webfuse.core.kit.id.SnowflakeGenerator
-
- timeGen() - 类 中的方法cn.webfuse.core.kit.id.SnowflakeGenerator
-
- toBooleanObject(String, Object) - 类 中的静态方法cn.webfuse.core.kit.BooleanKits
-
- toBooleanObject(String) - 类 中的静态方法cn.webfuse.core.kit.BooleanKits
-
- toBufferedReader(Reader) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
- toByteArray(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
读取文件到byte[].
- toInputStream(String) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
字符串转换成InputStream
- toInputStreamReader(String) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
字符串转换成Reader
- toJson(Object) - 类 中的方法cn.webfuse.core.kit.mapper.JsonMapper
-
Object可以是POJO,也可以是Collection或数组。
- toJsonP(String, Object) - 类 中的方法cn.webfuse.core.kit.mapper.JsonMapper
-
輸出JSONP格式數據.
- tokenizeToStringArray(String, String, boolean, boolean) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
- toLines(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
读取文件的每行内容到List.
- toLines(InputStream) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
简单读取Reader的每行内容到List
- toLines(Reader) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
简单读取Reader的每行内容到List
- toLines(String) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
读取文件的每一行,读取规则见本类注释.
- toLines(Class<?>, String) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
读取文件的每一行,读取规则见本类注释.
- topN(Iterable<T>, int) - 类 中的静态方法cn.webfuse.core.kit.collection.CollectionKits
-
返回Iterable中最大的N个对象.
- topN(Iterable<T>, int, Comparator<? super T>) - 类 中的静态方法cn.webfuse.core.kit.collection.CollectionKits
-
返回Iterable中最大的N个对象.
- toPrettyString(Object) - 类 中的静态方法cn.webfuse.core.kit.ObjectKits
-
对象的toString(), 处理了对象为数组的情况,JDK的默认toString()只打数组的地址如 "[Ljava.lang.Integer;@490d6c15.
- toString(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
读取文件到String.
- toString(InputStream) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
简单读取InputStream到String.
- toString(Reader) - 类 中的静态方法cn.webfuse.core.kit.io.IOKits
-
简单读取Reader到String
- toString(String) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
读取文件的每一行,读取规则见本类注释.
- toString(Class<?>, String) - 类 中的静态方法cn.webfuse.core.kit.io.ResourceKits
-
读取文件的每一行,读取规则见本类注释.
- toString() - 类 中的方法cn.webfuse.core.kit.text.StringBuilderWriter
-
- toString() - 类 中的方法cn.webfuse.core.lang.concurrent.jsr166e.LongAdder
-
- toString() - 类 中的方法cn.webfuse.core.lang.Pair
-
- toString() - 类 中的方法cn.webfuse.core.lang.Triple
-
- toStringArray(Collection<String>) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
- toStringWithRootCause(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
拼装 短异常类名: 异常信息 <-- RootCause的短异常类名: 异常信息
- toStringWithShortName(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
拼装 短异常类名: 异常信息.
- touch(String) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
创建文件或更新时间戳.
- touch(File) - 类 中的静态方法cn.webfuse.core.kit.io.FileKits
-
创建文件或更新时间戳.
- toURI(String) - 类 中的静态方法cn.webfuse.core.kit.io.UrlResourceKits
-
- toXml(Object) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
Java Object->Xml without encoding.
- toXml(Object, String) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
Java Object->Xml with encoding.
- toXml(Object, Class, String) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
Java Object->Xml with encoding.
- toXml(Collection<?>, String, Class) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
Java Collection->Xml without encoding, 特别支持Root Element是Collection的情形.
- toXml(Collection<?>, String, Class, String) - 类 中的静态方法cn.webfuse.core.kit.mapper.XmlMapper
-
Java Collection->Xml with encoding, 特别支持Root Element是Collection的情形.
- trimAllWhitespace(String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
Trim all whitespace from the given String:
leading, trailing, and in between characters.
- Triple<L,M,R> - cn.webfuse.core.lang中的类
-
引入一个简简单单的Triple, 用于返回值返回三个元素.
- Triple(L, M, R) - 类 的构造器cn.webfuse.core.lang.Triple
-
Creates a new Triple.
- TRUE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- TryCatchKits - cn.webfuse.core.kit中的类
-
当lambda中遇到try-catch的时候可以使用这个进行
- TryCatchKits() - 类 的构造器cn.webfuse.core.kit.TryCatchKits
-
- TryCatchKits.UncheckedFunction<T,R> - cn.webfuse.core.kit中的接口
-
- unchecked(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
将CheckedException转换为RuntimeException重新抛出, 可以减少函数签名中的CheckExcetpion定义.
- UncheckedException - cn.webfuse.core.exception中的异常错误
-
CheckedException的wrapper.
- UncheckedException(Throwable) - 异常错误 的构造器cn.webfuse.core.exception.UncheckedException
-
- UNDERSCORE - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- unescapeHtml(String) - 类 中的静态方法cn.webfuse.core.kit.text.EscapeKits
-
Html解码,将HTML4格式的字符串转码解码为普通字符串.
- union(List<? extends E>, List<? extends E>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
list1,list2的并集(在list1或list2中的对象),产生新List
对比Apache Common Collection4 ListUtils, 优化了初始大小
copy from vjtools
- unionView(Set<? extends E>, Set<? extends E>) - 类 中的静态方法cn.webfuse.core.kit.collection.SetKits
-
set1, set2的并集(在set1或set2的对象)的只读view,不复制产生新的Set对象.
- uniqueNotNullList(List<T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
清理掉List中的Null对象,并唯一化
copy from vjtools
- unmodifiableList(List<? extends T>) - 类 中的静态方法cn.webfuse.core.kit.collection.ListKits
-
返回包装后不可修改的List.
- unwrap(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
如果是著名的包裹类,从cause中获得真正异常.
- unwrapAndUnchecked(Throwable) - 类 中的静态方法cn.webfuse.core.kit.ExceptionKits
-
组合unwrap与unchecked,用于处理反射/Callable的异常
- unwrapCglib(Object) - 类 中的静态方法cn.webfuse.core.kit.reflect.ClassKits
-
获取CGLib处理过后的实体的原Class.
- update(String, Object) - 类 中的方法cn.webfuse.core.kit.mapper.JsonMapper
-
当JSON里只含有Bean的部分属性時,更新一個已存在Bean,只覆盖該部分的属性.
- upperCamelToLowerUnderscore(String) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
大写驼峰(UpperCamel)-> 小写下划线(lower_underscore)
- urlDecode(String) - 类 中的静态方法cn.webfuse.core.kit.text.EscapeKits
-
URL 解码, Encode默认为UTF-8.
- urlEncode(String) - 类 中的静态方法cn.webfuse.core.kit.text.EscapeKits
-
URL 编码, Encode默认为UTF-8.
- UrlResourceKits - cn.webfuse.core.kit.io中的类
-
copy from vjtools
兼容文件url为无前缀, classpath:, file:// 三种方式的Resource读取工具集
e.g: classpath:com/myapp/config.xml, file:///data/config.xml, /data/config.xml
参考Spring ResourceUtils
- UrlResourceKits() - 类 的构造器cn.webfuse.core.kit.io.UrlResourceKits
-
- US_ASCII - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- utf8EncodedLength(CharSequence) - 类 中的静态方法cn.webfuse.core.kit.text.StringKits
-
计算字符串被UTF8编码后的字节数 via guava
- UTF_8 - 接口 中的静态变量cn.webfuse.core.constant.StringPool
-
- UUID - 接口 中的静态变量cn.webfuse.core.kit.id.IdGenerator
-
使用UUID生成id