A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 

A

AbstractConverter<T> - cn.hutool.core.convert中的类
抽象转换器,提供通用的转换逻辑,同时通过convertInternal实现对应类型的专属逻辑
转换器不会抛出转换异常,转换失败时会返回null
AbstractConverter() - 类 的构造器cn.hutool.core.convert.AbstractConverter
 
AbstractDateBasic - cn.hutool.core.date.format中的类
 
AbstractDateBasic(String, TimeZone, Locale) - 类 的构造器cn.hutool.core.date.format.AbstractDateBasic
构造,内部使用
accept(T, int) - 接口 中的方法cn.hutool.core.collection.CollUtil.Consumer
接受并处理一个参数
accept(K, V, int) - 接口 中的方法cn.hutool.core.collection.CollUtil.KVConsumer
接受并处理一对参数
accept(T) - 接口 中的方法cn.hutool.core.lang.Filter
是否接受对象
add(E) - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
add(File...) - 类 中的方法cn.hutool.core.io.resource.MultiFileResource
增加文件资源
add(Collection<File>) - 类 中的方法cn.hutool.core.io.resource.MultiFileResource
增加文件资源
add(Resource) - 类 中的方法cn.hutool.core.io.resource.MultiFileResource
 
add(Resource) - 类 中的方法cn.hutool.core.io.resource.MultiResource
增加资源
add(T) - 类 中的方法cn.hutool.core.lang.ConsistentHash
增加节点
每增加一个节点,就会在闭环上增加给定复制节点数
例如复制节点数是2,则每调用此方法一次,增加两个虚拟节点,这两个节点指向同一Node 由于hash算法会调用node的toString方法,故按照toString去重
add(byte) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
增加值
add(double) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
增加值
add(float) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
增加值
add(int) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
增加值
add(long) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
增加值
add(short) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
增加值
add(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
增加值
add(T, double) - 类 中的方法cn.hutool.core.lang.WeightRandom
增加对象
add(WeightRandom.WeightObj<T>) - 类 中的方法cn.hutool.core.lang.WeightRandom
增加对象权重
add(String) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
add(int, String) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
add(float, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
add(float, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
add(double, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
add(double, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
add(Double, Double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
add(Number, Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(Number...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(String...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
add(BigDecimal...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的加法运算
如果传入多个值为null或者空,则返回0
addAll(E[]) - 类 中的方法cn.hutool.core.collection.BoundedPriorityQueue
添加多个元素
参数为集合的情况请使用AbstractQueue.addAll(java.util.Collection<? extends E>)
addAll(Collection<T>, Object) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将指定对象全部加入到集合中
提供的对象如果为集合类型,会自动转换为目标元素类型
addAll(Collection<T>, Object, Type) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将指定对象全部加入到集合中
提供的对象如果为集合类型,会自动转换为目标元素类型
addAll(Collection<T>, Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
加入全部
addAll(Collection<T>, Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
加入全部
addAll(Collection<T>, Enumeration<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
加入全部
addAll(Collection<T>, T[]) - 类 中的静态方法cn.hutool.core.collection.CollUtil
加入全部
addAll(Collection<? extends String>) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
addAll(int, Collection<? extends String>) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
addAll(T[]...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将多个数组合并在一起
忽略null的数组
addAllIfNotContains(List<T>, List<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将另一个列表中的元素加入到列表中,如果列表中已经存在此元素则忽略之
addChain(Comparator<E>) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
 
addChain(Watcher) - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
addChain(E) - 接口 中的方法cn.hutool.core.lang.Chain
加入责任链
addChain(StrReplacer) - 类 中的方法cn.hutool.core.text.replacer.ReplacerChain
 
addComparator(Comparator<E>) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
在链的尾部添加比较器,使用正向排序
addComparator(Comparator<E>, boolean) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
在链的尾部添加比较器,使用给定排序方式
additiveHash(String, int) - 类 中的静态方法cn.hutool.core.util.HashUtil
加法hash
addJar(File) - 类 中的方法cn.hutool.core.lang.JarClassLoader
加载Jar文件,或者加载目录
addPrefixIfNot(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以prefix开头的,在开头补充 prefix
addShutdownHook(Runnable) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
增加一个JVM关闭后的钩子,用于在JVM关闭时执行某些操作
addSuffixIfNot(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以suffix结尾的,在尾部补充 suffix
addURL(URL) - 类 中的方法cn.hutool.core.lang.JarClassLoader
 
addWorker(SyncFinisher.Worker) - 类 中的方法cn.hutool.core.thread.SyncFinisher
增加工作线程
age(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
计算相对于dateToCompare的年龄,长用于计算指定生日在某年的年龄
ageOfNow(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
生日转为年龄,计算法定年龄
ageOfNow(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
生日转为年龄,计算法定年龄
alwaysDelimitText - 类 中的变量cn.hutool.core.text.csv.CsvWriteConfig
是否始终使用文本分隔符,文本包装符,默认false,按需添加
AMP - 类 中的静态变量cn.hutool.core.util.CharUtil
 
and(boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取与 BooleanUtil.and(true, true) = true BooleanUtil.and(false, false) = false BooleanUtil.and(true, false) = false BooleanUtil.and(true, true, false) = false BooleanUtil.and(true, true, true) = true
and(Boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取与 BooleanUtil.and(Boolean.TRUE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.and(Boolean.FALSE, Boolean.FALSE) = Boolean.FALSE BooleanUtil.and(Boolean.TRUE, Boolean.FALSE) = Boolean.FALSE BooleanUtil.and(Boolean.TRUE, Boolean.TRUE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.and(Boolean.FALSE, Boolean.FALSE, Boolean.TRUE) = Boolean.FALSE BooleanUtil.and(Boolean.TRUE, Boolean.FALSE, Boolean.TRUE) = Boolean.FALSE
AnnotationUtil - cn.hutool.core.annotation中的类
注解工具类
快速获取注解对象、注解值等工具封装
AnnotationUtil() - 类 的构造器cn.hutool.core.annotation.AnnotationUtil
 
apHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
AP算法
append(byte[], int, int) - 类 中的方法cn.hutool.core.io.FastByteBuffer
向快速缓冲加入数据
append(byte[]) - 类 中的方法cn.hutool.core.io.FastByteBuffer
向快速缓冲加入数据
append(byte) - 类 中的方法cn.hutool.core.io.FastByteBuffer
向快速缓冲加入一个字节
append(FastByteBuffer) - 类 中的方法cn.hutool.core.io.FastByteBuffer
将另一个快速缓冲加入到自身
append(String) - 类 中的方法cn.hutool.core.io.file.FileAppender
追加
append(String) - 类 中的方法cn.hutool.core.io.file.FileWriter
将String写入文件,追加模式
append(byte[], int, int) - 类 中的方法cn.hutool.core.io.file.FileWriter
追加数据到文件
append(Object) - 类 中的方法cn.hutool.core.text.StrBuilder
追加对象,对象会被转换为字符串
append(char) - 类 中的方法cn.hutool.core.text.StrBuilder
追加一个字符
append(char[]) - 类 中的方法cn.hutool.core.text.StrBuilder
追加一个字符数组
append(char[], int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
追加一个字符数组
append(CharSequence) - 类 中的方法cn.hutool.core.text.StrBuilder
 
append(CharSequence, int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
 
append(T[], T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将新元素添加到已有数组中
添加新元素会生成一个新的数组,不影响原数组
append(Object, T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将新元素添加到已有数组中
添加新元素会生成一个新的数组,不影响原数组
appendChild(Node, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
在已有节点上创建子节点
appendIfMissing(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为结尾,则在尾部添加结尾字符串
不忽略大小写
appendIfMissing(CharSequence, CharSequence, boolean, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为结尾,则在尾部添加结尾字符串
appendIfMissingIgnoreCase(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为结尾,则在尾部添加结尾字符串
忽略大小写
appendLines(Collection<T>) - 类 中的方法cn.hutool.core.io.file.FileWriter
将列表写入文件,追加模式
appendLines(Collection<T>, String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendLines(Collection<T>, File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendLines(Collection<T>, String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendLines(Collection<T>, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendRange(int, int, Collection<Integer>) - 类 中的静态方法cn.hutool.core.util.NumberUtil
将给定范围内的整数添加到已有集合中,步进为1
appendRange(int, int, int, Collection<Integer>) - 类 中的静态方法cn.hutool.core.util.NumberUtil
将给定范围内的整数添加到已有集合中
appendString(String, String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,追加模式
appendString(String, String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,追加模式
appendString(String, File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,追加模式
appendString(String, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,追加模式
appendUtf8Lines(Collection<T>, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendUtf8Lines(Collection<T>, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,追加模式
appendUtf8String(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,UTF-8编码追加模式
appendUtf8String(String, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,UTF-8编码追加模式
Arrangement - cn.hutool.core.math中的类
排列A(n, m)
排列组合相关类 参考:http://cgs1999.iteye.com/blog/2327664
Arrangement(String[]) - 类 的构造器cn.hutool.core.math.Arrangement
构造
arrangementCount(int, int) - 类 中的静态方法cn.hutool.core.math.MathUtil
计算排列数,即A(n, m) = n!
arrangementCount(int) - 类 中的静态方法cn.hutool.core.math.MathUtil
计算排列数,即A(n, n) = n!
arrangementSelect(String[], int) - 类 中的静态方法cn.hutool.core.math.MathUtil
排列选择(从列表中选择n个排列)
arrangementSelect(String[]) - 类 中的静态方法cn.hutool.core.math.MathUtil
全排列选择(列表全部参与排列)
array(int) - 类 中的方法cn.hutool.core.io.FastByteBuffer
根据索引位返回缓冲集中的缓冲
ArrayConverter - cn.hutool.core.convert.impl中的类
数组转换器,包括原始类型数组
ArrayConverter(Class<?>) - 类 的构造器cn.hutool.core.convert.impl.ArrayConverter
构造
ArrayIter<E> - cn.hutool.core.collection中的类
数组Iterator对象
ArrayIter(Object) - 类 的构造器cn.hutool.core.collection.ArrayIter
构造
ArrayIter(Object, int) - 类 的构造器cn.hutool.core.collection.ArrayIter
构造
ArrayIter(Object, int, int) - 类 的构造器cn.hutool.core.collection.ArrayIter
构造
ArrayTypeGetter - cn.hutool.core.getter中的接口
数组类型的Get接口
ArrayUtil - cn.hutool.core.util中的类
数组工具类
ArrayUtil() - 类 的构造器cn.hutool.core.util.ArrayUtil
 
ASCIIStrCache - cn.hutool.core.text中的类
ASCII字符对应的字符串缓存
ASCIIStrCache() - 类 的构造器cn.hutool.core.text.ASCIIStrCache
 
ascToBcd(byte[]) - 类 中的静态方法cn.hutool.core.codec.BCD
ASCII转BCD
ascToBcd(byte[], int) - 类 中的静态方法cn.hutool.core.codec.BCD
ASCII转BCD
asEnumeration(Iterator<E>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterator转换为Enumeration Adapt the specified Iterator to the Enumeration interface.
asIterable(Iterator<E>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterator 转为 Iterable
asIterable(Iterator<E>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterator 转为 Iterable
asIterator(Enumeration<E>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Enumeration转换为Iterator Adapt the specified Enumeration to the Iterator interface
asIterator(Enumeration<E>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Enumeration转换为Iterator Adapt the specified Enumeration to the Iterator interface
Assert - cn.hutool.core.lang中的类
断言
断言某些对象或值是否符合规定,否则抛出异常。
Assert() - 类 的构造器cn.hutool.core.lang.Assert
 
AtomicBooleanConverter - cn.hutool.core.convert.impl中的类
AtomicBoolean转换器
AtomicBooleanConverter() - 类 的构造器cn.hutool.core.convert.impl.AtomicBooleanConverter
 
AtomicLoader<T> - cn.hutool.core.lang.loader中的类
原子引用加载器
使用AtomicReference 实懒加载,过程如下 1.
AtomicLoader() - 类 的构造器cn.hutool.core.lang.loader.AtomicLoader
 
AtomicReferenceConverter - cn.hutool.core.convert.impl中的类
AtomicReference转换器
AtomicReferenceConverter() - 类 的构造器cn.hutool.core.convert.impl.AtomicReferenceConverter
 
await() - 类 中的方法cn.hutool.core.thread.SyncFinisher
等待所有Worker工作结束,否则阻塞

B

BACKSLASH - 类 中的静态变量cn.hutool.core.util.CharUtil
 
BACKSLASH - 类 中的静态变量cn.hutool.core.util.StrUtil
 
Base32 - cn.hutool.core.codec中的类
Base32 - encodes and decodes RFC3548 Base32 (see http://www.faqs.org/rfcs/rfc3548.html )
base32就是用32(2的5次方)个特定ASCII码来表示256个ASCII码。
Base64 - cn.hutool.core.codec中的类
Base64工具类,提供Base64的编码和解码方案
base64编码是用64(2的6次方)个ASCII字符来表示256(2的8次方)个ASCII字符,
也就是三位二进制数组经过编码后变为四位的ASCII字符显示,长度比原来增加1/3。
Base64() - 类 的构造器cn.hutool.core.codec.Base64
 
Base64Decoder - cn.hutool.core.codec中的类
Base64解码实现
Base64Decoder() - 类 的构造器cn.hutool.core.codec.Base64Decoder
 
Base64Encoder - cn.hutool.core.codec中的类
Base64编码
Base64Encoder() - 类 的构造器cn.hutool.core.codec.Base64Encoder
 
BASE_CHAR - 类 中的静态变量cn.hutool.core.util.RandomUtil
用于随机选的字符
BASE_CHAR_NUMBER - 类 中的静态变量cn.hutool.core.util.RandomUtil
用于随机选的字符和数字
BASE_NUMBER - 类 中的静态变量cn.hutool.core.util.RandomUtil
用于随机选的数字
BASIC_ESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Escape
 
BASIC_UNESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Unescape
 
BasicType - cn.hutool.core.convert中的枚举
基本变量类型的枚举
基本类型枚举包括原始类型和包装类型
BasicTypeGetter<K> - cn.hutool.core.getter中的接口
基本类型的getter接口
提供一个统一的接口定义返回不同类型的值(基本类型)
BCD - cn.hutool.core.codec中的类
BCD码(Binary-Coded Decimal‎)亦称二进码十进数或二-十进制代码
BCD码这种编码形式利用了四个位元来储存一个十进制的数码,使二进制和十进制之间的转换得以快捷的进行
see http://cuisuqiang.iteye.com/blog/1429956
bcdToStr(byte[]) - 类 中的静态方法cn.hutool.core.codec.BCD
BCD转ASCII字符串
BeanConverter<T> - cn.hutool.core.convert.impl中的类
Bean转换器,支持: Map =》 Bean Bean =》 Bean ValueProvider =》 Bean
BeanConverter(Class<T>) - 类 的构造器cn.hutool.core.convert.impl.BeanConverter
构造,默认转换选项,注入失败的字段忽略
BeanConverter(Class<T>, CopyOptions) - 类 的构造器cn.hutool.core.convert.impl.BeanConverter
构造
BeanCopier<T> - cn.hutool.core.bean.copier中的类
Bean拷贝
BeanCopier(Object, T, CopyOptions) - 类 的构造器cn.hutool.core.bean.copier.BeanCopier
构造
BeanDesc - cn.hutool.core.bean中的类
Bean信息描述做为BeanInfo替代方案,此对象持有JavaBean中的setters和getters等相关信息描述
查找Getter和Setter方法时会: 1.
BeanDesc(Class<?>) - 类 的构造器cn.hutool.core.bean.BeanDesc
构造
BeanDesc.PropDesc - cn.hutool.core.bean中的类
属性描述
BeanDesc.PropDesc(Field, Method, Method) - 类 的构造器cn.hutool.core.bean.BeanDesc.PropDesc
构造
Getter和Setter方法设置为默认可访问
BeanDescCache - cn.hutool.core.bean中的枚举
Bean属性缓存
缓存用于防止多次反射造成的性能问题
BeanException - cn.hutool.core.bean中的异常错误
Bean异常
BeanException(Throwable) - 异常错误 的构造器cn.hutool.core.bean.BeanException
 
BeanException(String) - 异常错误 的构造器cn.hutool.core.bean.BeanException
 
BeanException(String, Object...) - 异常错误 的构造器cn.hutool.core.bean.BeanException
 
BeanException(String, Throwable) - 异常错误 的构造器cn.hutool.core.bean.BeanException
 
BeanException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.bean.BeanException
 
BeanInfoCache - cn.hutool.core.bean中的枚举
Bean属性缓存
缓存用于防止多次反射造成的性能问题
BeanPath - cn.hutool.core.bean中的类
Bean路径表达式,用于获取多层嵌套Bean中的字段值或Bean对象
根据给定的表达式,查找Bean中对应的属性值对象。
BeanPath(String) - 类 的构造器cn.hutool.core.bean.BeanPath
构造
BeanResolver - cn.hutool.core.bean中的类
已过时。
BeanResolver(Object, String) - 类 的构造器cn.hutool.core.bean.BeanResolver
已过时。
构造
beanToMap(Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
对象转Map,不进行驼峰转下划线,不忽略值为空的字段
beanToMap(Object, boolean, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
对象转Map
beanToMap(Object, Map<String, Object>, boolean, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
对象转Map
beanToMap(Object, Map<String, Object>, boolean, Editor<String>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
对象转Map
通过实现Editor 可以自定义字段值,如果这个Editor返回null则忽略这个字段,以便实现: 1.
BeanUtil - cn.hutool.core.bean中的类
Bean工具类 把一个拥有对属性进行set和get方法的类,我们就可以称之为JavaBean。
BeanUtil() - 类 的构造器cn.hutool.core.bean.BeanUtil
 
BeanValueProvider - cn.hutool.core.bean.copier.provider中的类
Bean的值提供者
BeanValueProvider(Object, boolean, boolean) - 类 的构造器cn.hutool.core.bean.copier.provider.BeanValueProvider
构造
beginOfDay(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某天的开始时间
beginOfDay(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某天的开始时间
beginOfMonth(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某月的开始时间
beginOfMonth(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某月的开始时间
beginOfQuarter(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某季度的开始时间
beginOfQuarter(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某季度的开始时间
beginOfWeek(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的开始时间
beginOfWeek(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的开始时间
beginOfWeek(Calendar, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的开始时间,周一定为一周的开始时间
beginOfYear(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某年的开始时间
beginOfYear(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某年的开始时间
bernstein(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
Bernstein's hash
between(DateUnit) - 类 中的方法cn.hutool.core.date.DateBetween
判断两个日期相差的时长
返回 给定单位的时长差
between(Date) - 类 中的方法cn.hutool.core.date.DateTime
计算相差时长
between(Date, DateUnit) - 类 中的方法cn.hutool.core.date.DateTime
计算相差时长
between(Date, DateUnit, BetweenFormater.Level) - 类 中的方法cn.hutool.core.date.DateTime
计算相差时长
between(Date, Date, DateUnit) - 类 中的静态方法cn.hutool.core.date.DateUtil
判断两个日期相差的时长,只保留绝对值
between(Date, Date, DateUnit, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
判断两个日期相差的时长
betweenDay(Date, Date, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
判断两个日期相差的天数
有时候我们计算相差天数的时候需要忽略时分秒。
BetweenFormater - cn.hutool.core.date中的类
时长格式化器
BetweenFormater(long, BetweenFormater.Level) - 类 的构造器cn.hutool.core.date.BetweenFormater
构造
BetweenFormater(long, BetweenFormater.Level, int) - 类 的构造器cn.hutool.core.date.BetweenFormater
构造
BetweenFormater.Level - cn.hutool.core.date中的枚举
格式化等级枚举
betweenMonth(boolean) - 类 中的方法cn.hutool.core.date.DateBetween
计算两个日期相差月数
在非重置情况下,如果起始日期的天小于结束日期的天,月数要少算1(不足1个月)
betweenMonth(Date, Date, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
计算两个日期相差月数
在非重置情况下,如果起始日期的天小于结束日期的天,月数要少算1(不足1个月)
betweenMs(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
判断两个日期相差的毫秒数
betweenYear(boolean) - 类 中的方法cn.hutool.core.date.DateBetween
计算两个日期相差年数
在非重置情况下,如果起始日期的月小于结束日期的月,年数要少算1(不足1年)
betweenYear(Date, Date, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
计算两个日期相差年数
在非重置情况下,如果起始日期的月小于结束日期的月,年数要少算1(不足1年)
binary() - 类 中的方法cn.hutool.core.img.Img
彩色转为黑白二值化图片
binary(File, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片,根据目标文件扩展名确定转换后的格式
binary(InputStream, OutputStream, String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片
此方法并不关闭流
binary(ImageInputStream, ImageOutputStream, String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白黑白二值化图片
此方法并不关闭流
binary(Image, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片,根据目标文件扩展名确定转换后的格式
binary(Image, OutputStream, String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片
此方法并不关闭流,输出JPG格式
binary(Image, ImageOutputStream, String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片
此方法并不关闭流,输出JPG格式
binary(Image) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白二值化图片
binaryToInt(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
二进制转int
binaryToLong(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
二进制转long
BIRTHDAY - 类 中的静态变量cn.hutool.core.lang.PatternPool
生日
BIRTHDAY - 类 中的静态变量cn.hutool.core.lang.Validator
生日
bkdrHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
BKDR算法
blankToDefault(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果字符串是null或者""或者空白,则返回指定默认字符串,否则返回字符串本身。
BOMInputStream - cn.hutool.core.io中的类
读取带BOM头的流内容,getCharset()方法调用后会得到BOM头的编码,且会去除BOM头
BOM定义:http://www.unicode.org/unicode/faq/utf_bom.html
00 00 FE FF = UTF-32, big-endian FF FE 00 00 = UTF-32, little-endian EF BB BF = UTF-8 FE FF = UTF-16, big-endian FF FE = UTF-16, little-endian 使用:
String enc = "UTF-8"; // or NULL to use systemdefault
FileInputStream fis = new FileInputStream(file);
BOMInputStream uin = new BOMInputStream(fis, enc);
enc = uin.getCharset(); // check and skip possible BOM bytes


参考: http://akini.mbnet.fi/java/unicodereader/UnicodeInputStream.java.txt
BOMInputStream(InputStream) - 类 的构造器cn.hutool.core.io.BOMInputStream
 
BOMInputStream(InputStream, String) - 类 的构造器cn.hutool.core.io.BOMInputStream
 
BooleanConverter - cn.hutool.core.convert.impl中的类
波尔转换器
BooleanConverter() - 类 的构造器cn.hutool.core.convert.impl.BooleanConverter
 
BooleanUtil - cn.hutool.core.util中的类
Boolean类型相关工具类
BooleanUtil() - 类 的构造器cn.hutool.core.util.BooleanUtil
 
BoundedPriorityQueue<E> - cn.hutool.core.collection中的类
有界优先队列
按照给定的排序规则,排序元素,当队列满时,按照给定的排序规则淘汰末尾元素(去除末尾元素)
BoundedPriorityQueue(int) - 类 的构造器cn.hutool.core.collection.BoundedPriorityQueue
 
BoundedPriorityQueue(int, Comparator<? super E>) - 类 的构造器cn.hutool.core.collection.BoundedPriorityQueue
构造
BRACKET_END - 类 中的静态变量cn.hutool.core.util.CharUtil
 
BRACKET_END - 类 中的静态变量cn.hutool.core.util.StrUtil
 
BRACKET_START - 类 中的静态变量cn.hutool.core.util.CharUtil
 
BRACKET_START - 类 中的静态变量cn.hutool.core.util.StrUtil
 
brief(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
将给定字符串,变成 "xxx...xxx" 形式的字符串
BufferUtil - cn.hutool.core.io中的类
ByteBuffer 工具类
此工具来自于 t-io 项目以及其它项目的相关部分收集
ByteBuffer的相关介绍见:https://www.cnblogs.com/ruber/p/6857159.html
BufferUtil() - 类 的构造器cn.hutool.core.io.BufferUtil
 
build() - 接口 中的方法cn.hutool.core.lang.Builder
构建
build() - 类 中的方法cn.hutool.core.map.MapBuilder
创建后的map
build() - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
构建ThreadPoolExecutor
build() - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
构建ThreadFactory
Builder<T> - cn.hutool.core.lang中的接口
建造者模式接口定义
builder() - 类 中的静态方法cn.hutool.core.map.MapUtil
创建链接调用map
builder(Map<K, V>) - 类 中的静态方法cn.hutool.core.map.MapUtil
创建链接调用map
builder(K, V) - 类 中的静态方法cn.hutool.core.map.MapUtil
创建链接调用map
builder() - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StringBuilder对象
builder(int) - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StringBuilder对象
builder(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StringBuilder对象
buildInetSocketAddress(String, int) - 类 中的静态方法cn.hutool.core.util.NetUtil
构建InetSocketAddress
当host中包含端口时(用“:”隔开),使用host中的端口,否则使用默认端口
给定host为空时使用本地host(127.0.0.1)
ByteArrayConverter - cn.hutool.core.convert.impl中的类
byte 类型数组转换器
ByteArrayConverter() - 类 的构造器cn.hutool.core.convert.impl.ByteArrayConverter
 
byteBuffer(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串转换为byteBuffer
bytes(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
编码字符串
使用系统默认编码
bytes(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
编码字符串
bytes(CharSequence, Charset) - 类 中的静态方法cn.hutool.core.util.StrUtil
编码字符串
BytesResource - cn.hutool.core.io.resource中的类
基于byte[]的资源获取器
注意:此对象中getUrl方法始终返回null
BytesResource(byte[]) - 类 的构造器cn.hutool.core.io.resource.BytesResource
构造
BytesResource(byte[], String) - 类 的构造器cn.hutool.core.io.resource.BytesResource
构造
bytesToInt(byte[]) - 类 中的静态方法cn.hutool.core.convert.Convert
byte[]转int值
bytesToLong(byte[]) - 类 中的静态方法cn.hutool.core.convert.Convert
byte数组转long
from: https://stackoverflow.com/questions/4485128/how-do-i-convert-long-to-byte-and-back-in-java
bytesToShort(byte[]) - 类 中的静态方法cn.hutool.core.convert.Convert
byte数组转short
byteToUnsignedInt(byte) - 类 中的静态方法cn.hutool.core.convert.Convert
byte转无符号int
byteValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 

C

C_BACKSLASH - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_BRACKET_END - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_BRACKET_START - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_COLON - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_COMMA - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_CR - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_DELIM_END - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_DELIM_START - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_DOT - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_LF - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_SLASH - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_SPACE - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_TAB - 类 中的静态变量cn.hutool.core.util.StrUtil
 
C_UNDERLINE - 类 中的静态变量cn.hutool.core.util.StrUtil
 
calendar(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
转换为Calendar对象
calendar(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
转换为Calendar对象
CalendarConverter - cn.hutool.core.convert.impl中的类
日期转换器
CalendarConverter() - 类 的构造器cn.hutool.core.convert.impl.CalendarConverter
 
call(P...) - 接口 中的方法cn.hutool.core.lang.Func
执行函数
call() - 接口 中的方法cn.hutool.core.lang.VoidFunc
执行函数
Caller - cn.hutool.core.lang.caller中的接口
调用者接口
可以通过此接口的实现类方法获取调用者、多级调用者以及判断是否被调用
CallerUtil - cn.hutool.core.lang.caller中的类
调用者。
CallerUtil() - 类 的构造器cn.hutool.core.lang.caller.CallerUtil
 
CamelCaseLinkedMap<K,V> - cn.hutool.core.map中的类
驼峰Key风格的LinkedHashMap
对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖
CamelCaseLinkedMap() - 类 的构造器cn.hutool.core.map.CamelCaseLinkedMap
构造
CamelCaseLinkedMap(int, float) - 类 的构造器cn.hutool.core.map.CamelCaseLinkedMap
构造
CamelCaseLinkedMap(int) - 类 的构造器cn.hutool.core.map.CamelCaseLinkedMap
构造
CamelCaseLinkedMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CamelCaseLinkedMap
构造
CamelCaseMap<K,V> - cn.hutool.core.map中的类
驼峰Key风格的Map
对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖
CamelCaseMap() - 类 的构造器cn.hutool.core.map.CamelCaseMap
构造
CamelCaseMap(int, float) - 类 的构造器cn.hutool.core.map.CamelCaseMap
构造
CamelCaseMap(int) - 类 的构造器cn.hutool.core.map.CamelCaseMap
构造
CamelCaseMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CamelCaseMap
构造
captureScreen() - 类 中的静态方法cn.hutool.core.swing.RobotUtil
截取全屏
captureScreen(File) - 类 中的静态方法cn.hutool.core.swing.RobotUtil
截取全屏到文件
captureScreen(Rectangle) - 类 中的静态方法cn.hutool.core.swing.RobotUtil
截屏
captureScreen(Rectangle, File) - 类 中的静态方法cn.hutool.core.swing.RobotUtil
截屏
captureScreen() - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
截取全屏
captureScreen(File) - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
截取全屏到文件
captureScreen(Rectangle) - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
截屏
captureScreen(Rectangle, File) - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
截屏
CaseInsensitiveLinkedMap<K,V> - cn.hutool.core.map中的类
忽略大小写的LinkedHashMap
对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖
CaseInsensitiveLinkedMap() - 类 的构造器cn.hutool.core.map.CaseInsensitiveLinkedMap
构造
CaseInsensitiveLinkedMap(int, float) - 类 的构造器cn.hutool.core.map.CaseInsensitiveLinkedMap
构造
CaseInsensitiveLinkedMap(int) - 类 的构造器cn.hutool.core.map.CaseInsensitiveLinkedMap
构造
CaseInsensitiveLinkedMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CaseInsensitiveLinkedMap
构造
CaseInsensitiveLinkedMap(float, Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CaseInsensitiveLinkedMap
构造
CaseInsensitiveMap<K,V> - cn.hutool.core.map中的类
忽略大小写的Map
对KEY忽略大小写,get("Value")和get("value")获得的值相同,put进入的值也会被覆盖
CaseInsensitiveMap() - 类 的构造器cn.hutool.core.map.CaseInsensitiveMap
构造
CaseInsensitiveMap(int, float) - 类 的构造器cn.hutool.core.map.CaseInsensitiveMap
构造
CaseInsensitiveMap(int) - 类 的构造器cn.hutool.core.map.CaseInsensitiveMap
构造
CaseInsensitiveMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CaseInsensitiveMap
构造
CaseInsensitiveMap(float, Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CaseInsensitiveMap
构造
cast(Class<?>, Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
强转数组类型
强制转换的前提是数组元素类型可被强制转换
强制转换后会生成一个新数组
CastConverter<T> - cn.hutool.core.convert.impl中的类
强转转换器
CastConverter() - 类 的构造器cn.hutool.core.convert.impl.CastConverter
 
causeInstanceOf(Class<? extends Throwable>) - 异常错误 中的方法cn.hutool.core.io.IORuntimeException
导致这个异常的异常是否是指定类型的异常
causeInstanceOf(Class<? extends Throwable>) - 异常错误 中的方法cn.hutool.core.io.resource.NoResourceException
导致这个异常的异常是否是指定类型的异常
Chain<E,T> - cn.hutool.core.lang中的接口
责任链接口
CharacterConverter - cn.hutool.core.convert.impl中的类
字符转换器
CharacterConverter() - 类 的构造器cn.hutool.core.convert.impl.CharacterConverter
 
charAt(int) - 类 中的方法cn.hutool.core.text.StrBuilder
 
charset - 类 中的变量cn.hutool.core.io.file.FileWrapper
 
charset(String) - 类 中的静态方法cn.hutool.core.util.CharsetUtil
转换为Charset对象
CHARSET_GBK - 类 中的静态变量cn.hutool.core.util.CharsetUtil
GBK
CHARSET_ISO_8859_1 - 类 中的静态变量cn.hutool.core.util.CharsetUtil
ISO-8859-1
CHARSET_UTF_8 - 类 中的静态变量cn.hutool.core.util.CharsetUtil
UTF-8
CharsetConverter - cn.hutool.core.convert.impl中的类
编码对象转换器
CharsetConverter() - 类 的构造器cn.hutool.core.convert.impl.CharsetConverter
 
CharsetUtil - cn.hutool.core.util中的类
字符集工具类
CharsetUtil() - 类 的构造器cn.hutool.core.util.CharsetUtil
 
CharUtil - cn.hutool.core.util中的类
字符工具类
部分工具来自于Apache Commons系列
CharUtil() - 类 的构造器cn.hutool.core.util.CharUtil
 
checkBetween(int, int, int) - 类 中的静态方法cn.hutool.core.lang.Assert
检查值是否在指定范围内
checkBetween(long, long, long) - 类 中的静态方法cn.hutool.core.lang.Assert
检查值是否在指定范围内
checkBetween(double, double, double) - 类 中的静态方法cn.hutool.core.lang.Assert
检查值是否在指定范围内
checkBetween(Number, Number, Number) - 类 中的静态方法cn.hutool.core.lang.Assert
检查值是否在指定范围内
checkIndex(int, int) - 类 中的静态方法cn.hutool.core.lang.Assert
检查下标(数组、集合、字符串)是否符合要求,下标必须满足: 0 <= index < size
checkIndex(int, int, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
检查下标(数组、集合、字符串)是否符合要求,下标必须满足: 0 <= index < size
checkSlip(File, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
检查父完整路径是否为自路径的前半部分,如果不是说明不是子路径,可能存在slip注入。
checksum(File, Checksum) - 类 中的静态方法cn.hutool.core.io.FileUtil
计算文件校验码
checksum(InputStream, Checksum) - 类 中的静态方法cn.hutool.core.io.IoUtil
计算流的校验码,计算后关闭流
checksumCRC32(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
计算文件CRC32校验码
checksumCRC32(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
计算流CRC32校验码,计算后关闭流
CHINESE - 类 中的静态变量cn.hutool.core.lang.PatternPool
单个中文汉字
CHINESES - 类 中的静态变量cn.hutool.core.lang.PatternPool
中文汉字
CITIZEN_ID - 类 中的静态变量cn.hutool.core.lang.PatternPool
18位身份证号码
CITIZEN_ID - 类 中的静态变量cn.hutool.core.lang.Validator
身份证号码
CLASS_EXT - 类 中的静态变量cn.hutool.core.io.FileUtil
Class文件扩展名
ClassConverter - cn.hutool.core.convert.impl中的类
类转换器
将类名转换为类
ClassConverter() - 类 的构造器cn.hutool.core.convert.impl.ClassConverter
 
ClassLoaderUtil - cn.hutool.core.util中的类
ClassLoader工具类
ClassLoaderUtil() - 类 的构造器cn.hutool.core.util.ClassLoaderUtil
 
CLASSPATH_URL_PREFIX - 类 中的静态变量cn.hutool.core.util.URLUtil
针对ClassPath路径的伪协议前缀(兼容Spring): "classpath:"
ClassPathResource - cn.hutool.core.io.resource中的类
ClassPath单一资源访问类
传入路径path必须为相对路径,如果传入绝对路径,Linux路径会去掉开头的“/”,而Windows路径会直接报错。
ClassPathResource(String) - 类 的构造器cn.hutool.core.io.resource.ClassPathResource
构造
ClassPathResource(String, ClassLoader) - 类 的构造器cn.hutool.core.io.resource.ClassPathResource
构造
ClassPathResource(String, Class<?>) - 类 的构造器cn.hutool.core.io.resource.ClassPathResource
构造
ClassPathResource(String, ClassLoader, Class<?>) - 类 的构造器cn.hutool.core.io.resource.ClassPathResource
构造
ClassScaner - cn.hutool.core.lang中的类
类扫描器
ClassScaner() - 类 的构造器cn.hutool.core.lang.ClassScaner
构造,默认UTF-8编码
ClassScaner(String) - 类 的构造器cn.hutool.core.lang.ClassScaner
构造,默认UTF-8编码
ClassScaner(String, Filter<Class<?>>) - 类 的构造器cn.hutool.core.lang.ClassScaner
构造,默认UTF-8编码
ClassScaner(String, Filter<Class<?>>, Charset) - 类 的构造器cn.hutool.core.lang.ClassScaner
构造
ClassUtil - cn.hutool.core.util中的类
类工具类
ClassUtil() - 类 的构造器cn.hutool.core.util.ClassUtil
 
clean(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
清空文件夹
注意:清空文件夹时不会判断文件夹是否为空,如果不空则递归删除子文件或文件夹
某个文件删除失败会终止删除操作
clean(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
清空文件夹
注意:清空文件夹时不会判断文件夹是否为空,如果不空则递归删除子文件或文件夹
某个文件删除失败会终止删除操作
cleanBlank(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
清理空白字符
cleanInvalid(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
清除文件名中的在Windows下不支持的非法字符,包括: \ / : * ?
cleanInvalid(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
去除XML文本中的无效字符
clear() - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
clear() - 类 中的静态方法cn.hutool.core.lang.PatternPool
清空缓存池
clear() - 类 中的方法cn.hutool.core.lang.SimpleCache
清空缓存池
clear() - 类 中的方法cn.hutool.core.lang.WeightRandom
清空权重表
clear() - 类 中的方法cn.hutool.core.map.MapProxy
 
clear() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
clear() - 类 中的方法cn.hutool.core.text.StrBuilder
删除全部字符,位置归零
clearWorker() - 类 中的方法cn.hutool.core.thread.SyncFinisher
清空工作线程对象
ClipboardUtil - cn.hutool.core.swing中的类
系统剪贴板工具类
ClipboardUtil() - 类 的构造器cn.hutool.core.swing.ClipboardUtil
 
ClipboardUtil.ImageSelection - cn.hutool.core.swing中的类
图片转换器,用于将图片对象转换为剪贴板支持的对象
此对象也用于将图像文件和DataFlavor.imageFlavor 元信息对应
ClipboardUtil.ImageSelection(Image) - 类 的构造器cn.hutool.core.swing.ClipboardUtil.ImageSelection
构造
clockSequence() - 类 中的方法cn.hutool.core.lang.UUID
与此 UUID 相关联的时钟序列值。
clone() - 接口 中的方法cn.hutool.core.clone.Cloneable
克隆当前对象,浅复制
clone() - 类 中的方法cn.hutool.core.clone.CloneSupport
 
clone() - 类 中的方法cn.hutool.core.lang.Dict
 
clone(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
克隆数组
clone(T) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
克隆数组,如果非数组返回null
clone(T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
克隆对象
如果对象实现Cloneable接口,调用其clone方法
如果实现Serializable接口,执行深度克隆
否则返回null
Cloneable<T> - cn.hutool.core.clone中的接口
克隆支持接口
cloneByStream(T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
序列化后拷贝流的方式克隆
对象必须实现Serializable接口
cloneIfPossible(T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
返回克隆后的对象,如果克隆失败,返回原对象
CloneRuntimeException - cn.hutool.core.clone中的异常错误
克隆异常
CloneRuntimeException(Throwable) - 异常错误 的构造器cn.hutool.core.clone.CloneRuntimeException
 
CloneRuntimeException(String) - 异常错误 的构造器cn.hutool.core.clone.CloneRuntimeException
 
CloneRuntimeException(String, Object...) - 异常错误 的构造器cn.hutool.core.clone.CloneRuntimeException
 
CloneRuntimeException(String, Throwable) - 异常错误 的构造器cn.hutool.core.clone.CloneRuntimeException
 
CloneRuntimeException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.clone.CloneRuntimeException
 
CloneSupport<T> - cn.hutool.core.clone中的类
克隆支持类,提供默认的克隆方法
CloneSupport() - 类 的构造器cn.hutool.core.clone.CloneSupport
 
close() - 类 中的方法cn.hutool.core.collection.LineIter
关闭Reader
close() - 类 中的方法cn.hutool.core.io.BOMInputStream
 
close() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
此方法无任何效果,当流被关闭后不会抛出IOException
close(Closeable) - 类 中的静态方法cn.hutool.core.io.IoUtil
关闭
关闭失败不会抛出异常
close(AutoCloseable) - 类 中的静态方法cn.hutool.core.io.IoUtil
关闭
关闭失败不会抛出异常
close() - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
关闭监听
close() - 类 中的方法cn.hutool.core.text.csv.CsvParser
 
close() - 类 中的方法cn.hutool.core.text.csv.CsvWriter
 
cn.hutool.core - 程序包 cn.hutool.core
Hutool核心方法及数据结构包
cn.hutool.core.annotation - 程序包 cn.hutool.core.annotation
注解包,提供增强型注解和注解工具类
cn.hutool.core.bean - 程序包 cn.hutool.core.bean
Bean相关操作,包括Bean信息描述,Bean路径表达式、动态Bean、Bean工具等
cn.hutool.core.bean.copier - 程序包 cn.hutool.core.bean.copier
Bean拷贝实现,包括拷贝选项等
cn.hutool.core.bean.copier.provider - 程序包 cn.hutool.core.bean.copier.provider
Bean值提供者方式封装
cn.hutool.core.clone - 程序包 cn.hutool.core.clone
克隆封装
cn.hutool.core.codec - 程序包 cn.hutool.core.codec
BaseN以及BCD编码封装
cn.hutool.core.collection - 程序包 cn.hutool.core.collection
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
cn.hutool.core.comparator - 程序包 cn.hutool.core.comparator
各种比较器(Comparator)实现和封装
cn.hutool.core.convert - 程序包 cn.hutool.core.convert
万能类型转换器以及各种类型转换的实现类,其中Convert为转换器入口,提供各种toXXX方法和convert方法
cn.hutool.core.convert.impl - 程序包 cn.hutool.core.convert.impl
各种类型转换的实现类,其都为Converter接口的实现,用于将未知的Object类型转换为指定类型
cn.hutool.core.date - 程序包 cn.hutool.core.date
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
cn.hutool.core.date.format - 程序包 cn.hutool.core.date.format
提供线程安全的日期格式的格式化和解析实现
cn.hutool.core.exceptions - 程序包 cn.hutool.core.exceptions
特殊异常封装,同时提供异常工具ExceptionUtil
cn.hutool.core.getter - 程序包 cn.hutool.core.getter
getXXX方法的接口和抽象实现
cn.hutool.core.img - 程序包 cn.hutool.core.img
图像处理相关工具类封装
cn.hutool.core.io - 程序包 cn.hutool.core.io
IO相关封装和工具类,包括Inputstream和OutputStream实现类,工具包括流工具IoUtil、文件工具FileUtil和Buffer工具BufferUtil
cn.hutool.core.io.file - 程序包 cn.hutool.core.io.file
对文件读写的封装,包括文件拷贝、文件读取、文件写出、行处理等
cn.hutool.core.io.resource - 程序包 cn.hutool.core.io.resource
针对ClassPath和文件中资源读取的封装,主要入口为工具类ResourceUtil
cn.hutool.core.io.watch - 程序包 cn.hutool.core.io.watch
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
cn.hutool.core.io.watch.watchers - 程序包 cn.hutool.core.io.watch.watchers
文件监听中的观察者实现类,包括延迟处理、处理链等
cn.hutool.core.lang - 程序包 cn.hutool.core.lang
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
cn.hutool.core.lang.caller - 程序包 cn.hutool.core.lang.caller
调用者接口及实现。
cn.hutool.core.lang.copier - 程序包 cn.hutool.core.lang.copier
拷贝抽象实现,通过抽象拷贝,可以实现文件、流、Buffer之间的拷贝实现
cn.hutool.core.lang.loader - 程序包 cn.hutool.core.lang.loader
加载器的抽象接口和实现,包括懒加载的实现等
cn.hutool.core.lang.mutable - 程序包 cn.hutool.core.lang.mutable
提供可变值对象的封装,用于封装int、long等不可变值,使其可变
cn.hutool.core.map - 程序包 cn.hutool.core.map
Map相关封装,提供特殊Map实现以及Map工具MapUtil
cn.hutool.core.math - 程序包 cn.hutool.core.math
提供数学计算相关封装,包括排列组合等,入口为MathUtil
cn.hutool.core.swing - 程序包 cn.hutool.core.swing
Swing和awt相关封装
cn.hutool.core.text - 程序包 cn.hutool.core.text
提供文本相关操作的封装,还包括Unicode工具UnicodeUtil
cn.hutool.core.text.csv - 程序包 cn.hutool.core.text.csv
提供CSV文件读写的封装,入口为CsvUtil
cn.hutool.core.text.escape - 程序包 cn.hutool.core.text.escape
提供各种转义和反转义实现
cn.hutool.core.text.replacer - 程序包 cn.hutool.core.text.replacer
文本替换类抽象及实现
cn.hutool.core.thread - 程序包 cn.hutool.core.thread
提供线程及高并发封装,入口为ThreadUtil
cn.hutool.core.thread.threadlocal - 程序包 cn.hutool.core.thread.threadlocal
ThreadLocal相关封装
cn.hutool.core.util - 程序包 cn.hutool.core.util
提供各种工具方法,按照归类入口为XXXUtil,如字符串工具StrUtil等
CollectionConverter - cn.hutool.core.convert.impl中的类
各种集合类转换器
CollectionConverter() - 类 的构造器cn.hutool.core.convert.impl.CollectionConverter
构造,默认集合类型使用Collection
CollectionConverter(Type) - 类 的构造器cn.hutool.core.convert.impl.CollectionConverter
构造
CollectionConverter(Class<?>) - 类 的构造器cn.hutool.core.convert.impl.CollectionConverter
构造
CollectionConverter(Type, Type) - 类 的构造器cn.hutool.core.convert.impl.CollectionConverter
构造
CollectionUtil - cn.hutool.core.collection中的类
集合相关工具类,包括数组,是CollUtil 的别名工具类类
CollectionUtil() - 类 的构造器cn.hutool.core.collection.CollectionUtil
 
CollUtil - cn.hutool.core.collection中的类
集合相关工具类 此工具方法针对Collection及其实现类封装的工具。
CollUtil() - 类 的构造器cn.hutool.core.collection.CollUtil
 
CollUtil.Consumer<T> - cn.hutool.core.collection中的接口
针对一个参数做相应的操作
CollUtil.Hash<T> - cn.hutool.core.collection中的接口
Hash计算接口
CollUtil.KVConsumer<K,V> - cn.hutool.core.collection中的接口
针对两个参数做相应的操作,例如Map中的KEY和VALUE
COLON - 类 中的静态变量cn.hutool.core.util.CharUtil
 
COLON - 类 中的静态变量cn.hutool.core.util.StrUtil
 
Combination - cn.hutool.core.math中的类
组合,即C(n, m)
排列组合相关类 参考:http://cgs1999.iteye.com/blog/2327664
Combination(String[]) - 类 的构造器cn.hutool.core.math.Combination
组合,即C(n, m)
排列组合相关类 参考:http://cgs1999.iteye.com/blog/2327664
CombinationAnnotationElement - cn.hutool.core.annotation中的类
组合注解 对JDK的原生注解机制做一个增强,支持类似Spring的组合注解。
CombinationAnnotationElement(AnnotatedElement) - 类 的构造器cn.hutool.core.annotation.CombinationAnnotationElement
构造
combinationCount(int, int) - 类 中的静态方法cn.hutool.core.math.MathUtil
计算组合数,即C(n, m) = n!
combinationSelect(String[], int) - 类 中的静态方法cn.hutool.core.math.MathUtil
组合选择(从列表中选择n个组合)
COMMA - 类 中的静态变量cn.hutool.core.util.CharUtil
 
COMMA - 类 中的静态变量cn.hutool.core.util.StrUtil
 
ComparableComparator<E extends java.lang.Comparable<? super E>> - cn.hutool.core.comparator中的类
针对 Comparable对象的默认比较器
ComparableComparator() - 类 的构造器cn.hutool.core.comparator.ComparableComparator
构造
ComparatorChain<E> - cn.hutool.core.comparator中的类
比较器链。
ComparatorChain() - 类 的构造器cn.hutool.core.comparator.ComparatorChain
构造空的比较器链,必须至少有一个比较器,否则会在compare时抛出UnsupportedOperationException
ComparatorChain(Comparator<E>) - 类 的构造器cn.hutool.core.comparator.ComparatorChain
构造,初始化单一比较器。
ComparatorChain(Comparator<E>, boolean) - 类 的构造器cn.hutool.core.comparator.ComparatorChain
构造,初始化单一比较器。
ComparatorChain(List<Comparator<E>>) - 类 的构造器cn.hutool.core.comparator.ComparatorChain
构造,使用已有的比较器列表
ComparatorChain(List<Comparator<E>>, BitSet) - 类 的构造器cn.hutool.core.comparator.ComparatorChain
构造,使用已有的比较器列表和对应的BitSet
BitSet中的boolean值需与list中的Comparator一一对应,true表示正序,false反序
ComparatorException - cn.hutool.core.comparator中的异常错误
比较异常
ComparatorException(Throwable) - 异常错误 的构造器cn.hutool.core.comparator.ComparatorException
 
ComparatorException(String) - 异常错误 的构造器cn.hutool.core.comparator.ComparatorException
 
ComparatorException(String, Object...) - 异常错误 的构造器cn.hutool.core.comparator.ComparatorException
 
ComparatorException(String, Throwable) - 异常错误 的构造器cn.hutool.core.comparator.ComparatorException
 
ComparatorException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.comparator.ComparatorException
 
compare(E, E) - 类 中的方法cn.hutool.core.comparator.ComparableComparator
比较两个Comparable对象 obj1.compareTo(obj2)
compare(E, E) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
执行比较
按照比较器链的顺序分别比较,如果比较出相等则转向下一个比较器,否则直接返回
compare(T, T) - 类 中的静态方法cn.hutool.core.comparator.CompareUtil
null安全的对象比较,null对象排在末尾
compare(T, T, boolean) - 类 中的静态方法cn.hutool.core.comparator.CompareUtil
null安全的对象比较
compare(T, T, boolean) - 类 中的静态方法cn.hutool.core.comparator.CompareUtil
自然比较两个对象的大小,比较规则如下: 1、如果实现Comparable调用compareTo比较 2、o1.equals(o2)返回0 3、比较hashCode值 4、比较toString值
compare(T, T) - 类 中的方法cn.hutool.core.comparator.FieldComparator
 
compare(T, T) - 类 中的方法cn.hutool.core.comparator.IndexedComparator
 
compare(String, String) - 类 中的方法cn.hutool.core.comparator.PinyinComparator
 
compare(T, T) - 类 中的方法cn.hutool.core.comparator.PropertyComparator
 
compare(E, E) - 类 中的方法cn.hutool.core.comparator.ReverseComparator
 
compare(String, String) - 类 中的方法cn.hutool.core.comparator.VersionComparator
比较两个版本
null版本排在最小:既: compare(null, "v1") < 0 compare("v1", "v1") = 0 compare(null, null) = 0 compare("v1", null) > 0 compare("1.0.0", "1.0.2") < 0 compare("1.0.2", "1.0.2a") < 0 compare("1.13.0", "1.12.1c") > 0 compare("V0.0.20170102", "V0.0.20170101") > 0
compare(char, char) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(double, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(long, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(short, short) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(byte, byte) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个值的大小
compare(T, T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
null安全的对象比较,null对象排在末尾
compare(T, T, boolean) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
null安全的对象比较
compare(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个字符串,用于排序 StrUtil.compare(null, null, *) = 0 StrUtil.compare(null , "a", true) < 0 StrUtil.compare(null , "a", false) > 0 StrUtil.compare("a", null, true) > 0 StrUtil.compare("a", null, false) < 0 StrUtil.compare("abc", "abc", *) = 0 StrUtil.compare("a", "b", *) < 0 StrUtil.compare("b", "a", *) > 0 StrUtil.compare("a", "B", *) > 0 StrUtil.compare("ab", "abc", *) < 0
compareIgnoreCase(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个字符串,用于排序,大小写不敏感 StrUtil.compareIgnoreCase(null, null, *) = 0 StrUtil.compareIgnoreCase(null , "a", true) < 0 StrUtil.compareIgnoreCase(null , "a", false) > 0 StrUtil.compareIgnoreCase("a", null, true) > 0 StrUtil.compareIgnoreCase("a", null, false) < 0 StrUtil.compareIgnoreCase("abc", "abc", *) = 0 StrUtil.compareIgnoreCase("abc", "ABC", *) = 0 StrUtil.compareIgnoreCase("a", "b", *) < 0 StrUtil.compareIgnoreCase("b", "a", *) > 0 StrUtil.compareIgnoreCase("a", "B", *) < 0 StrUtil.compareIgnoreCase("A", "b", *) < 0 StrUtil.compareIgnoreCase("ab", "abc", *) < 0
compareTo(MutableBool) - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
比较
compareTo(MutableByte) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
比较
compareTo(MutableDouble) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
比较
compareTo(MutableFloat) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
比较
compareTo(MutableInt) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
比较
compareTo(MutableLong) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
比较
compareTo(MutableShort) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
比较
compareTo(UUID) - 类 中的方法cn.hutool.core.lang.UUID
将此 UUID 与指定的 UUID 比较。
CompareUtil - cn.hutool.core.comparator中的类
 
CompareUtil() - 类 的构造器cn.hutool.core.comparator.CompareUtil
 
compareVersion(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个版本
null版本排在最小:既: StrUtil.compareVersion(null, "v1") < 0 StrUtil.compareVersion("v1", "v1") = 0 StrUtil.compareVersion(null, null) = 0 StrUtil.compareVersion("v1", null) > 0 StrUtil.compareVersion("1.0.0", "1.0.2") < 0 StrUtil.compareVersion("1.0.2", "1.0.2a") < 0 StrUtil.compareVersion("1.13.0", "1.12.1c") > 0 StrUtil.compareVersion("V0.0.20170102", "V0.0.20170101") > 0
complateUrl(String, String) - 类 中的静态方法cn.hutool.core.util.URLUtil
补全相对路径
concat(boolean, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
连接多个字符串为一个
ConcurrentHashSet<E> - cn.hutool.core.collection中的类
通过ConcurrentHashMap实现的线程安全HashSet
ConcurrentHashSet() - 类 的构造器cn.hutool.core.collection.ConcurrentHashSet
构造
触发因子为默认的0.75
ConcurrentHashSet(int) - 类 的构造器cn.hutool.core.collection.ConcurrentHashSet
构造
触发因子为默认的0.75
ConcurrentHashSet(int, float) - 类 的构造器cn.hutool.core.collection.ConcurrentHashSet
构造
ConcurrentHashSet(int, float, int) - 类 的构造器cn.hutool.core.collection.ConcurrentHashSet
构造
ConcurrentHashSet(Iterable<E>) - 类 的构造器cn.hutool.core.collection.ConcurrentHashSet
从已有集合中构造
ConsistentHash<T> - cn.hutool.core.lang中的类
一致性Hash算法 算法详解:http://blog.csdn.net/sparkliang/article/details/5279393 算法实现:https://weblogs.java.net/blog/2007/11/27/consistent-hashing
ConsistentHash(int, Collection<T>) - 类 的构造器cn.hutool.core.lang.ConsistentHash
构造,使用Java默认的Hash算法
ConsistentHash(ConsistentHash.HashFunc, int, Collection<T>) - 类 的构造器cn.hutool.core.lang.ConsistentHash
构造
ConsistentHash.HashFunc - cn.hutool.core.lang中的接口
Hash算法对象,用于自定义hash算法
Console - cn.hutool.core.lang中的类
命令行(控制台)工具方法类
此类主要针对System.outSystem.err 做封装。
Console() - 类 的构造器cn.hutool.core.lang.Console
 
contains(Collection<?>, Object) - 类 中的静态方法cn.hutool.core.collection.CollUtil
判断指定集合是否包含指定值,如果集合为空(null或者空),返回false,否则找到元素返回true
contains(Object) - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
contains(Object) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
contains(T[], T) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(long[], long) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(short[], short) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(char[], char) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(byte[], byte) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(double[], double) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(float[], float) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(boolean[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素
contains(Object, Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
对象中是否包含元素
支持的对象类型包括: String Collection Map Iterator Enumeration Array
contains(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
指定内容中是否有表达式匹配的内容
contains(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
指定内容中是否有表达式匹配的内容
contains(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定字符是否在字符串中出现过
containsAll(Collection<?>) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
containsAny(Collection<?>, Collection<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
其中一个集合在另一个集合中是否至少包含一个元素,既是两个集合是否至少有一个共同的元素
containsAny(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
查找指定字符串是否包含指定字符串列表中的任意一个字符串
containsAny(CharSequence, char...) - 类 中的静态方法cn.hutool.core.util.StrUtil
查找指定字符串是否包含指定字符列表中的任意一个字符
containsAnyIgnoreCase(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
查找指定字符串是否包含指定字符串列表中的任意一个字符串
忽略大小写
containsBlank(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串是否包含空白符(空白符包括空格、制表符、全角空格和不间断空格)
如果给定字符串为null或者"",则返回false
containsHeader - 类 中的变量cn.hutool.core.text.csv.CsvReadConfig
是否首行做为标题行,默认false
containsIgnoreCase(CharSequence[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组中是否包含元素,忽略大小写
containsIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否包含特定字符,忽略大小写,如果给定两个参数都为null,返回true
containsInvalid(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
文件名中是否包含在Windows下不支持的非法字符,包括: \ / : * ?
containsKey(String) - 类 中的方法cn.hutool.core.bean.copier.provider.BeanValueProvider
 
containsKey(String) - 类 中的方法cn.hutool.core.bean.copier.provider.MapValueProvider
 
containsKey(T) - 接口 中的方法cn.hutool.core.bean.copier.ValueProvider
是否包含指定KEY,如果不包含则忽略注入
此接口方法单独需要实现的意义在于:有些值提供者(比如Map)key是存在的,但是value为null,此时如果需要注入这个null,需要根据此方法判断
containsKey(Object) - 类 中的方法cn.hutool.core.map.CustomKeyLinkedMap
 
containsKey(Object) - 类 中的方法cn.hutool.core.map.CustomKeyMap
 
containsKey(Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
containsValue(Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
contentEquals(File, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
比较两个文件内容是否相同
首先比较长度,长度一致再比较内容
此方法来自Apache Commons io
contentEquals(InputStream, InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
对比两个流内容是否相同
内部会转换流为 BufferedInputStream
contentEquals(Reader, Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
对比两个Reader的内容是否一致
内部会转换流为 BufferedInputStream
contentEqualsIgnoreEOL(File, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
比较两个文件内容是否相同
首先比较长度,长度一致再比较内容,比较内容采用按行读取,每行比较
此方法来自Apache Commons io
contentEqualsIgnoreEOL(Reader, Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
对比两个流内容是否相同,忽略EOL字符
内部会转换流为 BufferedInputStream
convert(Object, T) - 类 中的方法cn.hutool.core.convert.AbstractConverter
 
Convert - cn.hutool.core.convert中的类
类型转换器
Convert() - 类 的构造器cn.hutool.core.convert.Convert
 
convert(Class<T>, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换值为指定类型
convert(Type, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换值为指定类型
convert(Class<T>, Object, T) - 类 中的静态方法cn.hutool.core.convert.Convert
转换值为指定类型
convert(Type, Object, T) - 类 中的静态方法cn.hutool.core.convert.Convert
转换值为指定类型
convert(Object, T) - 接口 中的方法cn.hutool.core.convert.Converter
转换为指定类型
如果类型无法确定,将读取默认值的类型做为目标类型
convert(Type, Object, T, boolean) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
转换值为指定类型
convert(Type, Object, T) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
转换值为指定类型
自定义转换器优先
convert(Type, Object) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
转换值为指定类型
convert(Object, Collection<?>) - 类 中的方法cn.hutool.core.convert.impl.CollectionConverter
 
convert(String, String, String) - 类 中的静态方法cn.hutool.core.util.CharsetUtil
转换字符串的字符集编码
convert(String, Charset, Charset) - 类 中的静态方法cn.hutool.core.util.CharsetUtil
转换字符串的字符集编码
当以错误的编码读取为字符串时,打印字符串将出现乱码。
convert(File, Charset, Charset) - 类 中的静态方法cn.hutool.core.util.CharsetUtil
转换文件编码
此方法用于转换文件编码,读取的文件实际编码必须与指定的srcCharset编码一致,否则导致乱码
convert(File, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像类型转换:GIF=》JPG、GIF=》PNG、PNG=》JPG、PNG=》GIF(X)、BMP=》PNG
convert(InputStream, String, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像类型转换:GIF=》JPG、GIF=》PNG、PNG=》JPG、PNG=》GIF(X)、BMP=》PNG
此方法并不关闭流
convert(ImageInputStream, String, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
convert(Image, String, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
convert(Image, String, ImageOutputStream, boolean) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像类型转换:GIF=》JPG、GIF=》PNG、PNG=》JPG、PNG=》GIF(X)、BMP=》PNG
此方法并不关闭流
convert15To18(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
将15位身份证号码转换为18位
convertByClassName(String, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换值为指定类型,类型采用字符串表示
convertCharset(String, String, String) - 类 中的静态方法cn.hutool.core.convert.Convert
给定字符串转换字符编码
如果参数为空,则返回原字符串,不报错。
convertCharset(File, Charset, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
转换文件编码
此方法用于转换文件编码,读取的文件实际编码必须与指定的srcCharset编码一致,否则导致乱码
Converter<T> - cn.hutool.core.convert中的接口
转换器接口,实现类型转换
ConverterRegistry - cn.hutool.core.convert中的类
转换器登记中心 将各种类型Convert对象放入登记中心,通过convert方法查找目标类型对应的转换器,将被转换对象转换之。
ConverterRegistry() - 类 的构造器cn.hutool.core.convert.ConverterRegistry
 
ConvertException - cn.hutool.core.convert中的异常错误
转换异常
ConvertException(Throwable) - 异常错误 的构造器cn.hutool.core.convert.ConvertException
 
ConvertException(String) - 异常错误 的构造器cn.hutool.core.convert.ConvertException
 
ConvertException(String, Object...) - 异常错误 的构造器cn.hutool.core.convert.ConvertException
 
ConvertException(String, Throwable) - 异常错误 的构造器cn.hutool.core.convert.ConvertException
 
ConvertException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.convert.ConvertException
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.AbstractConverter
内部转换器,被 AbstractConverter.convert(Object, Object) 调用,实现基本转换逻辑
内部转换器转换后如果转换失败可以做如下操作,处理结果都为返回默认值: 1、返回null 2、抛出一个RuntimeException异常
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.ArrayConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.AtomicBooleanConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.AtomicReferenceConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.BeanConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.BooleanConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.ByteArrayConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CalendarConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CastConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CharacterConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CharsetConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.ClassConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CollectionConverter
内部转换
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.CurrencyConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.DateConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.EnumConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.GenericEnumConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.MapConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.NumberConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.PathConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.PrimitiveConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.ReferenceConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.StringConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.TimeZoneConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.URIConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.URLConverter
 
convertInternal(Object) - 类 中的方法cn.hutool.core.convert.impl.UUIDConverter
 
convertLineSeparator(File, Charset, LineSeparator) - 类 中的静态方法cn.hutool.core.io.FileUtil
转换换行符
将给定文件的换行符转换为指定换行符
convertTime(long, TimeUnit, TimeUnit) - 类 中的静态方法cn.hutool.core.convert.Convert
转换时间单位
convertToStr(Object) - 类 中的方法cn.hutool.core.convert.AbstractConverter
值转为String
转换规则为: 1、字符串类型将被强转 2、数组将被转换为逗号分隔的字符串 3、其它类型将调用默认的toString()方法
convertToStr(Object) - 类 中的方法cn.hutool.core.convert.impl.NumberConverter
 
convertToStr(Object) - 类 中的方法cn.hutool.core.convert.impl.PrimitiveConverter
 
CopiedIter<E> - cn.hutool.core.collection中的类
复制 Iterator
为了解决并发情况下Iterator遍历导致的问题(当Iterator被修改会抛出ConcurrentModificationException) ,故使用复制原Iterator的方式解决此问题。
CopiedIter(Iterator<E>) - 类 的构造器cn.hutool.core.collection.CopiedIter
构造
Copier<T> - cn.hutool.core.lang.copier中的接口
拷贝接口
copy() - 类 中的方法cn.hutool.core.bean.copier.BeanCopier
 
copy(ByteBuffer, int, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
拷贝到一个新的ByteBuffer
copy(ByteBuffer, ByteBuffer) - 类 中的静态方法cn.hutool.core.io.BufferUtil
拷贝ByteBuffer
copy(ByteBuffer, ByteBuffer, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
拷贝ByteBuffer
copy(ByteBuffer, int, ByteBuffer, int, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
拷贝ByteBuffer
copy() - 类 中的方法cn.hutool.core.io.file.FileCopier
执行拷贝
拷贝规则为: 1、源为文件,目标为已存在目录,则拷贝到目录下,文件名不变 2、源为文件,目标为不存在路径,则目标以文件对待(自动创建父级目录)比如:/dest/aaa,如果aaa不存在,则aaa被当作文件名 3、源为文件,目标是一个已存在的文件,则当FileCopier.setOverride(boolean)设为true时会被覆盖,默认不覆盖 4、源为目录,目标为已存在目录,当FileCopier.setCopyContentIfDir(boolean)为true时,只拷贝目录中的内容到目标目录中,否则整个源目录连同其目录拷贝到目标目录中 5、源为目录,目标为不存在路径,则自动创建目标为新目录,然后按照规则4复制 6、源为目录,目标为文件,抛出IO异常 7、源路径和目标路径相同时,抛出IO异常
copy(String, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
复制文件或目录
如果目标文件为目录,则将源文件以相同文件名拷贝到目标目录
copy(File, File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
复制文件或目录
情况如下: 1、src和dest都为目录,则将src目录及其目录下所有文件目录拷贝到dest下 2、src和dest都为文件,直接复制,名字为dest 3、src为文件,dest为目录,将src拷贝到dest目录下
copy(Reader, Writer) - 类 中的静态方法cn.hutool.core.io.IoUtil
将Reader中的内容复制到Writer中 使用默认缓存大小
copy(Reader, Writer, int) - 类 中的静态方法cn.hutool.core.io.IoUtil
将Reader中的内容复制到Writer中
copy(Reader, Writer, int, StreamProgress) - 类 中的静态方法cn.hutool.core.io.IoUtil
将Reader中的内容复制到Writer中
copy(InputStream, OutputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝流,使用默认Buffer大小
copy(InputStream, OutputStream, int) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝流
copy(InputStream, OutputStream, int, StreamProgress) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝流
copy(FileInputStream, FileOutputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝文件流,使用NIO
copy(ReadableByteChannel, WritableByteChannel, int, StreamProgress) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝流,使用NIO,不会关闭流
copy() - 接口 中的方法cn.hutool.core.lang.copier.Copier
执行拷贝
copy(Object, int, Object, int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装 System.arraycopy(Object, int, Object, int, int)
数组复制
copy(Object, Object, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装 System.arraycopy(Object, int, Object, int, int)
数组复制,缘数组和目标数组都是从位置0开始复制
copyByNIO(InputStream, OutputStream, int, StreamProgress) - 类 中的静态方法cn.hutool.core.io.IoUtil
拷贝流 thanks to: https://github.com/venusdrogon/feilong-io/blob/master/src/main/java/com/feilong/io/IOWriteUtil.java
本方法不会关闭流
copyContent(File, File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
复制文件或目录
情况如下: 1、src和dest都为目录,则讲src下所有文件目录拷贝到dest下 2、src和dest都为文件,直接复制,名字为dest 3、src为文件,dest为目录,将src拷贝到dest目录下
copyFile(String, String, StandardCopyOption...) - 类 中的静态方法cn.hutool.core.io.FileUtil
通过JDK7+的 Files.copy(Path, Path, CopyOption...)
copyFile(File, File, StandardCopyOption...) - 类 中的静态方法cn.hutool.core.io.FileUtil
通过JDK7+的 Files.copy(Path, Path, CopyOption...)
copyFile(Path, Path, StandardCopyOption...) - 类 中的静态方法cn.hutool.core.io.FileUtil
通过JDK7+的 Files.copy(Path, Path, CopyOption...)
copyFilesFromDir(File, File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
复制文件或目录
情况如下: 1、src和dest都为目录,则讲src下所有文件(包括子目录)拷贝到dest下 2、src和dest都为文件,直接复制,名字为dest 3、src为文件,dest为目录,将src拷贝到dest目录下
copyFilter - 类 中的变量cn.hutool.core.lang.copier.SrcToDestCopier
拷贝过滤器,可以过滤掉不需要拷贝的源
copyImage(Image, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
将已有Image复制新的一份出来
copyOf(Iterator<V>) - 类 中的静态方法cn.hutool.core.collection.CopiedIter
 
CopyOptions - cn.hutool.core.bean.copier中的类
属性拷贝选项
包括:
1、限制的类或接口,必须为目标对象的实现接口或父类,用于限制拷贝的属性,例如一个类我只想复制其父类的一些属性,就可以将editable设置为父类
2、是否忽略空值,当源对象的值为null时,true: 忽略而不注入此值,false: 注入null
3、忽略的属性列表,设置一个属性列表,不拷贝这些属性值
CopyOptions() - 类 的构造器cn.hutool.core.bean.copier.CopyOptions
构造拷贝选项
CopyOptions(Class<?>, boolean, String...) - 类 的构造器cn.hutool.core.bean.copier.CopyOptions
构造拷贝选项
copyProperties(Object, Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
复制Bean对象属性
copyProperties(Object, Object, String...) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
复制Bean对象属性
限制类用于限制拷贝的属性,例如一个类我只想复制其父类的一些属性,就可以将editable设置为父类
copyProperties(Object, Object, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
复制Bean对象属性
限制类用于限制拷贝的属性,例如一个类我只想复制其父类的一些属性,就可以将editable设置为父类
copyProperties(Object, Object, boolean, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
复制Bean对象属性
限制类用于限制拷贝的属性,例如一个类我只想复制其父类的一些属性,就可以将CopyOptions.editable设置为父类
count(Iterable<T>, Matcher<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
集合中匹配规则的数量
count(int) - 类 中的静态方法cn.hutool.core.math.Arrangement
计算排列数,即A(n, n) = n!
count(int, int) - 类 中的静态方法cn.hutool.core.math.Arrangement
计算排列数,即A(n, m) = n!
count(int, int) - 类 中的静态方法cn.hutool.core.math.Combination
计算组合数,即C(n, m) = n!
count() - 类 中的方法cn.hutool.core.thread.SyncFinisher
 
count(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
计算等份个数
count(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
计算指定字符串中,匹配pattern的个数
count(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
计算指定字符串中,匹配pattern的个数
count(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
统计指定内容中包含指定字符串的数量
参数为 null 或者 "" 返回 0.
count(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
统计指定内容中包含指定字符的数量
countAll(int) - 类 中的静态方法cn.hutool.core.math.Arrangement
计算排列总数,即A(n, 1) + A(n, 2) + A(n, 3)...
countAll(int) - 类 中的静态方法cn.hutool.core.math.Combination
计算组合总数,即C(n, 1) + C(n, 2) + C(n, 3)...
countMap(Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据集合返回一个元素计数的 Map
所谓元素计数就是假如这个集合中某个元素出现了n次,那将这个元素做为key,n做为value
例如:[a,b,c,c,c] 得到:
a: 1
b: 1
c: 3
countMap(Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
根据集合返回一个元素计数的 Map
所谓元素计数就是假如这个集合中某个元素出现了n次,那将这个元素做为key,n做为value
例如:[a,b,c,c,c] 得到:
a: 1
b: 1
c: 3
countMap(Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
根据集合返回一个元素计数的 Map
所谓元素计数就是假如这个集合中某个元素出现了n次,那将这个元素做为key,n做为value
例如:[a,b,c,c,c] 得到:
a: 1
b: 1
c: 3
CR - 类 中的静态变量cn.hutool.core.util.CharUtil
 
CR - 类 中的静态变量cn.hutool.core.util.StrUtil
 
create(String) - 类 中的静态方法cn.hutool.core.bean.BeanPath
解析Bean路径表达式为Bean模式
Bean表达式,用于获取多层嵌套Bean中的字段值或Bean对象
根据给定的表达式,查找Bean中对应的属性值对象。
create(Object, T, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.copier.BeanCopier
创建BeanCopier
create() - 类 中的静态方法cn.hutool.core.bean.copier.CopyOptions
创建拷贝选项
create(Class<?>, boolean, String...) - 类 中的静态方法cn.hutool.core.bean.copier.CopyOptions
创建拷贝选项
create(Object) - 类 中的静态方法cn.hutool.core.bean.DynaBean
创建一个DynaBean
create(Class<?>, Object...) - 类 中的静态方法cn.hutool.core.bean.DynaBean
创建一个DynaBean
create(Class<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
创建新的集合对象
create(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateBetween
创建
在前的日期做为起始时间,在后的做为结束时间,间隔只保留绝对值正数
create(Date, Date, boolean) - 类 中的静态方法cn.hutool.core.date.DateBetween
创建
在前的日期做为起始时间,在后的做为结束时间,间隔只保留绝对值正数
create(String, String) - 类 中的静态方法cn.hutool.core.io.file.FileCopier
新建一个文件复制器
create(File, File) - 类 中的静态方法cn.hutool.core.io.file.FileCopier
新建一个文件复制器
create(File, Charset) - 类 中的静态方法cn.hutool.core.io.file.FileReader
创建 FileReader
create(File) - 类 中的静态方法cn.hutool.core.io.file.FileReader
创建 FileReader, 编码:FileWrapper.DEFAULT_CHARSET
create(File, Charset) - 类 中的静态方法cn.hutool.core.io.file.FileWriter
创建 FileWriter
create(File) - 类 中的静态方法cn.hutool.core.io.file.FileWriter
创建 FileWriter, 编码:FileWrapper.DEFAULT_CHARSET
create(Watcher...) - 类 中的静态方法cn.hutool.core.io.watch.watchers.WatcherChain
创建观察者链WatcherChain
create(URL, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(URL, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(URI, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(URI, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(File, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(File, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(String, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(String, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(Path, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(Path, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听
create(URL, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(URL, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(URI, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(URI, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(File, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(File, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(String, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(String, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(Path, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create(Path, int, WatchEvent.Kind<?>...) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听
create() - 类 中的静态方法cn.hutool.core.lang.Dict
创建Dict
create() - 类 中的静态方法cn.hutool.core.lang.WeightRandom
创建权重随机获取器
create(Map<K, V>) - 类 中的静态方法cn.hutool.core.map.MapBuilder
创建Builder
create(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapProxy
创建代理Map
此类对Map做一次包装,提供各种getXXX方法
create() - 类 中的静态方法cn.hutool.core.text.StrBuilder
创建字符串构建器
create(int) - 类 中的静态方法cn.hutool.core.text.StrBuilder
创建字符串构建器
create(CharSequence...) - 类 中的静态方法cn.hutool.core.text.StrBuilder
创建字符串构建器
create() - 类 中的静态方法cn.hutool.core.thread.ExecutorBuilder
创建ExecutorBuilder,开始构建
create() - 类 中的静态方法cn.hutool.core.thread.ThreadFactoryBuilder
create(ReferenceUtil.ReferenceType, T) - 类 中的静态方法cn.hutool.core.util.ReferenceUtil
获得引用
create(ReferenceUtil.ReferenceType, T, ReferenceQueue<T>) - 类 中的静态方法cn.hutool.core.util.ReferenceUtil
获得引用
createAddress(String, int) - 类 中的静态方法cn.hutool.core.util.NetUtil
创建 InetSocketAddress
createAll(URI, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听,监听所有事件
createAll(URL, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听,监听所有事件
createAll(File, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听,监听所有事件
createAll(String, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听,监听所有事件
createAll(Path, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchMonitor
创建并初始化监听,监听所有事件
createAll(URL, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(URL, int, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(URI, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(URI, int, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(File, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(File, int, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(String, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(String, int, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(Path, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createAll(Path, int, Watcher) - 类 中的静态方法cn.hutool.core.io.watch.WatchUtil
创建并初始化监听,监听所有事件
createDocumentBuilder() - 类 中的静态方法cn.hutool.core.util.XmlUtil
创建 DocumentBuilder
createDynaBean(Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
创建动态Bean
createFont(File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
根据文件创建字体
首先尝试创建Font.TRUETYPE_FONT字体,此类字体无效则创建Font.TYPE1_FONT
createFont(InputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
根据文件创建字体
首先尝试创建Font.TRUETYPE_FONT字体,此类字体无效则创建Font.TYPE1_FONT
createGraphics(BufferedImage, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
创建Graphics2D
createImage(String, Font, Color, Color, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
根据文字创建PNG图片
createMap(Class<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
创建Map
传入抽象MapAbstractMapMap类将默认创建HashMap
createMap(Class<?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
创建Map
传入抽象MapAbstractMapMap类将默认创建HashMap
createProxy(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
创建代理Map
MapProxy对Map做一次包装,提供各种getXXX方法
createSnowflake(long, long) - 类 中的静态方法cn.hutool.core.util.IdUtil
创建Twitter的Snowflake 算法
分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。
createTempFile(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建临时文件
创建后的文件名为 prefix[Randon].tmp
createTempFile(File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建临时文件
创建后的文件名为 prefix[Randon].tmp
createTempFile(String, String, File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建临时文件
创建后的文件名为 prefix[Randon].suffix From com.jodd.io.FileUtil
createThreadFactoryBuilder() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建ThreadFactoryBuilder
createThreadLocal(boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建本地线程对象
createXml() - 类 中的静态方法cn.hutool.core.util.XmlUtil
创建XML文档
创建的XML默认是utf8编码,修改编码的过程是在toStr和toFile方法里,既XML在转为文本的时候才定义编码
createXml(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
创建XML文档
创建的XML默认是utf8编码,修改编码的过程是在toStr和toFile方法里,既XML在转为文本的时候才定义编码
createXPath() - 类 中的静态方法cn.hutool.core.util.XmlUtil
创建XPath
Xpath相关文章:https://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
CRLF - 类 中的静态变量cn.hutool.core.util.StrUtil
 
CsvConfig - cn.hutool.core.text.csv中的类
CSV基础配置项
CsvConfig() - 类 的构造器cn.hutool.core.text.csv.CsvConfig
 
CsvData - cn.hutool.core.text.csv中的类
CSV数据,包括头部信息和行数据,参考:FastCSV
CsvData(List<String>, List<CsvRow>) - 类 的构造器cn.hutool.core.text.csv.CsvData
 
CsvParser - cn.hutool.core.text.csv中的类
CSV行解析器,参考:FastCSV
CsvParser(Reader, CsvReadConfig) - 类 的构造器cn.hutool.core.text.csv.CsvParser
CSV解析器
CsvReadConfig - cn.hutool.core.text.csv中的类
CSV读取配置项
CsvReadConfig() - 类 的构造器cn.hutool.core.text.csv.CsvReadConfig
 
CsvReader - cn.hutool.core.text.csv中的类
CSV文件读取器,参考:FastCSV
CsvReader() - 类 的构造器cn.hutool.core.text.csv.CsvReader
构造,使用默认配置项
CsvReader(CsvReadConfig) - 类 的构造器cn.hutool.core.text.csv.CsvReader
构造
CsvRow - cn.hutool.core.text.csv中的类
CSV中一行的表示
CsvRow(long, Map<String, Integer>, List<String>) - 类 的构造器cn.hutool.core.text.csv.CsvRow
构造
CsvUtil - cn.hutool.core.text.csv中的类
CSV工具
CsvUtil() - 类 的构造器cn.hutool.core.text.csv.CsvUtil
 
CsvWriteConfig - cn.hutool.core.text.csv中的类
CSV写出配置项
CsvWriteConfig() - 类 的构造器cn.hutool.core.text.csv.CsvWriteConfig
 
CsvWriter - cn.hutool.core.text.csv中的类
CSV数据写出器
CsvWriter(String) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造,覆盖已有文件(如果存在),默认编码UTF-8
CsvWriter(File) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造,覆盖已有文件(如果存在),默认编码UTF-8
CsvWriter(String, Charset) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造,覆盖已有文件(如果存在)
CsvWriter(File, Charset) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造,覆盖已有文件(如果存在)
CsvWriter(String, Charset, boolean) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造
CsvWriter(File, Charset, boolean) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造
CsvWriter(String, Charset, boolean, CsvWriteConfig) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造
CsvWriter(File, Charset, boolean, CsvWriteConfig) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造
CsvWriter(Writer) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造,使用默认配置
CsvWriter(Writer, CsvWriteConfig) - 类 的构造器cn.hutool.core.text.csv.CsvWriter
构造
CurrencyConverter - cn.hutool.core.convert.impl中的类
货币Currency 转换器
CurrencyConverter() - 类 的构造器cn.hutool.core.convert.impl.CurrencyConverter
 
current(boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
当前时间long
currentSeconds() - 类 中的静态方法cn.hutool.core.date.DateUtil
当前时间秒数
currentThreadGroup() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获取当前线程的线程组
customKey(Object) - 类 中的方法cn.hutool.core.map.CamelCaseLinkedMap
将Key转为驼峰风格,如果key为字符串的话
customKey(Object) - 类 中的方法cn.hutool.core.map.CamelCaseMap
将Key转为驼峰风格,如果key为字符串的话
customKey(Object) - 类 中的方法cn.hutool.core.map.CaseInsensitiveLinkedMap
将Key转为小写
customKey(Object) - 类 中的方法cn.hutool.core.map.CaseInsensitiveMap
将Key转为小写
customKey(Object) - 类 中的方法cn.hutool.core.map.CustomKeyLinkedMap
将Key转为驼峰风格,如果key为字符串的话
customKey(Object) - 类 中的方法cn.hutool.core.map.CustomKeyMap
自定义键
CustomKeyLinkedMap<K,V> - cn.hutool.core.map中的类
自定义键的Map,默认LinkedHashMap实现
CustomKeyLinkedMap() - 类 的构造器cn.hutool.core.map.CustomKeyLinkedMap
构造
CustomKeyLinkedMap(int, float) - 类 的构造器cn.hutool.core.map.CustomKeyLinkedMap
构造
CustomKeyLinkedMap(int) - 类 的构造器cn.hutool.core.map.CustomKeyLinkedMap
构造
CustomKeyLinkedMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CustomKeyLinkedMap
构造
CustomKeyLinkedMap(float, Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CustomKeyLinkedMap
构造
CustomKeyMap<K,V> - cn.hutool.core.map中的类
自定义键的Map,默认HashMap实现
CustomKeyMap() - 类 的构造器cn.hutool.core.map.CustomKeyMap
构造
CustomKeyMap(int, float) - 类 的构造器cn.hutool.core.map.CustomKeyMap
构造
CustomKeyMap(int) - 类 的构造器cn.hutool.core.map.CustomKeyMap
构造
CustomKeyMap(Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CustomKeyMap
构造
CustomKeyMap(float, Map<? extends K, ? extends V>) - 类 的构造器cn.hutool.core.map.CustomKeyMap
构造
cut(Rectangle) - 类 中的方法cn.hutool.core.img.Img
图像切割(按指定起点坐标和宽高切割)
cut(int, int) - 类 中的方法cn.hutool.core.img.Img
图像切割为圆形(按指定起点坐标和半径切割),填充满整个图片(直径取长宽最小值)
cut(int, int, int) - 类 中的方法cn.hutool.core.img.Img
图像切割为圆形(按指定起点坐标和半径切割)
cut(File, File, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割)
cut(InputStream, OutputStream, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),此方法并不关闭流
cut(ImageInputStream, ImageOutputStream, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),此方法并不关闭流
cut(Image, File, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),此方法并不关闭流
cut(Image, OutputStream, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),此方法并不关闭流
cut(Image, ImageOutputStream, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),此方法并不关闭流
cut(Image, Rectangle) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割)
cut(Image, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割),填充满整个图片(直径取长宽最小值)
cut(Image, int, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(按指定起点坐标和宽高切割)
cut(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
将字符串切分为N等份

D

DASHED - 类 中的静态变量cn.hutool.core.util.CharUtil
 
DASHED - 类 中的静态变量cn.hutool.core.util.StrUtil
 
date() - 类 中的静态方法cn.hutool.core.date.DateUtil
转换为DateTime对象
date(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
Date类型时间转为DateTime
date(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
Long类型时间转为DateTime
只支持毫秒级别时间戳,如果需要秒级别时间戳,请自行×1000
date(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
Calendar类型时间转为DateTime
DateBasic - cn.hutool.core.date.format中的接口
日期基本信息获取接口
DateBetween - cn.hutool.core.date中的类
日期间隔
DateBetween(Date, Date) - 类 的构造器cn.hutool.core.date.DateBetween
构造
在前的日期做为起始时间,在后的做为结束时间,间隔只保留绝对值正数
DateBetween(Date, Date, boolean) - 类 的构造器cn.hutool.core.date.DateBetween
构造
在前的日期做为起始时间,在后的做为结束时间
DateConverter - cn.hutool.core.convert.impl中的类
日期转换器
DateConverter(Class<? extends Date>) - 类 的构造器cn.hutool.core.convert.impl.DateConverter
 
DateConverter(Class<? extends Date>, String) - 类 的构造器cn.hutool.core.convert.impl.DateConverter
 
DateException - cn.hutool.core.date中的异常错误
工具类异常
DateException(Throwable) - 异常错误 的构造器cn.hutool.core.date.DateException
 
DateException(String) - 异常错误 的构造器cn.hutool.core.date.DateException
 
DateException(String, Object...) - 异常错误 的构造器cn.hutool.core.date.DateException
 
DateException(String, Throwable) - 异常错误 的构造器cn.hutool.core.date.DateException
 
DateException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.date.DateException
 
DateField - cn.hutool.core.date中的枚举
日期各个部分的枚举
与Calendar相应值对应
DateParser - cn.hutool.core.date.format中的接口
日期解析接口,用于解析日期字符串为 Date 对象
Thanks to Apache Commons Lang 3.5
DatePattern - cn.hutool.core.date中的类
日期格式化类,提供常用的日期格式化对象
DatePattern() - 类 的构造器cn.hutool.core.date.DatePattern
 
DatePrinter - cn.hutool.core.date.format中的接口
日期格式化输出接口
Thanks to Apache Commons Lang 3.5
DateRange - cn.hutool.core.date中的类
日期范围
DateRange(Date, Date, DateField) - 类 的构造器cn.hutool.core.date.DateRange
构造,包含开始和结束日期时间
DateRange(Date, Date, DateField, int) - 类 的构造器cn.hutool.core.date.DateRange
构造,包含开始和结束日期时间
DateRange(Date, Date, DateField, int, boolean, boolean) - 类 的构造器cn.hutool.core.date.DateRange
构造
DateTime - cn.hutool.core.date中的类
包装java.util.Date
DateTime() - 类 的构造器cn.hutool.core.date.DateTime
当前时间
DateTime(TimeZone) - 类 的构造器cn.hutool.core.date.DateTime
当前时间
DateTime(Date) - 类 的构造器cn.hutool.core.date.DateTime
给定日期的构造
DateTime(Date, TimeZone) - 类 的构造器cn.hutool.core.date.DateTime
给定日期的构造
DateTime(Calendar) - 类 的构造器cn.hutool.core.date.DateTime
给定日期的构造
DateTime(long) - 类 的构造器cn.hutool.core.date.DateTime
给定日期毫秒数的构造
DateTime(long, TimeZone) - 类 的构造器cn.hutool.core.date.DateTime
给定日期毫秒数的构造
DateTime(String, String) - 类 的构造器cn.hutool.core.date.DateTime
构造
DateTime(String, DateFormat) - 类 的构造器cn.hutool.core.date.DateTime
构造
DateTime(String, DateParser) - 类 的构造器cn.hutool.core.date.DateTime
构造
DateUnit - cn.hutool.core.date中的枚举
日期时间单位,每个单位都是以毫秒为基数
DateUtil - cn.hutool.core.date中的类
时间工具类
DateUtil() - 类 的构造器cn.hutool.core.date.DateUtil
 
dayOfMonth() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期是这个日期所在月份的第几天
dayOfMonth(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期是这个日期所在月份的第几天
dayOfWeek() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期是星期几,1表示周日,2表示周一
dayOfWeek(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期是星期几,1表示周日,2表示周一
dayOfWeekEnum() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期是星期几
dayOfWeekEnum(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期是星期几
dayOfWeekInMonth() - 类 中的方法cn.hutool.core.date.DateTime
获得天所在的周是这个月的第几周
decimalFormat(String, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
格式化double
DecimalFormat 做封装
decimalFormat(String, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
格式化double
DecimalFormat 做封装
decimalFormatMoney(double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
格式化金额输出,每三位用逗号分隔
decode(String) - 类 中的静态方法cn.hutool.core.codec.Base32
解码
decode(String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decode(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decode(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decode(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64
解码Base64
decode(String) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decode(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decode(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decode(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
解码Base64
decode(byte[], int, int) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
解码Base64
decode(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
解码URL
将%开头的16进制表示的内容解码。
decode(String, String) - 类 中的静态方法cn.hutool.core.util.URLUtil
解码URL
将%开头的16进制表示的内容解码。
decodeColor(String) - 类 中的静态方法cn.hutool.core.util.HexUtil
将Hex颜色值转为
decodeHex(char[]) - 类 中的静态方法cn.hutool.core.util.HexUtil
将十六进制字符数组转换为字节数组
decodeHex(String) - 类 中的静态方法cn.hutool.core.util.HexUtil
将十六进制字符串解码为byte[]
decodeHexStr(String) - 类 中的静态方法cn.hutool.core.util.HexUtil
将十六进制字符数组转换为字符串,默认编码UTF-8
decodeHexStr(String, Charset) - 类 中的静态方法cn.hutool.core.util.HexUtil
将十六进制字符数组转换为字符串
decodeHexStr(char[], Charset) - 类 中的静态方法cn.hutool.core.util.HexUtil
将十六进制字符数组转换为字符串
decodeStr(String) - 类 中的静态方法cn.hutool.core.codec.Base32
base32解码
decodeStr(String, String) - 类 中的静态方法cn.hutool.core.codec.Base32
base32解码
decodeStr(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base32
base32解码
decodeStr(String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decodeStr(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decodeStr(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decodeStr(String) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decodeStr(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decodeStr(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Decoder
base64解码
decodeToFile(String, File) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decodeToStream(String, OutputStream, boolean) - 类 中的静态方法cn.hutool.core.codec.Base64
base64解码
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
值减一
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
值减一
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
值减一
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
值减一
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
值减一
decrement() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
值减一
DEFAULT_BUFFER_SIZE - 类 中的静态变量cn.hutool.core.io.IoUtil
默认缓存大小
DEFAULT_CAPACITY - 类 中的静态变量cn.hutool.core.text.StrBuilder
默认容量
DEFAULT_CHARSET - 类 中的静态变量cn.hutool.core.io.file.FileWrapper
默认编码:UTF-8
DEFAULT_INITIAL_CAPACITY - 类 中的静态变量cn.hutool.core.map.MapUtil
默认初始大小
DEFAULT_LARGE_BUFFER_SIZE - 类 中的静态变量cn.hutool.core.io.IoUtil
默认大缓存大小
DEFAULT_LOAD_FACTOR - 类 中的静态变量cn.hutool.core.map.MapUtil
默认增长因子,当Map的size达到 容量*增长因子时,开始扩充Map
DEFAULT_MIDDLE_BUFFER_SIZE - 类 中的静态变量cn.hutool.core.io.IoUtil
默认中等缓存大小
defaultCharset() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
系统默认字符集编码
defaultCharsetName() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
系统默认字符集编码
defaultConfig() - 类 中的静态方法cn.hutool.core.text.csv.CsvReadConfig
默认配置
defaultConfig() - 类 中的静态方法cn.hutool.core.text.csv.CsvWriteConfig
默认配置
defaultIfNull(T, T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
如果给定对象为null返回默认值 ObjectUtil.defaultIfNull(null, null) = null ObjectUtil.defaultIfNull(null, "") = "" ObjectUtil.defaultIfNull(null, "zz") = "zz" ObjectUtil.defaultIfNull("abc", *) = "abc" ObjectUtil.defaultIfNull(Boolean.TRUE, *) = Boolean.TRUE
dekHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
DEK算法
del(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
删除文件或者文件夹
路径如果为相对路径,会转换为ClassPath路径!
del(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
删除文件或者文件夹
注意:删除文件夹时不会判断文件夹是否为空,如果不空则递归删除子文件或文件夹
某个文件删除失败会终止删除操作
del(int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
删除指定长度的字符
delAll(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
删除匹配的全部内容
delAll(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
删除匹配的全部内容
DelayWatcher - cn.hutool.core.io.watch.watchers中的类
延迟观察者
使用此观察者通过定义一定的延迟时间,解决WatchService多个modify的问题
在监听目录或文件时,如果这个文件有修改操作,会多次触发modify方法。
DelayWatcher(Watcher, long) - 类 的构造器cn.hutool.core.io.watch.watchers.DelayWatcher
构造
delFirst(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
删除匹配的第一个内容
delFirst(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
删除匹配的第一个内容
DELIM_END - 类 中的静态变量cn.hutool.core.util.CharUtil
 
DELIM_END - 类 中的静态变量cn.hutool.core.util.StrUtil
 
DELIM_START - 类 中的静态变量cn.hutool.core.util.CharUtil
 
DELIM_START - 类 中的静态变量cn.hutool.core.util.StrUtil
 
delPre(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
删除正则匹配到的内容之前的字符 如果没有找到,则返回原文
delTo(int) - 类 中的方法cn.hutool.core.text.StrBuilder
删除到指定位置
如果新位置小于等于0,则删除全部
DependencyException - cn.hutool.core.exceptions中的异常错误
依赖异常
DependencyException(Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.DependencyException
 
DependencyException(String) - 异常错误 的构造器cn.hutool.core.exceptions.DependencyException
 
DependencyException(String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.DependencyException
 
DependencyException(String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.DependencyException
 
DependencyException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.DependencyException
 
dest - 类 中的变量cn.hutool.core.lang.copier.SrcToDestCopier
目标
destroy() - 类 中的静态方法cn.hutool.core.lang.Singleton
清除所有Singleton对象
destroy(Process) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
销毁进程
Dict - cn.hutool.core.lang中的类
字典对象,扩充了HashMap中的方法
Dict() - 类 的构造器cn.hutool.core.lang.Dict
构造
Dict(int) - 类 的构造器cn.hutool.core.lang.Dict
构造
Dict(int, float) - 类 的构造器cn.hutool.core.lang.Dict
构造
Dict(Map<String, Object>) - 类 的构造器cn.hutool.core.lang.Dict
构造
digitToChinese(Number) - 类 中的静态方法cn.hutool.core.convert.Convert
金额转为中文形式
dimension - 类 中的静态变量cn.hutool.core.swing.ScreenUtil
 
disjunction(Collection<T>, Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
两个集合的差集
针对一个集合中存在多个相同元素的情况,计算两个集合中此元素的个数,保留两个集合中此元素个数差的个数
例如:集合1:[a, b, c, c, c],集合2:[a, b, c, c]
结果:[c],此结果中只保留了一个
任意一个集合为空,返回另一个集合
两个集合无交集则返回两个集合的组合
distinct(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
去重集合
div(float, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(float, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(double, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(double, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(Double, Double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(Number, Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(String, String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况的时候,精确到小数点后10位,后面的四舍五入
div(float, float, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(float, double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(double, float, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(double, double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(Double, Double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(Number, Number, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(String, String, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度,后面的四舍五入
div(float, float, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(float, double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(double, float, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(double, double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(Double, Double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(Number, Number, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(String, String, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
div(BigDecimal, BigDecimal, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供(相对)精确的除法运算,当发生除不尽的情况时,由scale指定精确度
divisor(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
最大公约数
djbHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
DJB算法
DOT - 类 中的静态变量cn.hutool.core.util.CharUtil
 
DOT - 类 中的静态变量cn.hutool.core.util.StrUtil
 
DOUBLE_DOT - 类 中的静态变量cn.hutool.core.util.StrUtil
 
DOUBLE_QUOTES - 类 中的静态变量cn.hutool.core.util.CharUtil
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
doubleValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
DynaBean - cn.hutool.core.bean中的类
动态Bean,通过反射对Bean的相关方法做操作
支持Map和普通Bean
DynaBean(Class<?>, Object...) - 类 的构造器cn.hutool.core.bean.DynaBean
构造
DynaBean(Object) - 类 的构造器cn.hutool.core.bean.DynaBean
构造

E

edit(T) - 接口 中的方法cn.hutool.core.lang.Editor
修改过滤后的结果
editable - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
限制的类或接口,必须为目标对象的实现接口或父类,用于限制拷贝的属性,例如一个类我只想复制其父类的一些属性,就可以将editable设置为父类
Editor<T> - cn.hutool.core.lang中的接口
编辑器接口,常用于对于集合中的元素做统一编辑
此编辑器两个作用: 1、如果返回值为null,表示此值被抛弃 2、对对象做修改
elementText(Element, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
根据节点名获得第一个子节点
elementText(Element, String, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
根据节点名获得第一个子节点
elfHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
ELF算法
EMAIL - 类 中的静态变量cn.hutool.core.lang.PatternPool
邮件,符合RFC 5322规范,正则来自:http://emailregex.com/
EMAIL - 类 中的静态变量cn.hutool.core.lang.Validator
邮件
EMPTY - 类 中的静态变量cn.hutool.core.util.StrUtil
 
EMPTY_JSON - 类 中的静态变量cn.hutool.core.util.StrUtil
 
emptyToDefault(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果字符串是null或者"",则返回指定默认字符串,否则返回字符串本身。
emptyToNull(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
当给定字符串为空字符串时,转换为null
encode(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base32
编码
encode(String) - 类 中的静态方法cn.hutool.core.codec.Base32
base32编码
encode(String, String) - 类 中的静态方法cn.hutool.core.codec.Base32
base32编码
encode(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base32
base32编码
encode(byte[], boolean) - 类 中的静态方法cn.hutool.core.codec.Base64
编码为Base64,非URL安全的
encode(String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(InputStream) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(File) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(byte[], String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(byte[], Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码
encode(byte[], boolean, boolean) - 类 中的静态方法cn.hutool.core.codec.Base64
编码为Base64
如果isMultiLine为true,则每76个字符一个换行符,否则在一行显示
encode(byte[], boolean) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
编码为Base64,非URL安全的
encode(String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(byte[], String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(byte[], Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码
encode(byte[], boolean, boolean) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
编码为Base64
如果isMultiLine为true,则每76个字符一个换行符,否则在一行显示
encode(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
编码URL,默认使用UTF-8编码
将需要转换的内容(ASCII码形式之外的内容),用十六进制表示法转换出来,并在之前加上%开头。
encode(String, String) - 类 中的静态方法cn.hutool.core.util.URLUtil
编码URL
将需要转换的内容(ASCII码形式之外的内容),用十六进制表示法转换出来,并在之前加上%开头。
encodeColor(Color) - 类 中的静态方法cn.hutool.core.util.HexUtil
Color编码为Hex形式
encodeColor(Color, String) - 类 中的静态方法cn.hutool.core.util.HexUtil
Color编码为Hex形式
encodeHex(byte[]) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符数组
encodeHex(String, Charset) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符数组
encodeHex(byte[], boolean) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符数组
encodeHexStr(byte[]) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符串
encodeHexStr(String, Charset) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符串,结果为小写
encodeHexStr(String) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符串,结果为小写,默认编码是UTF-8
encodeHexStr(byte[], boolean) - 类 中的静态方法cn.hutool.core.util.HexUtil
将字节数组转换为十六进制字符串
encodeUrlSafe(byte[], boolean) - 类 中的静态方法cn.hutool.core.codec.Base64
编码为Base64,URL安全的
encodeUrlSafe(String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全
encodeUrlSafe(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全
encodeUrlSafe(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(InputStream) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(File) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(byte[], String) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(byte[], Charset) - 类 中的静态方法cn.hutool.core.codec.Base64
base64编码,URL安全的
encodeUrlSafe(byte[], boolean) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
编码为Base64,URL安全的
encodeUrlSafe(String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全
encodeUrlSafe(String, String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全
encodeUrlSafe(String, Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全的
encodeUrlSafe(byte[]) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全的
encodeUrlSafe(byte[], String) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全的
encodeUrlSafe(byte[], Charset) - 类 中的静态方法cn.hutool.core.codec.Base64Encoder
base64编码,URL安全的
endOfDay(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某天的结束时间
endOfDay(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某天的结束时间
endOfMonth(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某月的结束时间
endOfMonth(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某月的结束时间
endOfQuarter(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某季度的结束时间
endOfQuarter(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某季度的结束时间
endOfWeek(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的结束时间
endOfWeek(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的结束时间,周日定为一周的结束
endOfWeek(Calendar, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某周的结束时间
endOfYear(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某年的结束时间
endOfYear(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取某年的结束时间
endWith(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否以给定字符结尾
endWith(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串结尾
如果给定的字符串和开头字符串都为null则返回true,否则任意一个值为null返回false
endWith(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串结尾
endWithAny(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串是否以任何一个字符串结尾
给定字符串和数组为空都返回false
endWithIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串结尾,忽略大小写
ENTRY_CREATE - 类 中的静态变量cn.hutool.core.io.watch.WatchMonitor
创建事件
ENTRY_DELETE - 类 中的静态变量cn.hutool.core.io.watch.WatchMonitor
删除事件
ENTRY_MODIFY - 类 中的静态变量cn.hutool.core.io.watch.WatchMonitor
修改事件
entrySet() - 类 中的方法cn.hutool.core.map.MapProxy
 
EnumConverter - cn.hutool.core.convert.impl中的类
无泛型检查的枚举转换器
EnumConverter(Class) - 类 的构造器cn.hutool.core.convert.impl.EnumConverter
构造
EnumerationIter<E> - cn.hutool.core.collection中的类
Enumeration对象转Iterator对象
EnumerationIter(Enumeration<E>) - 类 的构造器cn.hutool.core.collection.EnumerationIter
构造
EnumUtil - cn.hutool.core.util中的类
枚举工具类
EnumUtil() - 类 的构造器cn.hutool.core.util.EnumUtil
 
EOF - 类 中的静态变量cn.hutool.core.io.IoUtil
数据流末尾
equal(Object, Object) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否相等
当两值都为null返回true
equal(Object, Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
比较两个对象是否相等。
equals(Object) - 类 中的方法cn.hutool.core.bean.DynaBean
 
equals(Object) - 类 中的方法cn.hutool.core.comparator.ComparableComparator
 
equals(Object) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
 
equals(Object) - 类 中的方法cn.hutool.core.comparator.ReverseComparator
 
equals(Object) - 类 中的方法cn.hutool.core.comparator.VersionComparator
 
equals(Object) - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
equals(Object) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
equals(File, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
检查两个文件是否是同一个文件
所谓文件相同,是指File对象是否指向同一个文件或文件夹
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
相等需同时满足如下条件: 非空 类型为 MutableBool 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
相等需同时满足如下条件: 非空 类型为 MutableByte 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
相等需同时满足如下条件: 非空 类型为 MutableDouble 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
相等需同时满足如下条件: 非空 类型为 MutableFloat 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
相等需同时满足如下条件: 非空 类型为 MutableInt 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
相等需同时满足如下条件: 非空 类型为 MutableLong 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
 
equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
相等需同时满足如下条件: 非空 类型为 MutableShort 值相等
equals(Object) - 类 中的方法cn.hutool.core.lang.UUID
将此对象与指定对象比较。
equals(Object) - 类 中的方法cn.hutool.core.lang.WeightRandom.WeightObj
 
equals(char, char, boolean) - 类 中的静态方法cn.hutool.core.util.CharUtil
比较两个字符是否相同
equals(Class<?>, String, boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
指定类是否与给定的类名相同
equals(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较大小,值相等 返回true
此方法通过调用BigDecimal.compareTo(BigDecimal)方法来判断是否相等
此方法判断值相等时忽略精度的,既0.00 == 0
equals(char, char, boolean) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较两个字符是否相同
equals(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个字符串(大小写敏感)。
equals(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个字符串是否相等。
equalsCharAt(CharSequence, int, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串指定位置的字符是否与给定字符相同
如果字符串为null,返回false
如果给定的位置大于字符串长度,返回false
如果给定的位置小于0,返回false
equalsIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
比较两个字符串(大小写不敏感)。
error() - 类 中的静态方法cn.hutool.core.lang.Console
同 System.err.println()方法,打印控制台日志
error(Object) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.err.println()方法,打印控制台日志
error(String, Object...) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.err.println()方法,打印控制台日志
error(Throwable, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.err.println()方法,打印控制台日志
errorOnDifferentFieldCount - 类 中的变量cn.hutool.core.text.csv.CsvReadConfig
每行字段个数不同时是否抛出异常,默认false
escape(String) - 类 中的静态方法cn.hutool.core.util.EscapeUtil
Escape编码(Unicode)
该方法不会对 ASCII 字母和数字进行编码,也不会对下面这些 ASCII 标点符号进行编码: * @ - _ + . / 。
escape(char) - 类 中的静态方法cn.hutool.core.util.ReUtil
转义字符,将正则的关键字转义
escape(String) - 类 中的静态方法cn.hutool.core.util.ReUtil
转义字符串,将正则的关键字转义
escape(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
转义XML特殊字符: & (ampersand) 替换为 &amp; < (小于) 替换为 &lt; > (大于) 替换为 &gt; " (双引号) 替换为 &quot;
escapeHtml4(String) - 类 中的静态方法cn.hutool.core.util.EscapeUtil
转义HTML4中的特殊字符
EscapeUtil - cn.hutool.core.util中的类
转义和反转义工具类Escape / Unescape
escape采用ISO Latin字符集对指定的字符串进行编码。
EscapeUtil() - 类 的构造器cn.hutool.core.util.EscapeUtil
 
EVENTS_ALL - 类 中的静态变量cn.hutool.core.io.watch.WatchMonitor
全部事件
excAsync(Runnable, boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
执行异步方法
ExceptionUtil - cn.hutool.core.exceptions中的类
异常工具类
ExceptionUtil() - 类 的构造器cn.hutool.core.exceptions.ExceptionUtil
 
exec(String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行命令
命令带参数时参数可作为其中一个参数,也可以将命令和参数组合为一个字符串传入
exec(String[], String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行命令
命令带参数时参数可作为其中一个参数,也可以将命令和参数组合为一个字符串传入
exec(String[], File, String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行命令
命令带参数时参数可作为其中一个参数,也可以将命令和参数组合为一个字符串传入
execAsync(Callable<T>) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
执行有返回值的异步方法
Future代表一个异步执行的操作,通过get()方法可以获得操作的结果,如果异步操作还没有完成,则,get()会使当前线程阻塞
execAsync(Runnable) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
执行有返回值的异步方法
Future代表一个异步执行的操作,通过get()方法可以获得操作的结果,如果异步操作还没有完成,则,get()会使当前线程阻塞
execForLines(String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行系统命令,使用系统默认编码
execForLines(Charset, String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行系统命令,使用系统默认编码
execForStr(String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行系统命令,使用系统默认编码
execForStr(Charset, String...) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
执行系统命令,使用系统默认编码
execute(Runnable) - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
直接在公共线程池中执行线程
execute(Runnable) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
直接在公共线程池中执行线程
ExecutorBuilder - cn.hutool.core.thread中的类
ThreadPoolExecutor 建造者
ExecutorBuilder() - 类 的构造器cn.hutool.core.thread.ExecutorBuilder
 
exist(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断文件是否存在,如果path为null,则返回false
exist(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断文件是否存在,如果file为null,则返回false
exist(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
是否存在匹配文件
extName(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取文件扩展名,扩展名不带“.”
extName(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得文件的扩展名,扩展名不带“.”
extract(Iterable<?>, Editor<Object>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
通过Editor抽取集合元素中的某些值返回为新列表
例如提供的是一个Bean列表,通过Editor接口实现获取某个字段值,返回这个字段值组成的新列表
extractMulti(Pattern, String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
从content中匹配出多个值并根据template生成新的字符串
例如:
content 2013年5月 pattern (.*?)
extractMulti(String, String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
从content中匹配出多个值并根据template生成新的字符串
匹配结束后会删除匹配内容之前的内容(包括匹配内容)
例如:
content 2013年5月 pattern (.*?)
extractMultiAndDelPre(Pattern, Holder<String>, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
从content中匹配出多个值并根据template生成新的字符串
匹配结束后会删除匹配内容之前的内容(包括匹配内容)
例如:
content 2013年5月 pattern (.*?)
extractMultiAndDelPre(String, Holder<String>, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
从content中匹配出多个值并根据template生成新的字符串
例如:
content 2013年5月 pattern (.*?)

F

factorial(long, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
计算阶乘 n!
factorial(long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
计算阶乘 n!
FastByteArrayOutputStream - cn.hutool.core.io中的类
基于快速缓冲FastByteBuffer的OutputStream,随着数据的增长自动扩充缓冲区 可以通过FastByteArrayOutputStream.toByteArray()FastByteArrayOutputStream.toString()来获取数据 FastByteArrayOutputStream.close()方法无任何效果,当流被关闭后不会抛出IOException 这种设计避免重新分配内存块而是分配新增的缓冲区,缓冲区不会被GC,数据也不会被拷贝到其他缓冲区。
FastByteArrayOutputStream() - 类 的构造器cn.hutool.core.io.FastByteArrayOutputStream
 
FastByteArrayOutputStream(int) - 类 的构造器cn.hutool.core.io.FastByteArrayOutputStream
 
FastByteBuffer - cn.hutool.core.io中的类
代码移植自blade
快速缓冲,将数据存放在缓冲集中,取代以往的单一数组
FastByteBuffer() - 类 的构造器cn.hutool.core.io.FastByteBuffer
 
FastByteBuffer(int) - 类 的构造器cn.hutool.core.io.FastByteBuffer
 
FastDateFormat - cn.hutool.core.date.format中的类
FastDateFormat 是一个线程安全的 SimpleDateFormat 实现。
FastDateFormat(String, TimeZone, Locale) - 类 的构造器cn.hutool.core.date.format.FastDateFormat
构造
FastDateFormat(String, TimeZone, Locale, Date) - 类 的构造器cn.hutool.core.date.format.FastDateFormat
构造
FieldComparator<T> - cn.hutool.core.comparator中的类
Bean字段排序器
参阅feilong-core中的PropertyComparator
FieldComparator(Class<T>, String) - 类 的构造器cn.hutool.core.comparator.FieldComparator
构造
fieldMapping - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
拷贝属性的字段映射,用于不同的属性之前拷贝做对应表用
fieldSeparator - 类 中的变量cn.hutool.core.text.csv.CsvConfig
字段分隔符,默认逗号','
fieldValueAsMap(Iterator<?>, String, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
两个字段值组成新的Map
fieldValueList(Iterator<V>, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
获取指定Bean列表中某个字段,生成新的列表
fieldValueMap(Iterable<V>, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
字段值与列表值对应的Map,常用于元素对象中有唯一ID时需要按照这个ID查找对象的情况
例如:车牌号 =》车
fieldValueMap(Iterator<V>, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
字段值与列表值对应的Map,常用于元素对象中有唯一ID时需要按照这个ID查找对象的情况
例如:车牌号 =》车
file - 类 中的变量cn.hutool.core.io.file.FileWrapper
 
file(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象,自动识别相对或绝对路径,相对路径将自动从ClassPath下寻找
file(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象
此方法会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
file(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象
此方法会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
file(File, String...) - 类 中的静态方法cn.hutool.core.io.FileUtil
通过多层目录参数创建文件
此方法会检查slip漏洞,漏洞说明见http://blog.nsfocus.net/zip-slip-2/
file(String...) - 类 中的静态方法cn.hutool.core.io.FileUtil
通过多层目录创建文件 元素名(多层目录名)
file(URI) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象
file(URL) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象
FILE_URL_PREFIX - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 前缀表示文件: "file:"
FileAppender - cn.hutool.core.io.file中的类
文件追加器
持有一个文件,在内存中积累一定量的数据后统一追加到文件
此类只有在写入文件时打开文件,并在写入结束后关闭之。
FileAppender(File, int, boolean) - 类 的构造器cn.hutool.core.io.file.FileAppender
构造
FileAppender(File, Charset, int, boolean) - 类 的构造器cn.hutool.core.io.file.FileAppender
构造
FileCopier - cn.hutool.core.io.file中的类
文件拷贝器
支持以下几种情况: 1、文件复制到文件 2、文件复制到目录 3、目录复制到目录 4、目录下的文件和目录复制到另一个目录
FileCopier(File, File) - 类 的构造器cn.hutool.core.io.file.FileCopier
构造
FileReader - cn.hutool.core.io.file中的类
文件读取器
FileReader(File, Charset) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
FileReader(File, String) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
FileReader(String, Charset) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
FileReader(String, String) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
FileReader(File) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
编码使用 FileWrapper.DEFAULT_CHARSET
FileReader(String) - 类 的构造器cn.hutool.core.io.file.FileReader
构造
编码使用 FileWrapper.DEFAULT_CHARSET
FileReader.ReaderHandler<T> - cn.hutool.core.io.file中的接口
Reader处理接口
FileResource - cn.hutool.core.io.resource中的类
文件资源访问对象
FileResource(File) - 类 的构造器cn.hutool.core.io.resource.FileResource
构造
FileResource(File, String) - 类 的构造器cn.hutool.core.io.resource.FileResource
构造
FileResource(String) - 类 的构造器cn.hutool.core.io.resource.FileResource
构造
FileTypeUtil - cn.hutool.core.io中的类
文件类型判断工具类
此工具根据文件的前几位bytes猜测文件类型,对于文本、zip判断不准确,对于视频、图片类型判断准确
FileUtil - cn.hutool.core.io中的类
文件工具类
FileUtil() - 类 的构造器cn.hutool.core.io.FileUtil
 
FileWrapper - cn.hutool.core.io.file中的类
文件包装器,扩展文件对象
FileWrapper(File, Charset) - 类 的构造器cn.hutool.core.io.file.FileWrapper
构造
FileWriter - cn.hutool.core.io.file中的类
文件写入器
FileWriter(File, Charset) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
FileWriter(File, String) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
FileWriter(String, Charset) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
FileWriter(String, String) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
FileWriter(File) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
编码使用 FileWrapper.DEFAULT_CHARSET
FileWriter(String) - 类 的构造器cn.hutool.core.io.file.FileWriter
构造
编码使用 FileWrapper.DEFAULT_CHARSET
fill(String, char, int, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
将已有字符串填充为规定长度,如果已有字符串超过这个长度则返回这个字符串
fillAfter(String, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
将已有字符串填充为规定长度,如果已有字符串超过这个长度则返回这个字符串
字符填充于字符串后
fillBean(T, ValueProvider<String>, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
填充Bean的核心方法
fillBeanWithMap(Map<?, ?>, T, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
使用Map填充Bean对象
fillBeanWithMap(Map<?, ?>, T, boolean, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
使用Map填充Bean对象,可配置将下划线转换为驼峰
fillBeanWithMap(Map<?, ?>, T, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
使用Map填充Bean对象
fillBeanWithMap(Map<?, ?>, T, boolean, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
使用Map填充Bean对象
fillBeanWithMapIgnoreCase(Map<?, ?>, T, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
使用Map填充Bean对象,忽略大小写
fillBefore(String, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
将已有字符串填充为规定长度,如果已有字符串超过这个长度则返回这个字符串
字符填充于字符串前
filter(Collection<T>, Editor<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(List<T>, Editor<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(Collection<T>, Filter<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Filter实现来过滤返回需要的元素内容,这个Filter实现可以实现以下功能: 1、过滤出需要的对象,Filter.accept(Object)方法返回true的对象将被加入结果集合中
filter(List<T>, Filter<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Filter实现来过滤返回需要的元素内容,这个Filter实现可以实现以下功能: 1、过滤出需要的对象,Filter.accept(Object)方法返回true的对象将被加入结果集合中
filter(Map<K, V>, Editor<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(Map<K, V>, Filter<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(String...) - 类 中的方法cn.hutool.core.lang.Dict
过滤Map保留指定键值对,如果键不存在跳过
Filter<T> - cn.hutool.core.lang中的接口
过滤器接口
filter(Map<K, V>, Editor<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.map.MapUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(Map<K, V>, Filter<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.map.MapUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(Map<K, V>, K...) - 类 中的静态方法cn.hutool.core.map.MapUtil
过滤Map保留指定键值对,如果键不存在跳过
filter(T[], Editor<T>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象
filter(T[], Filter<T>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
过滤
过滤过程通过传入的Filter实现来过滤返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,Filter.accept(Object)方法返回true的对象将被加入结果集合中
findAll(String, String, int) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果
findAll(String, String, int, T) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果
findAll(Pattern, String, int) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果
findAll(Pattern, String, int, T) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果
findAllGroup0(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果,获得匹配的所有结果中正则对应分组0的内容
findAllGroup0(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果,获得匹配的所有结果中正则对应分组0的内容
findAllGroup1(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果,获得匹配的所有结果中正则对应分组1的内容
findAllGroup1(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
取得内容中匹配的所有结果,获得匹配的所有结果中正则对应分组1的内容
findEditor(Class<?>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
查找类型转换器 PropertyEditor
findOne(Iterable<T>, Filter<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
查找第一个匹配元素对象
findOneByField(Iterable<T>, String, Object) - 类 中的静态方法cn.hutool.core.collection.CollUtil
查找第一个匹配元素对象
如果集合元素是Map,则比对键和值是否相同,相同则返回
如果为普通Bean,则通过反射比对元素字段名对应的字段值是否相同,相同则返回
如果给定字段值参数是null 且元素对象中的字段值也为null则认为相同
finish() - 接口 中的方法cn.hutool.core.io.StreamProgress
结束
firstNonNull(T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中第一个非空元素
flip() - 类 中的方法cn.hutool.core.img.Img
水平翻转图像
flip(File, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
水平翻转图像
flip(Image, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
水平翻转图像
flip(Image, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
水平翻转图像
flip(Image, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
水平翻转图像,写出格式为JPG
flip(Image) - 类 中的静态方法cn.hutool.core.util.ImageUtil
水平翻转图像
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
floatValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
flush() - 类 中的方法cn.hutool.core.io.file.FileAppender
刷入到文件
flush() - 类 中的方法cn.hutool.core.text.csv.CsvWriter
 
fnvHash(byte[]) - 类 中的静态方法cn.hutool.core.util.HashUtil
改进的32位FNV算法1
fnvHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
改进的32位FNV算法1
forEach(Iterator<T>, CollUtil.Consumer<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
循环遍历 Iterator,使用CollUtil.Consumer 接受遍历的每条数据,并针对每条数据做处理
forEach(Enumeration<T>, CollUtil.Consumer<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
循环遍历 Enumeration,使用CollUtil.Consumer 接受遍历的每条数据,并针对每条数据做处理
forEach(Map<K, V>, CollUtil.KVConsumer<K, V>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
循环遍历Map,使用CollUtil.KVConsumer 接受遍历的每条数据,并针对每条数据做处理
format(double, boolean) - 类 中的静态方法cn.hutool.core.convert.NumberChineseFormater
阿拉伯数字转换成中文,小数点后四舍五入保留两位.
format(double, boolean, boolean) - 类 中的静态方法cn.hutool.core.convert.NumberChineseFormater
阿拉伯数字转换成中文,小数点后四舍五入保留两位.
format(Object) - 类 中的静态方法cn.hutool.core.convert.NumberWordFormater
将阿拉伯数字转为英文表达式
format() - 类 中的方法cn.hutool.core.date.BetweenFormater
格式化日期间隔输出
format(Date, String) - 类 中的静态方法cn.hutool.core.date.DateUtil
根据特定格式格式化日期
format(Date, DatePrinter) - 类 中的静态方法cn.hutool.core.date.DateUtil
根据特定格式格式化日期
format(Date, DateFormat) - 类 中的静态方法cn.hutool.core.date.DateUtil
根据特定格式格式化日期
format(long) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
格式化日期表示的毫秒数
format(Date) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
使用 GregorianCalendar 格式化 Date
format(Calendar) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
Formats a Calendar object.
format(long, B) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
Formats a millisecond long value into the supplied Appendable.
format(Date, B) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
Formats a Date object into the supplied Appendable using a GregorianCalendar.
format(Calendar, B) - 接口 中的方法cn.hutool.core.date.format.DatePrinter
Formats a Calendar object into the supplied Appendable.
format(Object, StringBuffer, FieldPosition) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(long) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(Date) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(Calendar) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(long, B) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(Date, B) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(Calendar, B) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
format(String, Object...) - 类 中的静态方法cn.hutool.core.text.StrFormatter
格式化字符串
此方法只是简单将占位符 {} 按照顺序替换为参数
如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
例:
通常使用:format("this is {} for {}", "a", "b") =》 this is a for b
转义{}: format("this is \\{} for {}", "a", "b") =》 this is \{} for a
转义\: format("this is \\\\{} for {}", "a", "b") =》 this is \a for b
format(CharSequence, Object...) - 类 中的静态方法cn.hutool.core.util.StrUtil
格式化文本, {} 表示占位符
此方法只是简单将占位符 {} 按照顺序替换为参数
如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
例:
通常使用:format("this is {} for {}", "a", "b") =》 this is a for b
转义{}: format("this is \\{} for {}", "a", "b") =》 this is \{} for a
转义\: format("this is \\\\{} for {}", "a", "b") =》 this is \a for b
format(CharSequence, Map<?, ?>) - 类 中的静态方法cn.hutool.core.util.StrUtil
格式化文本,使用 {varName} 占位
map = {a: "aValue", b: "bValue"} format("{a} and {b}", map) ---=》 aValue and bValue
formatBetween(Date, Date, BetweenFormater.Level) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期间隔输出
formatBetween(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期间隔输出,精确到毫秒
formatBetween(long, BetweenFormater.Level) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期间隔输出
formatBetween(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期间隔输出,精确到毫秒
formatDate(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期部分(不包括时间)
格式 yyyy-MM-dd
formatDateTime(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化日期时间
格式 yyyy-MM-dd HH:mm:ss
formatHttpDate(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化为Http的标准日期格式
formatPercent(double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
格式化百分比,小数采用四舍五入方式
formatTime(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化时间
格式 HH:mm:ss
formatUrl(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
格式化URL链接
from(File) - 类 中的静态方法cn.hutool.core.img.Img
从文件读取图片并开始处理
from(InputStream) - 类 中的静态方法cn.hutool.core.img.Img
从流读取图片并开始处理
from(ImageInputStream) - 类 中的静态方法cn.hutool.core.img.Img
从ImageInputStream取图片并开始处理
from(URL) - 类 中的静态方法cn.hutool.core.img.Img
从URL取图片并开始处理
from(Image) - 类 中的静态方法cn.hutool.core.img.Img
从Image取图片并开始处理
fromString(String) - 类 中的静态方法cn.hutool.core.lang.UUID
根据 UUID.toString() 方法中描述的字符串标准表示形式创建UUID
fromString(Class<T>, String) - 类 中的静态方法cn.hutool.core.util.EnumUtil
字符串转枚举,调用Enum.valueOf(Class, String)
FULL - 类 中的静态变量cn.hutool.core.date.format.FastDateFormat
FULL locale dependent date or time style.
Func<P,R> - cn.hutool.core.lang中的接口
函数对象
接口灵感来自于ActFramework
一个函数接口代表一个一个函数,用于包装一个函数为对象
在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象

G

GBK - 类 中的静态变量cn.hutool.core.util.CharsetUtil
GBK
GENERAL - 类 中的静态变量cn.hutool.core.lang.PatternPool
英文字母 、数字和下划线
GENERAL - 类 中的静态变量cn.hutool.core.lang.Validator
英文字母 、数字和下划线
GENERAL_WITH_CHINESE - 类 中的静态变量cn.hutool.core.lang.PatternPool
中文字、英文字母、数字和下划线
GENERAL_WITH_CHINESE - 类 中的静态变量cn.hutool.core.lang.Validator
中文字、英文字母、数字和下划线
generate() - 类 中的方法cn.hutool.core.lang.LocalPortGenerater
生成一个本地端口,用于远程端口映射
generateBySet(int, int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
生成不重复随机数 根据给定的最小数字和最大数字,以及随机数的个数,产生指定的不重复的数组
generateRandomNumber(int, int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
生成不重复随机数 根据给定的最小数字和最大数字,以及随机数的个数,产生指定的不重复的数组
GenericEnumConverter<E extends java.lang.Enum<E>> - cn.hutool.core.convert.impl中的类
泛型枚举转换器
GenericEnumConverter(Class<E>) - 类 的构造器cn.hutool.core.convert.impl.GenericEnumConverter
构造
genGetter(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
生成get方法名
genSetter(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
生成set方法名
例如:name 返回 setName
get(Object) - 类 中的方法cn.hutool.core.bean.BeanPath
获取Bean中对应表达式的值
get(String) - 类 中的方法cn.hutool.core.bean.DynaBean
获得字段对应值
get(Collection<T>, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取集合中指定下标的元素值,下标可以为负数,例如-1表示最后一个元素
get(int) - 类 中的方法cn.hutool.core.io.FastByteBuffer
根据索引位返回一个字节
get(Object) - 类 中的方法cn.hutool.core.lang.ConsistentHash
获得一个最近的顺时针节点
get(String, T) - 类 中的方法cn.hutool.core.lang.Dict
获得特定类型值
get() - 类 中的方法cn.hutool.core.lang.loader.AtomicLoader
获取一个对象,第一次调用此方法时初始化对象然后返回,之后调用此方法直接返回原对象
get() - 类 中的方法cn.hutool.core.lang.loader.LazyLoader
获取一个对象,第一次调用此方法时初始化对象然后返回,之后调用此方法直接返回原对象
get() - 接口 中的方法cn.hutool.core.lang.loader.Loader
获取一个准备好的对象
通过准备逻辑准备好被加载的对象,然后返回。
get() - 接口 中的方法cn.hutool.core.lang.mutable.Mutable
获得原始值
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
 
get() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
get(String) - 类 中的静态方法cn.hutool.core.lang.PatternPool
先从Pattern池中查找正则对应的Pattern,找不到则编译正则表达式并入池。
get(String, int) - 类 中的静态方法cn.hutool.core.lang.PatternPool
先从Pattern池中查找正则对应的Pattern,找不到则编译正则表达式并入池。
get(K) - 类 中的方法cn.hutool.core.lang.SimpleCache
从缓存池中查找值
get(Class<T>, Object...) - 类 中的静态方法cn.hutool.core.lang.Singleton
获得指定类的单例对象
对象存在于池中返回,否则创建,每次调用此方法获得的对象为同一个对象
注意:单例针对的是类和对象,因此get方法第一次调用时创建的对象始终唯一,也就是说就算参数变更,返回的依旧是第一次创建的对象
get(String, Object...) - 类 中的静态方法cn.hutool.core.lang.Singleton
获得指定类的单例对象
对象存在于池中返回,否则创建,每次调用此方法获得的对象为同一个对象
注意:单例针对的是类和对象,因此get方法第一次调用时创建的对象始终唯一,也就是说就算参数变更,返回的依旧是第一次创建的对象
get(int) - 类 中的方法cn.hutool.core.lang.Tuple
获取指定位置元素
get(Object) - 类 中的方法cn.hutool.core.map.CustomKeyLinkedMap
 
get(Object) - 类 中的方法cn.hutool.core.map.CustomKeyMap
 
get(Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
get(Map<?, ?>, Object, Class<T>) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为指定类型
get(DataFlavor) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
获取剪贴板内容
get(DataFlavor, ClipboardOwner) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
获取剪贴板内容
get(int) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
get(Object, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取数组对象中指定index的值,支持负数,例如-1表示倒数第一个值
get(String, String, int) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串
get(Pattern, String, int) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串,对应分组0表示整个匹配内容,1表示第一个括号分组内容,依次类推
getAbsolutePath(String, Class<?>) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取绝对路径
此方法不会判定给定路径是否有效(文件或目录存在)
getAbsolutePath(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取绝对路径,相对于ClassPath的目录
如果给定就是绝对路径,则返回原路径,原路径把所有\替换为/
兼容Spring风格的路径表示,例如:classpath:config/example.setting也会被识别后转换
getAbsolutePath(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取标准的绝对路径
getAbsolutePath() - 类 中的方法cn.hutool.core.io.resource.ClassPathResource
获得绝对路径Path
对于不存在的资源,返回拼接后的绝对路径
getAgeByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取年龄,只支持15或18位身份证号码
getAgeByIdCard(String, Date) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取指定日期当时的年龄年龄,只支持15或18位身份证号码
getAllFirstLetter(String) - 类 中的静态方法cn.hutool.core.util.PinyinUtil
获取所给中文的每个汉字首字母组成首字母字符串
getAllGroups(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串匹配到的所有分组
getAllGroups(Pattern, String, boolean) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串匹配到的所有分组
getAnnotation(AnnotatedElement, Class<A>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取指定注解
getAnnotation(Class<T>) - 类 中的方法cn.hutool.core.annotation.CombinationAnnotationElement
 
getAnnotations(AnnotatedElement, boolean) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取指定注解
getAnnotations() - 类 中的方法cn.hutool.core.annotation.CombinationAnnotationElement
 
getAnnotationValue(AnnotatedElement, Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取指定注解默认值
如果无指定的属性方法返回null
getAnnotationValue(AnnotatedElement, Class<? extends Annotation>, String) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取指定注解属性的值
如果无指定的属性方法返回null
getAnnotationValueMap(AnnotatedElement, Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取指定注解中所有属性值
如果无指定的属性方法返回null
getAny(Collection<T>, int...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取集合中指定多个下标的元素值,下标可以为负数,例如-1表示最后一个元素
getAny(Map<K, V>, K...) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map的部分key生成新的Map
getAny(Object, int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取数组中指定多个下标元素值,组成新数组
getArray() - 类 中的方法cn.hutool.core.collection.ArrayIter
获得原始数组对象
getArrayType(Class<?>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
根据数组元素类型,获取数组的类型
方法是通过创建一个空数组从而获取其类型
getAttributes(Path, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取文件属性
getBean() - 类 中的方法cn.hutool.core.bean.DynaBean
获得原始Bean
getBeanClass() - 类 中的方法cn.hutool.core.bean.DynaBean
获得Bean的类型
getBeanDesc(Class<?>) - 枚举 中的方法cn.hutool.core.bean.BeanDescCache
获得属性名和BeanDescMap映射
getBeanDesc(Class<?>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获取BeanDesc Bean描述信息
getBetweenMs() - 类 中的方法cn.hutool.core.date.BetweenFormater
获得 时长毫秒数
getBigDecimal(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取BigDecimal型属性值
getBigDecimal(K, BigDecimal) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取BigDecimal型属性值
若获得的值为不可见字符,使用默认值
getBigDecimal(K, BigDecimal) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getBigDecimal(K, BigDecimal) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getBigDecimal(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取BigDecimal型属性值
无值或获取错误返回null
getBigDecimal(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getBigDecimalByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取BigDecimal型属性值
getBigDecimalList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取BigDecimal型属性值列表
getBigDecimals(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取BigDecimal型属性值数组
getBigDecimals(String, BigDecimal[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取BigDecimal型属性值数组
getBigInteger(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取BigInteger型属性值
getBigInteger(K, BigInteger) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取BigInteger型属性值
若获得的值为不可见字符,使用默认值
getBigInteger(K, BigInteger) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getBigInteger(K, BigInteger) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getBigInteger(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取BigInteger型属性值
无值或获取错误返回null
getBigInteger(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getBigIntegerByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取BigInteger型属性值
getBigIntegerList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取BigInteger型属性值列表
getBigIntegers(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取BigInteger型属性值数组
getBigIntegers(String, BigInteger[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取BigInteger型属性值数组
getBinaryStr(Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
获得数字对应的二进制字符串
getBirth(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取生日,只支持15或18位身份证号码
getBirthByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取生日,只支持15或18位身份证号码
getBirthDate(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
从身份证号码中获取生日日期,只支持15或18位身份证号码
getBOMInputStream(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得BOM输入流,用于处理带BOM头的文件
getBool(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取boolean型属性值
getBool(K, Boolean) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取boolean型属性值
若获得的值为不可见字符,使用默认值
getBool(K, Boolean) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getBool(K, Boolean) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getBool(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取boolean型属性值
无值或获取错误返回null
getBool(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getBool(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Bool
getBoolByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取boolean型属性值
getBoolList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Boolean型属性值列表
getBools(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Boolean型属性值数组
getBools(String, Boolean[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Boolean型属性值数组
getByName(String) - 类 中的方法cn.hutool.core.text.csv.CsvRow
获取标题对应的字段内容
getByte(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取byte型属性值
getByte(K, Byte) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取byte型属性值
若获得的值为不可见字符,使用默认值
getByte(K, Byte) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getByte(K, Byte) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getByte(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取byte型属性值
无值或获取错误返回null
getByte(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getByteByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取byte型属性值
getByteList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Byte型属性值列表
getBytes(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Byte型属性值数组
getBytes(String, Byte[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Byte型属性值数组
getBytes(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getByXPath(String, Object, QName) - 类 中的静态方法cn.hutool.core.util.XmlUtil
通过XPath方式读取XML节点等信息
Xpath相关文章:https://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
getCaller() - 接口 中的方法cn.hutool.core.lang.caller.Caller
获得调用者
getCaller(int) - 接口 中的方法cn.hutool.core.lang.caller.Caller
获得调用者,指定第几级调用者 调用者层级关系: 0 CallerUtil 1 调用CallerUtil中方法的类 2 调用者的调用者 ...
getCaller() - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
获得调用者
getCaller(int) - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
获得调用者,指定第几级调用者
调用者层级关系: 0 CallerUtil 1 调用CallerUtil中方法的类 2 调用者的调用者 ...
getCaller() - 类 中的方法cn.hutool.core.lang.caller.SecurityManagerCaller
 
getCaller(int) - 类 中的方法cn.hutool.core.lang.caller.SecurityManagerCaller
 
getCaller() - 类 中的方法cn.hutool.core.lang.caller.StackTraceCaller
 
getCaller(int) - 类 中的方法cn.hutool.core.lang.caller.StackTraceCaller
 
getCallerCaller() - 接口 中的方法cn.hutool.core.lang.caller.Caller
获得调用者的调用者
getCallerCaller() - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
获得调用者的调用者
getCallerCaller() - 类 中的方法cn.hutool.core.lang.caller.SecurityManagerCaller
 
getCallerCaller() - 类 中的方法cn.hutool.core.lang.caller.StackTraceCaller
 
getCanonicalPath(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取规范的绝对路径
getCausedBy(Throwable, Class<? extends Exception>...) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获取由指定异常类引起的异常
getChar(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取char型属性值
getChar(K, Character) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取char型属性值
若获得的值为不可见字符,使用默认值
getChar(K, Character) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getChar(K, Character) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getChar(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取char型属性值
无值或获取错误返回null
getChar(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getChar(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Character
getCharByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取char型属性值
getCharList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Character型属性值列表
getChars(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Character型属性值数组
getChars(String, Character[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Character型属性值数组
getChars(int, int, char[], int) - 类 中的方法cn.hutool.core.text.StrBuilder
将指定段的字符列表写出到目标字符数组中
getCharset() - 类 中的方法cn.hutool.core.io.BOMInputStream
 
getCharset() - 类 中的方法cn.hutool.core.io.file.FileWrapper
获得字符集编码
getClass(T) - 类 中的静态方法cn.hutool.core.util.ClassUtil
null安全的获取对象类型
getClass(Type) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得Type对应的原始类
getClass(Field) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得Field对应的原始类
getClasses(Object...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得对象数组的类数组
getClassLoader() - 类 中的方法cn.hutool.core.io.resource.ClassPathResource
获得 ClassLoader
getClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
获取ClassLoader
获取顺序如下:
1、获取当前线程的ContextClassLoader 2、获取ClassLoaderUtil类对应的ClassLoader 3、获取系统ClassLoader(ClassLoader.getSystemClassLoader()
getClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取ClassLoader
获取顺序如下:
1、获取当前线程的ContextClassLoader 2、获取ClassUtil类对应的ClassLoader 3、获取系统ClassLoader(ClassLoader.getSystemClassLoader()
getClassName(Object, boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取类名
getClassName(Class<?>, boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取类名
类名并不包含“.class”这个扩展名
例如:ClassUtil这个类
isSimple为false: "com.xiaoleilu.hutool.util.ClassUtil" isSimple为true: "ClassUtil"
getClassPath() - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath,将编码后的中文路径解码为原字符
这个ClassPath路径会文件路径被标准化处理
getClassPath(boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath,这个ClassPath路径会文件路径被标准化处理
getClassPathResources() - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath,不解码路径中的特殊字符(例如空格和中文)
getClassPathResources(boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath
getClassPaths(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath,不解码路径中的特殊字符(例如空格和中文)
getClassPaths(String, boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath
getClassPathURL() - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得ClassPath URL
getClipboard() - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
获取系统剪贴板
getColor(int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
获取一个RGB值对应的颜色
getColor(String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
将颜色值转换成具体的颜色类型 汇集了常用的颜色集,支持以下几种形式: 1.
getComponentType(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取数组对象的元素类型
getComponentType(Class<?>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取数组对象的元素类型
getConstructor(Class<T>, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
查找类中的指定参数的构造方法,如果找到构造方法,会自动设置可访问为true
getConstructors(Class<T>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有构造列表
getConstructorsDirectly(Class<?>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有字段列表,直接反射获取,无缓存
getContainsStr(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
查找指定字符串是否包含指定字符串列表中的任意一个字符串,如果包含返回找到的第一个字符串
getContainsStrIgnoreCase(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
查找指定字符串是否包含指定字符串列表中的任意一个字符串,如果包含返回找到的第一个字符串
忽略大小写
getContextClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
获取当前线程的ClassLoader
getContextClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取当前线程的ClassLoader
getConverter(Type, boolean) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
获得转换器
getCopyFilter() - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
获得过滤器
getCustomConverter(Type) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
获得自定义转换器
getDate(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取Date类型值
getDate(K, Date) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取Date类型值
getDate(K, Date) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getDate(K, Date) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getDate(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取Date型属性值
无值或获取错误返回null
getDate(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getDate(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Date
getDateInstance(int) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateInstance(int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateInstance(int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateInstance(int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateTimeInstance(int, int) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateTimeInstance(int, int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateTimeInstance(int, int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDateTimeInstance(int, int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getDayByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取生日天,只支持15或18位身份证号码
getDeclaredAnnotations() - 类 中的方法cn.hutool.core.annotation.CombinationAnnotationElement
 
getDeclaredField(Class<?>, String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
查找指定类中的所有字段(包括非public字段), 字段不存在则返回null
getDeclaredFields(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
查找指定类中的所有字段(包括非public字段)
getDeclaredMethod(Class<?>, String, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
查找指定类中的所有方法(包括非public方法),也包括父类和Object类的方法 找不到方法会返回null
getDeclaredMethodNames(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得指定类中的Public方法名
去重重载的方法
getDeclaredMethodOfObj(Object, String, Object...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
查找指定对象中的所有方法(包括非public方法),也包括父对象和Object类的方法
getDeclaredMethods(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得声明的所有方法,包括本类及其父类和接口的所有方法和Object类的方法
getDecodedPath(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
从URL对象中获取不被编码的路径Path
对于本地路径,URL对象的getPath方法对于包含中文或空格时会被编码,导致本读路径读取错误。
getDefaultCharset() - 类 中的方法cn.hutool.core.io.BOMInputStream
 
getDefaultConverter(Type) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
获得默认转换器
getDefaultValue(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取指定类型分的默认值
默认值规则为: 1、如果为原始类型,返回0 2、非原始类型返回null
getDefaultValues(Class<?>...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得默认值列表
getDest() - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
获得目标
getDouble(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取double型属性值
getDouble(K, Double) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取double型属性值
若获得的值为不可见字符,使用默认值
getDouble(K, Double) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getDouble(K, Double) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getDouble(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取double型属性值
无值或获取错误返回null
getDouble(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getDouble(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Double
getDoubleByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取double型属性值
getDoubleList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Double型属性值列表
getDoubles(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Double型属性值数组
getDoubles(String, Double[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Double型属性值数组
getElement(Element, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
根据节点名获得第一个子节点
getElementByXPath(String, Object) - 类 中的静态方法cn.hutool.core.util.XmlUtil
通过XPath方式读取XML节点等信息
Xpath相关文章:https://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
getElements(Element, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
根据节点名获得子节点列表
getElementType(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获得Iterable对象的元素类型(通过第一个非空元素判断)
getElementType(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获得Iterator对象的元素类型(通过第一个非空元素判断)
getElementType(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
获得Iterable对象的元素类型(通过第一个非空元素判断)
注意,此方法至少会调用多次next方法
getElementType(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
获得Iterator对象的元素类型(通过第一个非空元素判断)
注意,此方法至少会调用多次next方法
getEnum(Class<E>, K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获得Enum类型的值
getEnum(Class<E>, K, E) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获得Enum类型的值
getEnum(Class<E>, K, E) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getEnum(Class<E>, K, E) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getEnum(Class<E>, K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取Enum型属性值
无值或获取错误返回null
getEnum(Class<E>, String) - 类 中的方法cn.hutool.core.lang.Dict
 
getEnumMap(Class<E>) - 类 中的静态方法cn.hutool.core.util.EnumUtil
获取枚举字符串值和枚举对象的Map对应,使用LinkedHashMap保证有序
结果中键为枚举名,值为枚举对象
getExecutor() - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
获得 ExecutorService
getField(String) - 类 中的方法cn.hutool.core.bean.BeanDesc
获得字段名对应的字段对象,如果不存在返回null
getField() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获取字段
getField(DateField) - 类 中的方法cn.hutool.core.date.DateTime
获得日期的某个部分
例如获得年的部分,则使用 getField(DatePart.YEAR)
getField(int) - 类 中的方法cn.hutool.core.date.DateTime
获得日期的某个部分
例如获得年的部分,则使用 getField(Calendar.YEAR)
getField(Class<?>, String) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
查找指定类中的所有字段(包括非public字段),也包括父类和Object类的字段, 字段不存在则返回null
getFieldClass() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获得字段类型
先获取字段的类型,如果字段不存在,则获取Getter方法的返回类型,否则获取Setter的第一个参数类型
getFieldCount() - 类 中的方法cn.hutool.core.text.csv.CsvRow
获取字段格式
getFieldMap() - 类 中的方法cn.hutool.core.text.csv.CsvRow
获取标题与字段值对应的Map
getFieldName() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获取字段名
getFields(Class<?>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有字段列表,包括其父类中的字段
getFieldsDirectly(Class<?>, boolean) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有字段列表,直接反射获取,无缓存
getFieldsValue(Object) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获取所有字段的值
getFieldType() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获得字段类型
先获取字段的类型,如果字段不存在,则获取Getter方法的返回类型,否则获取Setter的第一个参数类型
getFieldValue(Object, String) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获得字段值,通过反射直接获得字段值,并不调用getXXX方法
对象同样支持Map类型,fieldNameOrIndex即为key
getFieldValue(Object, String) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获取字段值
getFieldValue(Object, Field) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获取字段值
getFieldValues(Iterable<?>, String) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取给定Bean列表中指定字段名对应字段值的列表
列表元素支持Bean与Map
getFieldValues(Class<? extends Enum<?>>, String) - 类 中的静态方法cn.hutool.core.util.EnumUtil
获得枚举类中各枚举对象下指定字段的值
getFile() - 类 中的方法cn.hutool.core.io.file.FileWrapper
获得文件
getFile() - 类 中的方法cn.hutool.core.io.resource.UrlResource
获得File
getFirst(Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取集合的第一个元素
getFirst(Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取集合的第一个元素
getFirst(Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
获取集合的第一个元素
getFirst(Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
获取集合的第一个元素
getFirstDayOfWeek() - 类 中的方法cn.hutool.core.date.DateTime
获得一周的第一天,默认为周一
getFirstLetter(char) - 类 中的静态方法cn.hutool.core.util.PinyinUtil
获取拼音首字母
传入汉字,返回拼音首字母
如果传入为字母,返回其小写形式
感谢【帝都】宁静 提供方法
getFirstNumber(String) - 类 中的静态方法cn.hutool.core.util.ReUtil
从字符串中获得第一个整数
getFirstParamClass(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的第一个参数类
getFirstParamType(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的第一个参数类型
优先获取方法的GenericParameterTypes,如果获取不到,则获取ParameterTypes
getFloat(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取float型属性值
getFloat(K, Float) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取float型属性值
若获得的值为不可见字符,使用默认值
getFloat(K, Float) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getFloat(K, Float) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getFloat(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取float型属性值
无值或获取错误返回null
getFloat(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getFloat(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Float
getFormat() - 类 中的方法cn.hutool.core.convert.impl.CalendarConverter
获取日期格式
getFormat() - 类 中的方法cn.hutool.core.convert.impl.DateConverter
获取日期格式
getGenderByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取性别,只支持15或18位身份证号码
getGeneralField(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
获得set或get方法对应的标准属性名
例如:setName 返回 name
getGetter(String) - 类 中的方法cn.hutool.core.bean.BeanDesc
获取Getter方法,如果不存在返回null
getGetter() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获取Getter方法
getGroup0(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串,获得正则中分组0的内容
getGroup0(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串,,获得正则中分组0的内容
getGroup1(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串,获得正则中分组1的内容
getGroup1(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
获得匹配的字符串,,获得正则中分组1的内容
getHeader() - 类 中的方法cn.hutool.core.text.csv.CsvData
Returns the header row - might be null if no header exists.
getHeader() - 类 中的方法cn.hutool.core.text.csv.CsvParser
获取头部字段列表,如果containsHeader设置为false则抛出异常
getHeight() - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
获取屏幕高度
getImage() - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
从剪贴板获取图片
getImageInputStream(InputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
获取ImageInputStream
getImageOutputStream(OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
获取ImageOutputStream
getImageOutputStream(File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
获取ImageOutputStream
getImg() - 类 中的方法cn.hutool.core.img.Img
获取处理过的图片
getInputStream() - 类 中的方法cn.hutool.core.io.file.FileReader
获得输入流
getInputStream(Path) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得输入流
getInputStream(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得输入流
getInputStream(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得输入流
getInstance() - 类 中的静态方法cn.hutool.core.convert.ConverterRegistry
获得单例的 ConverterRegistry
getInstance() - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例,使用默认格式和地区
getInstance(String) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例,使用默认地区
支持缓存
getInstance(String, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getInstance(String, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getInstance(String, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getInt(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取int型属性值
getInt(K, Integer) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取int型属性值
若获得的值为不可见字符,使用默认值
getInt(K, Integer) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getInt(K, Integer) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getInt(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取int型属性值
无值或获取错误返回null
getInt(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getInt(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Integer
getIntByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取int型属性值
getIntList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Integer型属性值列表
getInts(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Integer型属性值数组
getInts(String, Integer[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Integer型属性值数组
getIpByHost(String) - 类 中的静态方法cn.hutool.core.util.NetUtil
通过域名得到IP
getJarFile(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
从URL中获取JarFile
getJavaClassPaths() - 类 中的静态方法cn.hutool.core.util.ClassUtil
 
getKey() - 类 中的方法cn.hutool.core.lang.Pair
获取键
getLast(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
获取集合的最后一个元素
getLastPathEle(Path) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取指定位置的最后一个子路径部分
getLeastSignificantBits() - 类 中的方法cn.hutool.core.lang.UUID
返回此 UUID 的 128 位值中的最低有效 64 位。
getLevel() - 类 中的方法cn.hutool.core.date.BetweenFormater
获得 格式化级别
getLineSeparator() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取当前系统的换行分隔符 Windows: \r\n Mac: \r Linux: \n
getLocale() - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
getLocale() - 接口 中的方法cn.hutool.core.date.format.DateBasic
获得 日期地理位置
getLocale() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
getLocalhost() - 类 中的静态方法cn.hutool.core.util.NetUtil
获取本机网卡IP地址,这个地址为所有网卡中非回路地址的第一个
如果获取失败调用 InetAddress.getLocalHost()方法获取。
getLocalhostStr() - 类 中的静态方法cn.hutool.core.util.NetUtil
获取本机网卡IP地址,这个地址为所有网卡中非回路地址的第一个
如果获取失败调用 InetAddress.getLocalHost()方法获取。
getLocalMacAddress() - 类 中的静态方法cn.hutool.core.util.NetUtil
获得本机MAC地址
getLong(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取long型属性值
getLong(K, Long) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取Long型属性值
若获得的值为不可见字符,使用默认值
getLong(K, Long) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getLong(K, Long) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getLong(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取long型属性值
无值或获取错误返回null
getLong(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getLong(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Long
getLongByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取Long型属性值
getLongList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取BigDecimal型属性值列表
getLongs(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Long型属性值数组
getLongs(String, Long[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Long型属性值数组
getMacAddress(InetAddress) - 类 中的静态方法cn.hutool.core.util.NetUtil
获得指定地址信息中的MAC地址,使用分隔符“-”
getMacAddress(InetAddress, String) - 类 中的静态方法cn.hutool.core.util.NetUtil
获得指定地址信息中的MAC地址
getMainThread() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获取进程的主线程
from Voovan
getMaxLengthEstimate() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
估算生成的日期字符串长度
实际生成的字符串长度小于或等于此值
getMembers() - 类 中的方法cn.hutool.core.lang.Tuple
获得所有元素
getMessage(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获得完整消息,包括异常名
getMethod(Class<?>, String, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
查找指定方法 如果找不到对应的方法则返回null
getMethod(Class<?>, boolean, String, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
查找指定方法 如果找不到对应的方法则返回null
getMethodIgnoreCase(Class<?>, String, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
忽略大小写查找指定方法,如果找不到对应的方法则返回null
getMethodNames(Class<?>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得指定类中的Public方法名
去重重载的方法
getMethodOfObj(Object, String, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
查找指定对象中的所有方法(包括非public方法),也包括父对象和Object类的方法
getMethods(Class<?>, Filter<Method>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得指定类过滤后的Public方法列表
getMethods(Class<?>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有方法列表,包括其父类中的方法
getMethodsDirectly(Class<?>, boolean) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
获得一个类中所有方法列表,直接反射获取,无缓存
getMillis() - 枚举 中的方法cn.hutool.core.date.DateUnit
 
getMimeType(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
根据文件扩展名获得MimeType
getMonthByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取生日月,只支持15或18位身份证号码
getMostSignificantBits() - 类 中的方法cn.hutool.core.lang.UUID
返回此 UUID 的 128 位值中的最高有效 64 位。
getName() - 类 中的方法cn.hutool.core.bean.BeanDesc
获取Bean的全类名
getName() - 枚举 中的方法cn.hutool.core.date.BetweenFormater.Level
获取级别名称
getName(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
返回文件名
getName(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
返回文件名
getName() - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
getName() - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
getName() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
getName() - 接口 中的方法cn.hutool.core.io.resource.Resource
获取资源名,例如文件资源的资源名为文件名
getName() - 类 中的方法cn.hutool.core.io.resource.StringResource
 
getName() - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
getNameFieldMap(Class<? extends Enum<?>>, String) - 类 中的静态方法cn.hutool.core.util.EnumUtil
获得枚举名对应指定字段值的Map
键为枚举名,值为字段值
getNames(Class<? extends Enum<?>>) - 类 中的静态方法cn.hutool.core.util.EnumUtil
枚举类中所有枚举对象的name列表
getNetworkInterfaces() - 类 中的静态方法cn.hutool.core.util.NetUtil
获取本机所有网卡
getNodeByXPath(String, Object) - 类 中的静态方法cn.hutool.core.util.XmlUtil
通过XPath方式读取XML节点等信息
Xpath相关文章:https://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
getNodeListByXPath(String, Object) - 类 中的静态方法cn.hutool.core.util.XmlUtil
通过XPath方式读取XML的NodeList
Xpath相关文章:https://www.ibm.com/developerworks/cn/xml/x-javaxpathapi.html
getNumber(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getObj(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取Object属性值
getObj(K, Object) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取Object属性值
getObj(K, Object) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getObj(K, Object) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getObj(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
 
getObj(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getObj() - 类 中的方法cn.hutool.core.lang.WeightRandom.WeightObj
获取对象
getObj(Object, Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
getObjList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Object型属性值列表
getObjs(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Object型属性值数组
getObjs(String, Object[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Object型属性值数组
getOriginalLineNumber() - 类 中的方法cn.hutool.core.text.csv.CsvRow
获取原始行号,多行情况下为首行行号。
getOutputStream() - 类 中的方法cn.hutool.core.io.file.FileWriter
获得一个输出流对象
getOutputStream(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个输出流对象
getOutputStream(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个输出流对象
getPackage(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得给定类所在包的名称
例如:
com.xiaoleilu.hutool.util.ClassUtil =》 com.xiaoleilu.hutool.util
getPackagePath(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得给定类所在包的路径
例如:
com.xiaoleilu.hutool.util.ClassUtil =》 com/xiaoleilu/hutool/util
getParamClass(Method, int) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的参数类
getParamClasses(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
解析方法的参数类型列表
依赖jre\lib\rt.jar
getParamType(Method, int) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的参数类型
优先获取方法的GenericParameterTypes,如果获取不到,则获取ParameterTypes
getParamTypes(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的参数类型列表
优先获取方法的GenericParameterTypes,如果获取不到,则获取ParameterTypes
getParent(String, int) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取指定层级的父路径 getParent("d:/aaa/bbb/cc/ddd", 0) -> "d:/aaa/bbb/cc/ddd" getParent("d:/aaa/bbb/cc/ddd", 2) -> "d:/aaa/bbb" getParent("d:/aaa/bbb/cc/ddd", 4) -> "d:/" getParent("d:/aaa/bbb/cc/ddd", 5) -> null
getParent(File, int) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取指定层级的父路径 getParent(file("d:/aaa/bbb/cc/ddd", 0)) -> "d:/aaa/bbb/cc/ddd" getParent(file("d:/aaa/bbb/cc/ddd", 2)) -> "d:/aaa/bbb" getParent(file("d:/aaa/bbb/cc/ddd", 4)) -> "d:/" getParent(file("d:/aaa/bbb/cc/ddd", 5)) -> null
getPath() - 类 中的方法cn.hutool.core.io.resource.ClassPathResource
获得Path
getPath(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得path部分
getPathEle(Path, int) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取指定位置的子路径部分,支持负数,例如index为-1表示从后数第一个节点位置
getPattern() - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
getPattern() - 接口 中的方法cn.hutool.core.date.format.DateBasic
获得日期格式化或者转换的格式
getPattern() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
getPinYin(String) - 类 中的静态方法cn.hutool.core.util.PinyinUtil
汉字转拼音 example : 张三 zhangsan
getPrintWriter(boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
获得一个打印写入对象,可以有print
getPrintWriter(String, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个打印写入对象,可以有print
getPrintWriter(String, Charset, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个打印写入对象,可以有print
getPrintWriter(File, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个打印写入对象,可以有print
getProp(String) - 类 中的方法cn.hutool.core.bean.BeanDesc
获取属性,如果不存在返回null
getProperty(Object, String) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
解析Bean中的属性值
getPropertyDescriptor(Class<?>, String) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获得Bean类属性描述,大小写敏感
getPropertyDescriptor(Class<?>, String, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获得Bean类属性描述
getPropertyDescriptorMap(Class<?>, boolean) - 枚举 中的方法cn.hutool.core.bean.BeanInfoCache
获得属性名和PropertyDescriptorMap映射
getPropertyDescriptorMap(Class<?>, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获得字段名和字段描述Map,获得的结果会缓存在 BeanInfoCache
getPropertyDescriptors(Class<?>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
获得Bean字段描述数组
getPropMap(boolean) - 类 中的方法cn.hutool.core.bean.BeanDesc
获取字段名-字段属性Map
getProps() - 类 中的方法cn.hutool.core.bean.BeanDesc
获取字段属性列表
getProvinceByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取户籍省份,只支持15或18位身份证号码
getPublicMethod(Class<?>, String, Class<?>...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
查找指定Public方法 如果找不到对应的方法或方法不为public的则返回null
getPublicMethodNames(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得指定类中的Public方法名
去重重载的方法
getPublicMethods(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得本类及其父类所有Public方法
getPublicMethods(Class<?>, Filter<Method>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得指定类过滤后的Public方法列表
getPublicMethods(Class<?>, Method...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得指定类过滤后的Public方法列表
getPublicMethods(Class<?>, String...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得指定类过滤后的Public方法列表
getPushBackReader(Reader, int) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得PushbackReader
如果是PushbackReader强转返回,否则新建
getRandom() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获取随机数生成器对象
ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。
getRandom(boolean) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获取随机数产生器
getRawList() - 类 中的方法cn.hutool.core.text.csv.CsvRow
获取本行所有字段值列表
getReader() - 类 中的方法cn.hutool.core.io.file.FileReader
获得一个文件读取器
getReader(Path, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getReader(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getReader(File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getReader(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getReader(String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getReader(InputStream, String) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得一个文件读取器
getReader(InputStream, Charset) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得一个Reader
getReader(Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得BufferedReader
如果是BufferedReader强转返回,否则新建。
getReader(Charset) - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
getReader(Charset) - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
getReader(Charset) - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
getReader(Charset) - 接口 中的方法cn.hutool.core.io.resource.Resource
获得Reader
getReader(String, Charset) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
从ClassPath资源中获取BufferedReader
getReader(Charset) - 类 中的方法cn.hutool.core.io.resource.StringResource
 
getReader(Charset) - 类 中的方法cn.hutool.core.io.resource.UrlResource
获得Reader
getReader(CsvReadConfig) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV读取器
getReader() - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV读取器
getReader(String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
获得ImageReader
getReader(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
获得StringReader
getReader(URL, Charset) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得Reader
getRectangle() - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
获取屏幕的矩形
getResource(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
获得资源的URL
路径用/分隔,例如: config/a/db.config spring/xml/test.xml
getResource(String, Class<?>) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
获得资源相对路径对应的URL
getResourceIter(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
获取指定路径下的资源Iterator
路径格式必须为目录格式,用/分隔,例如: config/a spring/xml
getResourceObj(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
获取Resource 资源对象
如果提供路径为绝对路径,返回FileResource,否则返回ClassPathResource
getResources(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
获取指定路径下的资源列表
路径格式必须为目录格式,用/分隔,例如: config/a spring/xml
getResources(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取指定路径下的资源列表
路径格式必须为目录格式,用/分隔,例如: config/a spring/xml
getResourceURL(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得资源的URL
路径用/分隔,例如: config/a/db.config spring/xml/test.xml
getResourceUrl(String, Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得资源相对路径对应的URL
getResult(Process) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
获取命令执行结果,使用系统默认编码,,获取后销毁进程
getResult(Process, Charset) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
获取命令执行结果,获取后销毁进程
getResultLines(Process) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
获取命令执行结果,使用系统默认编码,获取后销毁进程
getResultLines(Process, Charset) - 类 中的静态方法cn.hutool.core.util.RuntimeUtil
获取命令执行结果,使用系统默认编码,获取后销毁进程
getRetentionPolicy(Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取注解类的保留时间,可选值 SOURCE(源码时),CLASS(编译时),RUNTIME(运行时),默认为 CLASS
getReturnClass(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
解析方法的返回类型类列表
getReturnType(Method) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取方法的返回值类型
获取方法的GenericReturnType
getReversedMapping() - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
获取反转之后的映射
getRootElement(Document) - 类 中的静态方法cn.hutool.core.util.XmlUtil
获得XML文档根节点
getRootStackElement() - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获取入口堆栈信息
getRow(int) - 类 中的方法cn.hutool.core.text.csv.CsvData
Returns a CsvRow by its index (starting with 0).
getRowCount() - 类 中的方法cn.hutool.core.text.csv.CsvData
Returns the number of rows in this container.
getRows() - 类 中的方法cn.hutool.core.text.csv.CsvData
Returns an unmodifiable list of rows.
getSecureRandom() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获取SecureRandom,类提供加密的强随机数生成器 (RNG)
getSetter(String) - 类 中的方法cn.hutool.core.bean.BeanDesc
获取Setter方法,如果不存在返回null
getSetter() - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获取Setter方法
getShort(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取short型属性值
getShort(K, Short) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取short型属性值
若获得的值为不可见字符,使用默认值
getShort(K, Short) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getShort(K, Short) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getShort(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取short型属性值
无值或获取错误返回null
getShort(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getShort(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为Short
getShortByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取short型属性值
getShortClassName(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获取完整类名的短格式如:
cn.hutool.core.util.StrUtil -》c.h.c.u.StrUtil
getShortList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取Short型属性值列表
getShorts(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取Short型属性值数组
getShorts(String, Short[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取Short型属性值数组
getSimpleMessage(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获得消息,调用异常类的getMessage方法
getSimpleName() - 类 中的方法cn.hutool.core.bean.BeanDesc
获取Bean的简单类名
getSrc() - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
获取源
getStackElement(int) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获取指定层的堆栈信息
getStackElements() - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
获取当前栈信息
getStackTrace() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
 
getStackTraceElement(int) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获得堆栈项
getStatus() - 异常错误 中的方法cn.hutool.core.exceptions.StatefulException
 
getStr(K) - 接口 中的方法cn.hutool.core.getter.BasicTypeGetter
获取字符串型属性值
getStr(K, String) - 接口 中的方法cn.hutool.core.getter.OptBasicTypeGetter
获取字符串型属性值
若获得的值为不可见字符,使用默认值
getStr(K, String) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
getStr(K, String) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
getStr(K) - 类 中的方法cn.hutool.core.getter.OptNullBasicTypeGetter
获取字符串型属性值
无值或获取错误返回null
getStr(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getStr(Map<?, ?>, Object) - 类 中的静态方法cn.hutool.core.map.MapUtil
获取Map指定key的值,并转换为字符串
getStr() - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
从剪贴板获取文本
getStrByGroup(String, String) - 接口 中的方法cn.hutool.core.getter.GroupedTypeGetter
获取字符串型属性值
getStream() - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
getStream() - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
getStream() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
getStream() - 接口 中的方法cn.hutool.core.io.resource.Resource
获得 InputStream
getStream(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
从ClassPath资源中获取InputStream
getStream() - 类 中的方法cn.hutool.core.io.resource.StringResource
 
getStream() - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
getStream(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
从URL中获取流
getStreamSafe(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
从ClassPath资源中获取InputStream,当资源不存在时返回null
getStrList(String) - 接口 中的方法cn.hutool.core.getter.ListTypeGetter
获取String型属性值列表
getStrs(String) - 接口 中的方法cn.hutool.core.getter.ArrayTypeGetter
获取String型属性值数组
getStrs(String, String[]) - 接口 中的方法cn.hutool.core.getter.OptArrayTypeGetter
获取String型属性值数组
getTargetType(Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
获取注解类可以用来修饰哪些程序元素,如 TYPE, METHOD, CONSTRUCTOR, FIELD, PARAMETER 等
getTargetType() - 类 中的方法cn.hutool.core.convert.AbstractConverter
获得此类实现类的泛型类型
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.ArrayConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.BeanConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.CastConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.EnumConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.GenericEnumConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.MapConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.NumberConverter
 
getTargetType() - 类 中的方法cn.hutool.core.convert.impl.PrimitiveConverter
 
getThreads() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获取JVM中与当前线程同组的所有线程
getThreads(ThreadGroup) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获取JVM中与当前线程同组的所有线程
使用数组二次拷贝方式,防止在线程列表获取过程中线程终止
from Voovan
getTime(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getTimeInstance(int) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getTimeInstance(int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getTimeInstance(int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getTimeInstance(int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
获得 FastDateFormat 实例
支持缓存
getTimestamp(String) - 类 中的方法cn.hutool.core.lang.Dict
 
getTimeZone() - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
getTimeZone() - 接口 中的方法cn.hutool.core.date.format.DateBasic
获得时区
getTimeZone() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
getTmpDir() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取临时文件目录
getTmpDirPath() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取临时文件路径(绝对路径)
getTransferData(DataFlavor) - 类 中的方法cn.hutool.core.swing.ClipboardUtil.ImageSelection
获取图片
getTransferDataFlavors() - 类 中的方法cn.hutool.core.swing.ClipboardUtil.ImageSelection
获取元数据类型信息
getType(String) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
根据文件流的头部信息获得文件类型
getType(InputStream) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
根据文件流的头部信息获得文件类型
getType(File) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
根据文件流的头部信息获得文件类型
getType(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
根据文件流的头部信息获得文件类型
getType(Field) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获取字段对应的Type类型
方法优先获取GenericType,获取不到则获取Type
getTypeArgument(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得给定类的第一个泛型参数
getTypeArgument(Class<?>, int) - 类 中的静态方法cn.hutool.core.util.ClassUtil
获得给定类的泛型参数
getTypeArgument(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
获得给定类的第一个泛型参数
getTypeArgument(Object, int) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
获得给定类的第一个泛型参数
getTypeArgument(Class<?>) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得给定类的第一个泛型参数
getTypeArgument(Class<?>, int) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得给定类的泛型参数
getTypeArgument(Type) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得给定类的第一个泛型参数
getTypeArgument(Type, int) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得给定类的泛型参数
getTypeArguments(Type) - 类 中的静态方法cn.hutool.core.util.TypeUtil
获得指定类型中所有泛型参数类型
getTypeByPath(String) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
通过路径获得文件类型
getUrl() - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
getUrl() - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
getUrl() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
getUrl() - 接口 中的方法cn.hutool.core.io.resource.Resource
获得解析后的URL
getUrl() - 类 中的方法cn.hutool.core.io.resource.StringResource
 
getUrl() - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
getURL(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得URL
getURL(String, Class<?>) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得URL
getURL(File) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得URL,常用于使用绝对路径时的情况
getURLs(File...) - 类 中的静态方法cn.hutool.core.util.URLUtil
获得URL,常用于使用绝对路径时的情况
getUserHomeDir() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取用户目录
getUserHomePath() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取用户路径(绝对路径)
getUtf8Reader(Path) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getUtf8Reader(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getUtf8Reader(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个文件读取器
getValue(Object) - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
获取字段值
首先调用字段对应的Getter方法获取值,如果Getter方法不存在,则判断字段如果为public,则直接获取字段值
getValue() - 枚举 中的方法cn.hutool.core.date.DateField
 
getValue() - 枚举 中的方法cn.hutool.core.date.Month
 
getValue() - 枚举 中的方法cn.hutool.core.date.Quarter
 
getValue() - 枚举 中的方法cn.hutool.core.date.Season
已过时。
 
getValue() - 枚举 中的方法cn.hutool.core.date.Week
获得星期对应Calendar 中的Week值
getValue() - 枚举 中的方法cn.hutool.core.io.file.LineSeparator
 
getValue() - 类 中的方法cn.hutool.core.lang.Pair
获取值
getValue() - 枚举 中的方法cn.hutool.core.thread.RejectPolicy
获取RejectedExecutionHandler枚举值
getValue() - 枚举 中的方法cn.hutool.core.util.ModifierUtil.ModifierType
获取修饰符枚举对应的int修饰符值,值见Modifier
getWebRoot() - 类 中的静态方法cn.hutool.core.io.FileUtil
获取Web项目下的web root路径
原理是首先获取ClassPath路径,由于在web项目中ClassPath位于 WEB-INF/classes/下,故向上获取两级目录即可。
getWeight() - 类 中的方法cn.hutool.core.lang.WeightRandom.WeightObj
获取权重
getWidth() - 类 中的静态方法cn.hutool.core.swing.ScreenUtil
获取屏幕宽度
getWriter(boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
获得一个带缓存的写入对象
getWriter(String, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个带缓存的写入对象
getWriter(String, Charset, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个带缓存的写入对象
getWriter(File, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个带缓存的写入对象
getWriter(File, Charset, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得一个带缓存的写入对象
getWriter(OutputStream, String) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得一个Writer
getWriter(OutputStream, Charset) - 类 中的静态方法cn.hutool.core.io.IoUtil
获得一个Writer
getWriter(String, Charset) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器),使用默认配置,覆盖已有文件(如果存在)
getWriter(File, Charset) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器),使用默认配置,覆盖已有文件(如果存在)
getWriter(String, Charset, boolean) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器),使用默认配置
getWriter(File, Charset, boolean) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器),使用默认配置
getWriter(File, Charset, boolean, CsvWriteConfig) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器)
getWriter(Writer) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器)
getWriter(Writer, CsvWriteConfig) - 类 中的静态方法cn.hutool.core.text.csv.CsvUtil
获取CSV生成器(写出器)
getWriter() - 类 中的静态方法cn.hutool.core.util.StrUtil
获得StringWriter
getYearByIdCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
根据身份编号获取生日年,只支持15或18位身份证号码
GlobalThreadPool - cn.hutool.core.thread中的类
全局公共线程池
gray() - 类 中的方法cn.hutool.core.img.Img
彩色转为黑白
gray(File, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
gray(InputStream, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
此方法并不关闭流
gray(ImageInputStream, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
此方法并不关闭流
gray(Image, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
gray(Image, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
此方法并不关闭流
gray(Image, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
此方法并不关闭流
gray(Image) - 类 中的静态方法cn.hutool.core.util.ImageUtil
彩色转为黑白
group(Collection<T>, CollUtil.Hash<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
分组,按照CollUtil.Hash接口定义的hash算法,集合中的元素放入hash值对应的子列表中
GROUP_VAR - 类 中的静态变量cn.hutool.core.lang.PatternPool
分组
GROUP_VAR - 类 中的静态变量cn.hutool.core.lang.Validator
分组
groupByField(Collection<T>, String) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据元素的指定字段名分组,非Bean都放在第一个分组中
GroupedTypeGetter - cn.hutool.core.getter中的接口
基于分组的Get接口
gzip(String, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Gzip压缩处理
gzip(byte[]) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Gzip压缩处理
gzip(File) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Gzip压缩文件

H

handle(BufferedReader) - 接口 中的方法cn.hutool.core.io.file.FileReader.ReaderHandler
 
handle(String) - 接口 中的方法cn.hutool.core.io.LineHandler
处理一行数据,可以编辑后存入指定地方
hasBlank(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否包含空字符串
hasContent() - 类 中的方法cn.hutool.core.text.StrBuilder
是否有内容
hasEmpty(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否包含空字符串
hash(T) - 接口 中的方法cn.hutool.core.collection.CollUtil.Hash
计算Hash值
hash(Object) - 接口 中的方法cn.hutool.core.lang.ConsistentHash.HashFunc
 
hashCode() - 类 中的方法cn.hutool.core.bean.DynaBean
 
hashCode() - 类 中的方法cn.hutool.core.comparator.ComparableComparator
 
hashCode() - 类 中的方法cn.hutool.core.comparator.ComparatorChain
 
hashCode() - 类 中的方法cn.hutool.core.comparator.ReverseComparator
 
hashCode() - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
hashCode() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
 
hashCode() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
hashCode() - 类 中的方法cn.hutool.core.lang.UUID
返回此 UUID 的哈希码。
hashCode() - 类 中的方法cn.hutool.core.lang.WeightRandom.WeightObj
 
HashUtil - cn.hutool.core.util中的类
Hash算法大全
推荐使用FNV1算法
HashUtil() - 类 的构造器cn.hutool.core.util.HashUtil
 
hasModifier(Class<?>, ModifierUtil.ModifierType...) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否同时存在一个或多个修饰符(可能有多个修饰符,如果有指定的修饰符则返回true)
hasModifier(Constructor<?>, ModifierUtil.ModifierType...) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否同时存在一个或多个修饰符(可能有多个修饰符,如果有指定的修饰符则返回true)
hasModifier(Method, ModifierUtil.ModifierType...) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否同时存在一个或多个修饰符(可能有多个修饰符,如果有指定的修饰符则返回true)
hasModifier(Field, ModifierUtil.ModifierType...) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否同时存在一个或多个修饰符(可能有多个修饰符,如果有指定的修饰符则返回true)
hasMoreElements() - 类 中的方法cn.hutool.core.collection.IteratorEnumeration
 
hasNext() - 类 中的方法cn.hutool.core.collection.ArrayIter
 
hasNext() - 类 中的方法cn.hutool.core.collection.CopiedIter
 
hasNext() - 类 中的方法cn.hutool.core.collection.EnumerationIter
 
hasNext() - 类 中的方法cn.hutool.core.collection.LineIter
判断Reader是否可以存在下一行。
hasNext() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
hasNext() - 类 中的方法cn.hutool.core.lang.Range
 
hasNull(Object, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
 
hasNull(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
是否包含null元素
hasNull(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
是否包含null元素
hasNull(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
是否包含null元素
hasNull(T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
是否包含null元素
hasNullField(Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
判断Bean是否包含值为null的属性
对象本身为null也返回true
hexStrToStr(String, Charset) - 类 中的静态方法cn.hutool.core.convert.Convert
已过时。
hexToBytes(String) - 类 中的静态方法cn.hutool.core.convert.Convert
Hex字符串转换为Byte值
hexToColor(String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
16进制的颜色值转换为Color对象,例如#fcf6d6
hexToStr(String, Charset) - 类 中的静态方法cn.hutool.core.convert.Convert
十六进制转换字符串
HexUtil - cn.hutool.core.util中的类
十六进制(简写为hex或下标16)在数学中是一种逢16进1的进位制,一般用数字0到9和字母A到F表示(其中:A~F即10~15)。
HexUtil() - 类 的构造器cn.hutool.core.util.HexUtil
 
hide(String, int, int) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
隐藏指定位置的几个身份证号数字为“*”
hide(CharSequence, int, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换指定字符串的指定区间内字符为"*"
hideIpPart(String) - 类 中的静态方法cn.hutool.core.util.NetUtil
隐藏掉IP地址的最后一部分为 * 代替
hideIpPart(long) - 类 中的静态方法cn.hutool.core.util.NetUtil
隐藏掉IP地址的最后一部分为 * 代替
Holder<T> - cn.hutool.core.lang中的类
为不可变的对象引用提供一个可变的包装,在java中支持引用传递。
Holder() - 类 的构造器cn.hutool.core.lang.Holder
构造
Holder(T) - 类 的构造器cn.hutool.core.lang.Holder
构造
hour(boolean) - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期的小时数部分
hour(Date, boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期的小时数部分
HTML40_EXTENDED_ESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Escape
 
HTML40_EXTENDED_UNESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Unescape
 
Html4Escape - cn.hutool.core.text.escape中的类
HTML4的ESCAPE
Html4Escape() - 类 的构造器cn.hutool.core.text.escape.Html4Escape
 
Html4Unescape - cn.hutool.core.text.escape中的类
HTML4的UNESCAPE
Html4Unescape() - 类 的构造器cn.hutool.core.text.escape.Html4Unescape
 
HTML_AMP - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTML_APOS - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTML_GT - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTML_LT - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTML_NBSP - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTML_QUOTE - 类 中的静态变量cn.hutool.core.util.StrUtil
 
HTTP_DATETIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
HTTP头中日期时间格式 FastDateFormat:EEE, dd MMM yyyy HH:mm:ss z
HTTP_DATETIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
HTTP头中日期时间格式:EEE, dd MMM yyyy HH:mm:ss z

I

IdcardUtil - cn.hutool.core.util中的类
身份证相关工具类
see https://www.oschina.net/code/snippet_1611_2881
IdcardUtil() - 类 的构造器cn.hutool.core.util.IdcardUtil
 
IdUtil - cn.hutool.core.util中的类
ID生成器工具类,此工具类中主要封装: 1.
IdUtil() - 类 的构造器cn.hutool.core.util.IdUtil
 
ignoreCase - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
是否忽略字段大小写
ignoreError - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
是否忽略字段注入错误
ignoreNullValue - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
是否忽略空值,当源对象的值为null时,true: 忽略而不注入此值,false: 注入null
ignoreProperties - 类 中的变量cn.hutool.core.bean.copier.CopyOptions
忽略的目标对象中属性列表,设置一个属性列表,不拷贝这些属性值
IgnoreWatcher - cn.hutool.core.io.watch.watchers中的类
跳过所有事件处理Watcher
用户继承此类后实现需要监听的方法
IgnoreWatcher() - 类 的构造器cn.hutool.core.io.watch.watchers.IgnoreWatcher
 
IMAGE_TYPE_BMP - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
IMAGE_TYPE_GIF - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
IMAGE_TYPE_JPEG - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
IMAGE_TYPE_JPG - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
IMAGE_TYPE_PNG - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
IMAGE_TYPE_PSD - 类 中的静态变量cn.hutool.core.util.ImageUtil
 
ImageUtil - cn.hutool.core.util中的类
图片处理工具类:
功能:缩放图像、切割图像、旋转、图像类型转换、彩色转黑白、文字水印、图片水印等
参考:http://blog.csdn.net/zhangzhikaixinya/article/details/8459400
ImageUtil() - 类 的构造器cn.hutool.core.util.ImageUtil
 
Img - cn.hutool.core.img中的类
图像编辑器
Img(BufferedImage) - 类 的构造器cn.hutool.core.img.Img
构造
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
值+1
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
值+1
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
值+1
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
值+1
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
值+1
increment() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
值+1
index() - 类 中的方法cn.hutool.core.io.FastByteBuffer
当前缓冲位于缓冲区的索引位
INDEX_NOT_FOUND - 类 中的静态变量cn.hutool.core.util.ArrayUtil
数组中元素未找到的下标,值为-1
INDEX_NOT_FOUND - 类 中的静态变量cn.hutool.core.util.StrUtil
 
IndexedComparator<T> - cn.hutool.core.comparator中的类
按照数组的顺序正序排列,数组的元素位置决定了对象的排序先后
如果参与排序的元素并不在数组中,则排序在前
IndexedComparator(T...) - 类 的构造器cn.hutool.core.comparator.IndexedComparator
构造
indexedFormat(CharSequence, Object...) - 类 中的静态方法cn.hutool.core.util.StrUtil
有序的格式化文本,使用{number}做为占位符
例:
通常使用:format("this is {0} for {1}", "a", "b") =》 this is a for b
indexOf(Object) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
indexOf(T[], Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(long[], long) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(short[], short) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(char[], char) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(byte[], byte) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(double[], double) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(float[], float) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(boolean[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,未找到返回INDEX_NOT_FOUND
indexOf(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找指定字符
indexOf(CharSequence, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找指定字符
indexOf(CharSequence, char, int, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找指定字符
indexOf(CharSequence, CharSequence, int, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内反向查找字符串
indexOfIgnoreCase(CharSequence[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在位置,忽略大小写,未找到返回INDEX_NOT_FOUND
indexOfIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找字符串,忽略大小写
StrUtil.indexOfIgnoreCase(null, *, *) = -1 StrUtil.indexOfIgnoreCase(*, null, *) = -1 StrUtil.indexOfIgnoreCase("", "", 0) = 0 StrUtil.indexOfIgnoreCase("aabaabaa", "A", 0) = 0 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 0) = 2 StrUtil.indexOfIgnoreCase("aabaabaa", "AB", 0) = 1 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 3) = 5 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 9) = -1 StrUtil.indexOfIgnoreCase("aabaabaa", "B", -1) = 2 StrUtil.indexOfIgnoreCase("aabaabaa", "", 2) = 2 StrUtil.indexOfIgnoreCase("abc", "", 9) = -1
indexOfIgnoreCase(CharSequence, CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找字符串 StrUtil.indexOfIgnoreCase(null, *, *) = -1 StrUtil.indexOfIgnoreCase(*, null, *) = -1 StrUtil.indexOfIgnoreCase("", "", 0) = 0 StrUtil.indexOfIgnoreCase("aabaabaa", "A", 0) = 0 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 0) = 2 StrUtil.indexOfIgnoreCase("aabaabaa", "AB", 0) = 1 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 3) = 5 StrUtil.indexOfIgnoreCase("aabaabaa", "B", 9) = -1 StrUtil.indexOfIgnoreCase("aabaabaa", "B", -1) = 2 StrUtil.indexOfIgnoreCase("aabaabaa", "", 2) = 2 StrUtil.indexOfIgnoreCase("abc", "", 9) = -1
init() - 类 中的方法cn.hutool.core.io.BOMInputStream
Read-ahead four bytes and check for BOM marks.
init() - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
初始化
初始化包括: 1、解析传入的路径,判断其为目录还是文件 2、创建WatchService 对象
init() - 类 中的方法cn.hutool.core.lang.loader.AtomicLoader
初始化被加载的对象
如果对象从未被加载过,调用此方法初始化加载对象,此方法只被调用一次
init() - 类 中的方法cn.hutool.core.lang.loader.LazyLoader
初始化被加载的对象
如果对象从未被加载过,调用此方法初始化加载对象,此方法只被调用一次
init() - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
初始化全局线程池
input() - 类 中的静态方法cn.hutool.core.lang.Console
读取用户输入的内容(在控制台敲回车前的内容)
InputStreamResource - cn.hutool.core.io.resource中的类
基于InputStream的资源获取器
注意:此对象中getUrl方法始终返回null
InputStreamResource(InputStream) - 类 的构造器cn.hutool.core.io.resource.InputStreamResource
构造
InputStreamResource(InputStream, String) - 类 的构造器cn.hutool.core.io.resource.InputStreamResource
构造
insert(int, Object) - 类 中的方法cn.hutool.core.text.StrBuilder
追加对象,对象会被转换为字符串
insert(int, char) - 类 中的方法cn.hutool.core.text.StrBuilder
插入指定字符
insert(int, char[]) - 类 中的方法cn.hutool.core.text.StrBuilder
指定位置插入数据
如果插入位置为当前位置,则定义为追加
如果插入位置大于当前位置,则中间部分补充空格
insert(int, char[], int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
指定位置插入数据
如果插入位置为当前位置,则定义为追加
如果插入位置大于当前位置,则中间部分补充空格
insert(int, CharSequence) - 类 中的方法cn.hutool.core.text.StrBuilder
指定位置插入字符串的某个部分
如果插入位置为当前位置,则定义为追加
如果插入位置大于当前位置,则中间部分补充空格
insert(int, CharSequence, int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
指定位置插入字符串的某个部分
如果插入位置为当前位置,则定义为追加
如果插入位置大于当前位置,则中间部分补充空格
insert(T[], int, T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将新元素插入到到已有数组中的某个位置
添加新元素会生成一个新的数组,不影响原数组
如果插入位置为为负数,从原数组从后向前计数,若大于原数组长度,则空白处用null填充
insert(Object, int, T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将新元素插入到到已有数组中的某个位置
添加新元素会生成一个新的数组,不影响原数组
如果插入位置为为负数,从原数组从后向前计数,若大于原数组长度,则空白处用null填充
INSTANCE - 类 中的静态变量cn.hutool.core.comparator.ComparableComparator
单例
INSTANCE - 类 中的静态变量cn.hutool.core.comparator.VersionComparator
单例
intersection(Collection<T>, Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
两个集合的交集
针对一个集合中存在多个相同元素的情况,计算两个集合中此元素的个数,保留最少的个数
例如:集合1:[a, b, c, c, c],集合2:[a, b, c, c]
结果:[a, b, c, c],此结果中只保留了两个c
intersection(Collection<T>, Collection<T>, Collection<T>...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
多个集合的交集
针对一个集合中存在多个相同元素的情况,计算两个集合中此元素的个数,保留最少的个数
例如:集合1:[a, b, c, c, c],集合2:[a, b, c, c]
结果:[a, b, c, c],此结果中只保留了两个c
interupt(Thread, boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
结束线程,调用此方法后,线程将抛出 InterruptedException异常
interval() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔时间(毫秒数)
如果使用纳秒计时,返回纳秒差,否则返回毫秒差
intervalDay() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔天数,取绝对值
intervalHour() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔小时数,取绝对值
intervalMinute() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔分钟数,取绝对值
intervalMs() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔时间(毫秒数)
intervalRestart() - 类 中的方法cn.hutool.core.date.TimeInterval
 
intervalSecond() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔秒数,取绝对值
intervalWeek() - 类 中的方法cn.hutool.core.date.TimeInterval
从开始到当前的间隔周数,取绝对值
intHash(int) - 类 中的静态方法cn.hutool.core.util.HashUtil
Thomas Wang的算法,整数hash
intToByte(int) - 类 中的静态方法cn.hutool.core.convert.Convert
int转byte
intToBytes(int) - 类 中的静态方法cn.hutool.core.convert.Convert
int转byte数组
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
intValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
INVALID_REGEX - 类 中的静态变量cn.hutool.core.util.XmlUtil
在XML中无效的字符 正则
inverse(Map<K, V>) - 类 中的静态方法cn.hutool.core.map.MapUtil
已过时。
请使用MapUtil.reverse(Map) 代替
invoke(String, Object...) - 类 中的方法cn.hutool.core.bean.DynaBean
执行原始Bean中的方法
invoke(String, Object[]) - 类 中的静态方法cn.hutool.core.util.ClassUtil
执行方法
可执行Private方法,也可执行static方法
执行非static方法时,必须满足对象有默认构造方法
非单例模式,如果是非静态方法,每次创建一个新对象
invoke(String, boolean, Object...) - 类 中的静态方法cn.hutool.core.util.ClassUtil
执行方法
可执行Private方法,也可执行static方法
执行非static方法时,必须满足对象有默认构造方法
invoke(String, String, Object[]) - 类 中的静态方法cn.hutool.core.util.ClassUtil
执行方法
可执行Private方法,也可执行static方法
执行非static方法时,必须满足对象有默认构造方法
非单例模式,如果是非静态方法,每次创建一个新对象
invoke(String, String, boolean, Object[]) - 类 中的静态方法cn.hutool.core.util.ClassUtil
执行方法
可执行Private方法,也可执行static方法
执行非static方法时,必须满足对象有默认构造方法
invoke(Object, Method, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
执行方法
invoke(Object, String, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
执行对象中指定方法
invokeStatic(Method, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
执行静态方法
invokeWithCheck(Object, Method, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
执行方法
执行前要检查给定参数: 1.
IORuntimeException - cn.hutool.core.io中的异常错误
IO运行时异常,常用于对IOException的包装
IORuntimeException(Throwable) - 异常错误 的构造器cn.hutool.core.io.IORuntimeException
 
IORuntimeException(String) - 异常错误 的构造器cn.hutool.core.io.IORuntimeException
 
IORuntimeException(String, Object...) - 异常错误 的构造器cn.hutool.core.io.IORuntimeException
 
IORuntimeException(String, Throwable) - 异常错误 的构造器cn.hutool.core.io.IORuntimeException
 
IORuntimeException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.io.IORuntimeException
 
IoUtil - cn.hutool.core.io中的类
IO工具类
IO工具类只是辅助流的读写,并不负责关闭流。
IoUtil() - 类 的构造器cn.hutool.core.io.IoUtil
 
IPV4 - 类 中的静态变量cn.hutool.core.lang.PatternPool
IP v4
IPV4 - 类 中的静态变量cn.hutool.core.lang.Validator
IP v4
ipv4ToLong(String) - 类 中的静态方法cn.hutool.core.util.NetUtil
根据ip地址计算出long型的数据
isAbsolutePath(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
给定路径已经是绝对路径
此方法并没有针对路径做标准化,建议先执行FileUtil.normalize(String)方法标准化路径后判断
isAbstract(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为抽象类
isAfter(Date) - 类 中的方法cn.hutool.core.date.DateTime
是否在给定日期之后
isAfterOrEquals(Date) - 类 中的方法cn.hutool.core.date.DateTime
是否在给定日期之后或与给定日期相等
isAllAssignableFrom(Class<?>[], Class<?>[]) - 类 中的静态方法cn.hutool.core.util.ClassUtil
比较判断types1和types2两组类,如果types1中所有的类都与types2对应位置的类相同,或者是其父类或接口,则返回true
isAllBlank(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定所有字符串是否为空白
isAllCharMatch(CharSequence, Matcher<Character>) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串的每一个字符是否都与定义的匹配器匹配
isAllEmpty(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否全部为空字符串
isAllNull(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
是否全部元素为null
isAllNull(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
是否全部元素为null
isAM() - 类 中的方法cn.hutool.core.date.DateTime
是否为上午
isAM(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
是否为上午
isAnnotationPresent(Class<? extends Annotation>) - 类 中的方法cn.hutool.core.annotation.CombinationAnnotationElement
 
isArray(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
对象是否为数组对象
isAscii(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为ASCII字符,ASCII字符位于0~127之间 CharUtil.isAscii('a') = true CharUtil.isAscii('A') = true CharUtil.isAscii('3') = true CharUtil.isAscii('-') = true CharUtil.isAscii('\n') = true CharUtil.isAscii('©') = false
isAsciiControl(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为ASCII控制符(不可见字符),控制符位于0~31和127 CharUtil.isAsciiControl('a') = false CharUtil.isAsciiControl('A') = false CharUtil.isAsciiControl('3') = false CharUtil.isAsciiControl('-') = false CharUtil.isAsciiControl('\n') = true CharUtil.isAsciiControl('©') = false
isAsciiPrintable(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为可见ASCII字符,可见字符位于32~126之间 CharUtil.isAsciiPrintable('a') = true CharUtil.isAsciiPrintable('A') = true CharUtil.isAsciiPrintable('3') = true CharUtil.isAsciiPrintable('-') = true CharUtil.isAsciiPrintable('\n') = false CharUtil.isAsciiPrintable('©') = false
isAssignable(Class<?>, Class<?>) - 类 中的静态方法cn.hutool.core.lang.Assert
断言 superType.isAssignableFrom(subType) 是否为 true.
isAssignable(Class<?>, Class<?>, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言 superType.isAssignableFrom(subType) 是否为 true.
isAssignable(Class<?>, Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
检查目标类是否可以从原类转化
转化包括:
1、原类是对象,目标类型是原类型实现的接口
2、目标类型是原类型的父类
3、两者是原始类型或者包装类型(相互转换)
isBasicType(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为基本类型(包括包装类和原始类)
isBasicType(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
是否为基本类型,包括包装类型和非包装类型
isBean(Class<?>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
判断是否为Bean对象
判定方法是是否存在只有一个参数的setXXX方法
isBefore(Date) - 类 中的方法cn.hutool.core.date.DateTime
是否在给定日期之前
isBeforeOrEquals(Date) - 类 中的方法cn.hutool.core.date.DateTime
是否在给定日期之前或与给定日期相等
isBeside(long, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
判断两个数字是否相邻,例如1和2相邻,1和3不相邻
判断方法为做差取绝对值判断是否为1
isBeside(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
判断两个数字是否相邻,例如1和2相邻,1和3不相邻
判断方法为做差取绝对值判断是否为1
isBetween(Number, Number, Number) - 类 中的静态方法cn.hutool.core.lang.Validator
检查给定的数字是否在指定范围内
isBirthday(int, int, int) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为生日
isBirthday(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为生日
只支持以下几种格式: yyyyMMdd yyyy-MM-dd yyyy/MM/dd yyyyMMdd yyyy年MM月dd日
isBlank(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否为空白 空白的定义如下:
1、为null
2、为不可见字符(如空格)
3、""
isBlankChar(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否空白符
空白符包括空格、制表符、全角空格和不间断空格
isBlankChar(int) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否空白符
空白符包括空格、制表符、全角空格和不间断空格
isBlankChar(char) - 类 中的静态方法cn.hutool.core.util.NumberUtil
已过时。
isBlankChar(int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
已过时。
isBlankIfStr(Object) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果对象是字符串是否为空白,空白的定义如下:
1、为null
2、为不可见字符(如空格)
3、""
isBlankOrUndefined(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
检查字符串是否为null、空白串、“null”、“undefined”
isCalledBy(Class<?>) - 接口 中的方法cn.hutool.core.lang.caller.Caller
是否被指定类调用
isCalledBy(Class<?>) - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
是否被指定类调用
isCalledBy(Class<?>) - 类 中的方法cn.hutool.core.lang.caller.SecurityManagerCaller
 
isCalledBy(Class<?>) - 类 中的方法cn.hutool.core.lang.caller.StackTraceCaller
 
isCausedBy(Throwable, Class<? extends Exception>...) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
判断是否由指定异常类引起
isChar(Object) - 类 中的静态方法cn.hutool.core.util.CharUtil
给定对象对应的类是否为字符类,字符类包括: Character.class char.class
isCharClass(Class<?>) - 类 中的静态方法cn.hutool.core.util.CharUtil
给定类名是否为字符类,字符类包括: Character.class char.class
isChinese(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为汉字
isCitizenId(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为身份证号码(18位中国)
出生日期只支持到到2999年
isCopyAttributes() - 类 中的方法cn.hutool.core.io.file.FileCopier
是否拷贝所有属性
isCopyContentIfDir() - 类 中的方法cn.hutool.core.io.file.FileCopier
当拷贝来源是目录时是否只拷贝目录下的内容
isDataFlavorSupported(DataFlavor) - 类 中的方法cn.hutool.core.swing.ClipboardUtil.ImageSelection
是否支持指定元数据类型
isDirectory(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为目录,如果path为null,则返回false
isDirectory(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为目录,如果file为null,则返回false
isDirectory(Path, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为目录,如果file为null,则返回false
isDirEmpty(Path) - 类 中的静态方法cn.hutool.core.io.FileUtil
目录是否为空
isDirEmpty(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
目录是否为空
isDocumented(Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
是否会保存到 Javadoc 文档中
isDouble(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
判断字符串是否是浮点数
isElement(Node) - 类 中的静态方法cn.hutool.core.util.XmlUtil
给定节点是否为Element 类型节点
isEmail(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为可用邮箱地址
isEmoji(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
判断是否为emoji表情符
isEmpty(Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
判断Bean是否为空对象,空对象表示本身为null或者所有属性都为null
isEmpty(Collection<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
集合是否为空
isEmpty(Map<?, ?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Map是否为空
isEmpty(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterable是否为空
isEmpty(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterator是否为空
isEmpty(Enumeration<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Enumeration是否为空
isEmpty() - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
isEmpty(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterable是否为空
isEmpty(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterator是否为空
isEmpty() - 类 中的方法cn.hutool.core.io.FastByteBuffer
 
isEmpty(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
文件是否为空
目录:里面没有文件时为空 文件:文件大小为0时为空
isEmpty(Object) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为空
对于String类型判定是否为empty(null 或 "")
isEmpty() - 类 中的方法cn.hutool.core.map.MapProxy
 
isEmpty(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
Map是否为空
isEmpty() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
isEmpty() - 类 中的方法cn.hutool.core.text.StrBuilder
是否为空
isEmpty(T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
此方法会匹配单一对象,如果此对象为null则返回true
如果此对象为非数组,理解为此对象为数组的第一个元素,则返回false
如果此对象为数组对象,数组长度大于0情况下返回false,否则返回true
isEmpty(long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(char...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(boolean...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为空
isEmpty(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否为空,空的定义如下:
1、为null
2、为""
isEmptyIfStr(Object) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果对象是字符串是否为空串空的定义如下:
1、为null
2、为""
isEmptyOrUndefined(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
检查字符串是否为null、“”、“null”、“undefined”
isEnum(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
判断类是否为枚举类型
isEqualsMethod(Method) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
是否为equals方法
isExpired(Date, DateField, int, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
判定给定开始时间经过某段时间后是否过期
isFalse(boolean, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言是否为假,如果为 true 抛出 IllegalArgumentException 异常
 Assert.isFalse(i < 0, "The value must be greater than zero");
 
isFalse(boolean) - 类 中的静态方法cn.hutool.core.lang.Assert
断言是否为假,如果为 true 抛出 IllegalArgumentException 异常
 Assert.isFalse(i < 0);
 
isFalse(Boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
检查 Boolean 值是否为 false BooleanUtil.isFalse(Boolean.TRUE) = false BooleanUtil.isFalse(Boolean.FALSE) = true BooleanUtil.isFalse(null) = false
isFile(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为文件,如果path为null,则返回false
isFile(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为文件,如果file为null,则返回false
isFile(Path, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断是否为文件,如果file为null,则返回false
isFileSeparator(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为Windows或者Linux(Unix)文件分隔符
Windows平台下分隔符为\,Linux(Unix)为/
isFileURL(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
提供的URL是否为文件
文件协议包括"file", "vfsfile" 或 "vfs".
isGeneral(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为英文字母 、数字和下划线
isGeneral(String, int, int) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为给定长度范围的英文字母 、数字和下划线
isGeneral(String, int) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为给定最小长度的英文字母 、数字和下划线
isGeneralWithChinese(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为中文字、英文字母、数字和下划线
isGreater(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较大小,参数1 > 参数2 返回true
isGreaterOrEqual(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较大小,参数1 >= 参数2 返回true
isHashCodeMethod(Method) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
是否为hashCode方法
isHexChar(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为16进制规范的字符,判断是否为如下字符 1. 0~9 2. a~f 4.
isHexNumber(String) - 类 中的静态方法cn.hutool.core.util.HexUtil
判断给定字符串是否为16进制数
如果是,需要使用对应数字类型对象的decode方法解码
例如:Integer.decode方法解码int类型的16进制数字
isIn(Date, Date) - 类 中的方法cn.hutool.core.date.DateTime
当前日期是否在日期指定范围内
起始日期和结束日期可以互换
isIn(Date, Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
当前日期是否在日期指定范围内
起始日期和结束日期可以互换
isInherited(Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
是否可以被继承,默认为 false
isInnerIP(String) - 类 中的静态方法cn.hutool.core.util.NetUtil
判定是否为内网IP
私有IP:A类 10.0.0.0-10.255.255.255 B类 172.16.0.0-172.31.255.255 C类 192.168.0.0-192.168.255.255 当然,还有127这个网段是环回地址
isInRange(String, String) - 类 中的静态方法cn.hutool.core.util.NetUtil
是否在CIDR规则配置范围内
方法来自:【成都】小邓
isInstanceOf(Class<?>, T) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定对象是否是给定类的实例
 Assert.instanceOf(Foo.class, foo);
 
isInstanceOf(Class<?>, T, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定对象是否是给定类的实例
 Assert.instanceOf(Foo.class, foo);
 
isInteger(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
判断String是否是整数
支持8、10、16进制
isIpv4(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为IPV4地址
isJarFileURL(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
提供的URL是否为Jar文件URL 判断依据为file协议且扩展名为.jar
isJarURL(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
提供的URL是否为jar包URL 协议包括: "jar", "zip", "vfszip" 或 "wsjar".
isLeapYear() - 类 中的方法cn.hutool.core.date.DateTime
是否闰年
isLeapYear(int) - 类 中的静态方法cn.hutool.core.date.DateUtil
是否闰年
isLess(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较大小,参数1 < 参数2 返回true
isLessOrEqual(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
比较大小,参数1<=参数2 返回true
isLetter(String) - 类 中的静态方法cn.hutool.core.lang.Validator
判断字符串是否全部为字母组成,包括大写和小写字母和汉字
isLetter(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
判断是否为字母(包括大写字母和小写字母)
字母包括A~Z和a~z CharUtil.isLetter('a') = true CharUtil.isLetter('A') = true CharUtil.isLetter('3') = false CharUtil.isLetter('-') = false CharUtil.isLetter('\n') = false CharUtil.isLetter('©') = false
isLetterLower(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
检查字符是否为小写字母,小写字母指a~z CharUtil.isLetterLower('a') = true CharUtil.isLetterLower('A') = false CharUtil.isLetterLower('3') = false CharUtil.isLetterLower('-') = false CharUtil.isLetterLower('\n') = false CharUtil.isLetterLower('©') = false
isLetterOrNumber(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
是否为字符或数字,包括A~Z、a~z、0~9 CharUtil.isLetterOrNumber('a') = true CharUtil.isLetterOrNumber('A') = true CharUtil.isLetterOrNumber('3') = true CharUtil.isLetterOrNumber('-') = false CharUtil.isLetterOrNumber('\n') = false CharUtil.isLetterOrNumber('©') = false
isLetterUpper(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
判断是否为大写字母,大写字母包括A~Z CharUtil.isLetterUpper('a') = false CharUtil.isLetterUpper('A') = true CharUtil.isLetterUpper('3') = false CharUtil.isLetterUpper('-') = false CharUtil.isLetterUpper('\n') = false CharUtil.isLetterUpper('©') = false
isLocked() - 类 中的方法cn.hutool.core.comparator.ComparatorChain
是否已经被锁定。
isLong(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
判断字符串是否是Long类型
支持8、10、16进制
isLowerCase(String) - 类 中的静态方法cn.hutool.core.lang.Validator
判断字符串是否全部为小写字母
isMac(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为MAC地址
isMactchRegex(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
通过正则表达式验证
isMactchRegex(Pattern, String) - 类 中的静态方法cn.hutool.core.lang.Validator
通过正则表达式验证
isMatch(String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
给定内容是否匹配正则
isMatch(Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
给定内容是否匹配正则
isMatchName(Object, String, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
给定的Bean的类名是否匹配指定类名字符串
如果isSimple为false,则只匹配类名而忽略包名,例如:cn.hutool.TestEntity只匹配TestEntity
如果isSimple为true,则匹配包括包名的全类名,例如:cn.hutool.TestEntity匹配cn.hutool.TestEntity
isMobile(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为手机号码(中国)
isModifed(File, long) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断文件是否被改动
如果文件对象为 null 或者文件不存在,被视为改动
isMoney(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为货币
isMutable() - 类 中的方法cn.hutool.core.date.DateTime
对象是否可变
如果为不可变对象,以下方法将返回新方法: DateTime.offset(DateField, int) DateTime.setField(DateField, int) DateTime.setField(int, int) 如果为不可变对象,DateTime.setTime(long)将抛出异常
isNormalClass(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为标准的类
这个类必须: 1、非接口 2、非抽象类 3、非Enum枚举 4、非数组 5、非注解 6、非原始类型(int, long等)
isNotBlank(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否为非空白 空白的定义如下:
1、不为null
2、不为不可见字符(如空格)
3、不为""
isNotEmpty(Collection<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
集合是否为非空
isNotEmpty(Map<?, ?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Map是否为非空
isNotEmpty(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterable是否为空
isNotEmpty(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterator是否为空
isNotEmpty(Enumeration<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Enumeration是否为空
isNotEmpty(Iterable<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterable是否为空
isNotEmpty(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterator是否为空
isNotEmpty(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
目录是否为空
isNotEmpty(Object) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为空
对于String类型判定是否为empty(null 或 "")
isNotEmpty(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
Map是否为非空
isNotEmpty(T...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
此方法会匹配单一对象,如果此对象为null则返回false
如果此对象为非数组,理解为此对象为数组的第一个元素,则返回true
如果此对象为数组对象,数组长度大于0情况下返回true,否则返回false
isNotEmpty(long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(char...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(boolean...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组是否为非空
isNotEmpty(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否为非空白 空白的定义如下:
1、不为null
2、不为""
isNotNull(Object) - 类 中的静态方法cn.hutool.core.lang.Validator
给定值是否不为null
isNotNull(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
检查对象是否不为null
isNotPublic(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
指定类是否为非public
isNotPublic(Method) - 类 中的静态方法cn.hutool.core.util.ClassUtil
指定方法是否为非public
isNull(Object, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言对象是否为null ,如果不为null 抛出IllegalArgumentException 异常
 Assert.isNull(value, "The value must be null");
 
isNull(Object) - 类 中的静态方法cn.hutool.core.lang.Assert
断言对象是否为null ,如果不为null 抛出IllegalArgumentException 异常
 Assert.isNull(value);
 
isNull(Object) - 类 中的静态方法cn.hutool.core.lang.Validator
给定值是否为null
isNull(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
检查对象是否为null
判断标准为: 1. == null 2. equals(null)
isNullOrUndefined(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
检查字符串是否为null、“null”、“undefined”
isNumber(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证该字符串是否是数字
isNumber(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
检查是否为数字字符,数字字符指0~9 CharUtil.isNumber('a') = false CharUtil.isNumber('A') = false CharUtil.isNumber('3') = true CharUtil.isNumber('-') = false CharUtil.isNumber('\n') = false CharUtil.isNumber('©') = false
isNumber(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
是否为数字
ISO8859_1_ESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Escape
 
ISO8859_1_UNESCAPE - 类 中的静态变量cn.hutool.core.text.escape.Html4Unescape
 
ISO_8859_1 - 类 中的静态变量cn.hutool.core.util.CharsetUtil
ISO-8859-1
isOnlyCopyFile() - 类 中的方法cn.hutool.core.io.file.FileCopier
当拷贝来源是目录时是否只拷贝文件而忽略子目录
isOverride() - 类 中的方法cn.hutool.core.io.file.FileCopier
是否覆盖目标文件
isPlateNumber(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为中国车牌号
isPM() - 类 中的方法cn.hutool.core.date.DateTime
是否为下午
isPM(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
是否为下午
isPresent(String) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
指定类是否被提供,使用默认ClassLoader
通过调用ClassLoaderUtil.loadClass(String, ClassLoader, boolean)方法尝试加载指定类名的类,如果加载失败返回false
加载失败的原因可能是此类不存在或其关联引用类不存在
isPresent(String, ClassLoader) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
指定类是否被提供
通过调用ClassLoaderUtil.loadClass(String, ClassLoader, boolean)方法尝试加载指定类名的类,如果加载失败返回false
加载失败的原因可能是此类不存在或其关联引用类不存在
isPrimes(int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
是否是质数
质数表的质数又称素数。
isPrimitiveWrapper(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为包装类型
isPublic(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
指定类是否为Public
isPublic(Method) - 类 中的静态方法cn.hutool.core.util.ClassUtil
指定方法是否为Public
isPublic(Field) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是Public字段
isPublic(Method) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是Public方法
isPublic(Class<?>) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是Public类
isPublic(Constructor<?>) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是Public构造
isSameDay(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
比较两个日期是否为同一天
isSameDay(Calendar, Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
比较两个日期是否为同一天
isSameTime(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
是否为相同时间
isSimpleTypeOrArray(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否简单值类型或简单值类型的数组
包括:原始类型,、String、other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class及其数组
isSimpleValueType(Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为简单值类型
包括:原始类型,、String、other CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class.
isStatic(Method) - 类 中的静态方法cn.hutool.core.util.ClassUtil
是否为静态方法
isStatic(Field) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是static字段
isStatic(Method) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是static方法
isStatic(Class<?>) - 类 中的静态方法cn.hutool.core.util.ModifierUtil
是否是static类
isSubEquals(CharSequence, int, CharSequence, int, int, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取两个字符串的不同部分(长度一致),判断截取的子串是否相同
任意一个字符串为null返回false
isSurround(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串是否被字符包围
isSurround(CharSequence, char, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串是否被字符包围
isToStringMethod(Method) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
是否为toString方法
isTrue(boolean, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言是否为真,如果为 false 抛出 IllegalArgumentException 异常
 Assert.isTrue(i > 0, "The value must be greater than zero");
 
isTrue(boolean) - 类 中的静态方法cn.hutool.core.lang.Assert
断言是否为真,如果为 false 抛出 IllegalArgumentException 异常
 Assert.isTrue(i > 0, "The value must be greater than zero");
 
isTrue(Boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
检查 Boolean 值是否为 true BooleanUtil.isTrue(Boolean.TRUE) = true BooleanUtil.isTrue(Boolean.FALSE) = false BooleanUtil.isTrue(null) = false
isUpperCase(String) - 类 中的静态方法cn.hutool.core.lang.Validator
判断字符串是否全部为大写字母
isUrl(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为URL
isUsableLocalPort(int) - 类 中的静态方法cn.hutool.core.util.NetUtil
检测本地端口可用性
isUUID(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为UUID
包括带横线标准格式和不带横线的简单模式
isValid(String) - 类 中的静态方法cn.hutool.core.lang.ObjectId
给定的字符串是否为有效的ObjectId
isValidCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
是否有效身份证号
isValidCard10(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
验证10位身份编码是否合法
isvalidCard15(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
验证15位身份编码是否合法
isvalidCard18(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
判断18位身份证的合法性 根据〖中华人民共和国国家标准GB11643-1999〗中有关公民身份号码的规定,公民身份号码是特征组合码,由十七位数字本体码和一位数字校验码组成。
isValidHKCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
验证香港身份证号码(存在Bug,部份特殊身份证无法检查) 身份证前2位为英文字符,如果只出现一个英文字符则表示第一位是空格,对应数字58 前2位英文字符A-Z分别对应数字10-35 最后一位校验码为0-9的数字加上字符"A","A"代表10 将身份证号码全部转换为数字,分别对应乘9-1相加的总和,整除11则证件号码有效
isValidIfNumber(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
检查是否为有效的数字
检查Double和Float是否为无限大,或者Not a Number
非数字类型和Null将返回true
isValidLine(String) - 类 中的方法cn.hutool.core.collection.LineIter
重写此方法来判断是否每一行都被返回,默认全部为true
isValidPort(int) - 类 中的静态方法cn.hutool.core.util.NetUtil
是否为有效的端口
isValidTWCard(String) - 类 中的静态方法cn.hutool.core.util.IdcardUtil
验证台湾身份证号码
isWeekend() - 类 中的方法cn.hutool.core.date.DateTime
是否为周末,周末指周六或者周日
isWindows() - 类 中的静态方法cn.hutool.core.io.FileUtil
是否为Windows环境
isWord(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证该字符串是否是字母(包括大写和小写字母)
isWrap(CharSequence, String, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定字符串是否被包装
isWrap(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定字符串是否被同一字符包装(前后都有这些字符串)
isWrap(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定字符串是否被同一字符包装(前后都有这些字符串)
isWrap(CharSequence, char, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定字符串是否被包装
isZipCode(String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为邮政编码(中国)
iterator() - 类 中的方法cn.hutool.core.collection.ArrayIter
 
iterator() - 类 中的方法cn.hutool.core.collection.BoundedPriorityQueue
 
iterator() - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
iterator() - 类 中的方法cn.hutool.core.collection.CopiedIter
 
iterator() - 类 中的方法cn.hutool.core.collection.EnumerationIter
 
iterator() - 类 中的方法cn.hutool.core.collection.LineIter
 
iterator() - 类 中的方法cn.hutool.core.comparator.ComparatorChain
 
iterator() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
iterator() - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
iterator() - 类 中的方法cn.hutool.core.lang.Range
 
iterator() - 类 中的方法cn.hutool.core.lang.Tuple
 
iterator() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
iterator() - 类 中的方法cn.hutool.core.text.replacer.ReplacerChain
 
IteratorEnumeration<E> - cn.hutool.core.collection中的类
Iterator对象转Enumeration
IteratorEnumeration(Iterator<E>) - 类 的构造器cn.hutool.core.collection.IteratorEnumeration
构造
IterUtil - cn.hutool.core.collection中的类
IterableIterator 相关工具类
IterUtil() - 类 的构造器cn.hutool.core.collection.IterUtil
 

J

JAR_FILE_EXT - 类 中的静态变量cn.hutool.core.io.FileUtil
Jar文件扩展名
JAR_PATH_EXT - 类 中的静态变量cn.hutool.core.io.FileUtil
在Jar中的路径jar的扩展名形式
JAR_URL_PREFIX - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 前缀表示jar: "jar:"
JAR_URL_SEPARATOR - 类 中的静态变量cn.hutool.core.util.URLUtil
Jar路径以及内部文件路径的分界符: "!
JarClassLoader - cn.hutool.core.lang中的类
外部Jar的类加载器
JarClassLoader() - 类 的构造器cn.hutool.core.lang.JarClassLoader
构造
JarClassLoader(URL[]) - 类 的构造器cn.hutool.core.lang.JarClassLoader
构造
javaDefaultHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
JAVA自己带的算法
JDK_DATETIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
JDK中日期时间格式 FastDateFormat:EEE MMM dd HH:mm:ss zzz yyyy
JDK_DATETIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
JDK中日期时间格式:EEE MMM dd HH:mm:ss zzz yyyy
join(Iterable<T>, CharSequence) - 类 中的静态方法cn.hutool.core.collection.CollUtil
以 conjunction 为分隔符将集合转换为字符串
如果集合元素为数组、IterableIterator,则递归组合其为字符串
join(Iterator<T>, CharSequence) - 类 中的静态方法cn.hutool.core.collection.CollUtil
以 conjunction 为分隔符将集合转换为字符串
如果集合元素为数组、IterableIterator,则递归组合其为字符串
join(Iterable<T>, CharSequence) - 类 中的静态方法cn.hutool.core.collection.IterUtil
以 conjunction 为分隔符将集合转换为字符串
join(Iterable<T>, CharSequence, String, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
以 conjunction 为分隔符将集合转换为字符串
join(Iterator<T>, CharSequence) - 类 中的静态方法cn.hutool.core.collection.IterUtil
以 conjunction 为分隔符将集合转换为字符串
如果集合元素为数组、IterableIterator,则递归组合其为字符串
join(Iterator<T>, CharSequence, String, String) - 类 中的静态方法cn.hutool.core.collection.IterUtil
以 conjunction 为分隔符将集合转换为字符串
如果集合元素为数组、IterableIterator,则递归组合其为字符串
join(String, String) - 类 中的方法cn.hutool.core.map.MapBuilder
将map转成字符串
join(String, String, boolean) - 类 中的方法cn.hutool.core.map.MapBuilder
将map转成字符串
join(Map<K, V>, String, String) - 类 中的静态方法cn.hutool.core.map.MapUtil
将map转成字符串
join(Map<K, V>, String, String, boolean) - 类 中的静态方法cn.hutool.core.map.MapUtil
将map转成字符串
join(T[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(T[], CharSequence, String, String) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(long[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(int[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(short[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(char[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(byte[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(boolean[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(float[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(double[], CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(Object, CharSequence) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
以 conjunction 为分隔符将数组转换为字符串
join(CharSequence, Object...) - 类 中的静态方法cn.hutool.core.util.StrUtil
以 conjunction 为分隔符将多个对象转换为字符串
joinIgnoreNull(String, String) - 类 中的方法cn.hutool.core.map.MapBuilder
将map转成字符串
joinIgnoreNull(Map<K, V>, String, String) - 类 中的静态方法cn.hutool.core.map.MapUtil
将map转成字符串,忽略null的键和值
jsHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
JS算法

K

keySet() - 类 中的方法cn.hutool.core.map.MapProxy
 

L

lastIndexOf(Object) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
lastIndexOf(T[], Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(long[], long) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(short[], short) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(char[], char) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(byte[], byte) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(double[], double) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(float[], float) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(boolean[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
返回数组中指定元素所在最后的位置,未找到返回INDEX_NOT_FOUND
lastIndexOf(CharSequence, CharSequence, int, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找字符串
lastIndexOfIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找字符串,忽略大小写
lastIndexOfIgnoreCase(CharSequence, CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
指定范围内查找字符串,忽略大小写
lastIndexOfSeparator(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得最后一个文件路径分隔符的位置
lastModifiedTime(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
指定文件最后修改时间
lastModifiedTime(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
指定路径文件最后修改时间
lastMonth() - 类 中的静态方法cn.hutool.core.date.DateUtil
上个月
lastWeek() - 类 中的静态方法cn.hutool.core.date.DateUtil
上周
LazyLoader<T> - cn.hutool.core.lang.loader中的类
懒加载加载器
在load方法被调用前,对象未被加载,直到被调用后才开始加载
此加载器常用于对象比较庞大而不一定被使用的情况,用于减少启动时资源占用问题
此加载器使用双重检查(Double-Check)方式检查对象是否被加载,避免多线程下重复加载或加载丢失问题
LazyLoader() - 类 的构造器cn.hutool.core.lang.loader.LazyLoader
 
length() - 类 中的方法cn.hutool.core.text.StrBuilder
 
length(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取数组长度
如果参数为null,返回0 ArrayUtil.length(null) = 0 ArrayUtil.length([]) = 0 ArrayUtil.length([null]) = 1 ArrayUtil.length([true, false]) = 2 ArrayUtil.length([1, 2, 3]) = 3 ArrayUtil.length(["a", "b", "c"]) = 3
length(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
计算对象长度,如果是字符串调用其length函数,集合类调用其size函数,数组调用其length属性,其他可遍历对象遍历计算长度
支持的类型包括: CharSequence Map Iterator Enumeration Array
LF - 类 中的静态变量cn.hutool.core.util.CharUtil
 
LF - 类 中的静态变量cn.hutool.core.util.StrUtil
 
lineDelimiter - 类 中的变量cn.hutool.core.text.csv.CsvWriteConfig
换行符
lineEnd(ByteBuffer) - 类 中的静态方法cn.hutool.core.io.BufferUtil
一行的末尾位置,查找位置时位移ByteBuffer到结束位置
lineEnd(ByteBuffer, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
一行的末尾位置,查找位置时位移ByteBuffer到结束位置
支持的换行符如下: 1.
LineHandler - cn.hutool.core.io中的接口
行处理器
LineIter - cn.hutool.core.collection中的类
将Reader包装为一个按照行读取的Iterator
此对象遍历结束后,应关闭之,推荐使用方式: LineIterator it = null; try { it = new LineIterator(reader); while (it.hasNext()) { String line = it.nextLine(); // do something with line } } finally { it.close(); } 此类来自于Apache Commons io
LineIter(InputStream, Charset) - 类 的构造器cn.hutool.core.collection.LineIter
构造
LineIter(Reader) - 类 的构造器cn.hutool.core.collection.LineIter
构造
LineSeparator - cn.hutool.core.io.file中的枚举
换行符枚举
换行符包括: Mac系统换行符:"\r" Linux系统换行符:"\n" Windows系统换行符:"\r\n"
list(boolean) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个空List
list(boolean, T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个List
list(boolean, Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个List
list(boolean, Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个List
提供的参数为null时返回空ArrayList
list(boolean, Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
提供的参数为null时返回空ArrayList
list(boolean, Enumeration<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个List
提供的参数为null时返回空ArrayList
listFileNames(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得指定目录下所有文件
不会扫描子目录
listIterator() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
listIterator(int) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
ListTypeGetter - cn.hutool.core.getter中的接口
列表类型的Get接口
load(FileReader.ReaderHandler<T>, String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
已过时。
使用FileUtil#load(String, String, ReaderHandler) 代替
load(String, String, FileReader.ReaderHandler<T>) - 类 中的静态方法cn.hutool.core.io.FileUtil
按照给定的readerHandler读取文件中的数据
load(String, Charset, FileReader.ReaderHandler<T>) - 类 中的静态方法cn.hutool.core.io.FileUtil
按照给定的readerHandler读取文件中的数据
load(File, Charset, FileReader.ReaderHandler<T>) - 类 中的静态方法cn.hutool.core.io.FileUtil
按照给定的readerHandler读取文件中的数据
loadClass(String) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
加载类,通过传入类的字符串,返回其对应的类名,使用默认ClassLoader并初始化类(调用static模块内容和初始化static属性)
扩展Class.forName(String, boolean, ClassLoader)方法,支持以下几类类名的加载: 1、原始类型,例如:int 2、数组类型,例如:int[]、Long[]、String[] 3、内部类,例如:java.lang.Thread.State会被转为java.lang.Thread$State加载
loadClass(String, boolean) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
加载类,通过传入类的字符串,返回其对应的类名,使用默认ClassLoader
扩展Class.forName(String, boolean, ClassLoader)方法,支持以下几类类名的加载: 1、原始类型,例如:int 2、数组类型,例如:int[]、Long[]、String[] 3、内部类,例如:java.lang.Thread.State会被转为java.lang.Thread$State加载
loadClass(String, ClassLoader, boolean) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
加载类,通过传入类的字符串,返回其对应的类名
此方法支持缓存,第一次被加载的类之后会读取缓存中的类
加载失败的原因可能是此类不存在或其关联引用类不存在
扩展Class.forName(String, boolean, ClassLoader)方法,支持以下几类类名的加载: 1、原始类型,例如:int 2、数组类型,例如:int[]、Long[]、String[] 3、内部类,例如:java.lang.Thread.State会被转为java.lang.Thread$State加载
loadClass(String, boolean) - 类 中的静态方法cn.hutool.core.util.ClassUtil
加载类
loadClass(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
加载类并初始化
Loader<T> - cn.hutool.core.lang.loader中的接口
对象加载抽象接口
通过实现此接口自定义实现对象的加载方式,例如懒加载机制、多线程加载等
loadJar(File) - 类 中的静态方法cn.hutool.core.lang.JarClassLoader
加载Jar到ClassPath
loadJar(URLClassLoader, File) - 类 中的静态方法cn.hutool.core.lang.JarClassLoader
加载Jar文件到指定loader中
loadJarToSystemClassLoader(File) - 类 中的静态方法cn.hutool.core.lang.JarClassLoader
加载Jar文件到System ClassLoader中
loadPrimitiveClass(String) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
加载原始类型的类。
loadUtf8(String, FileReader.ReaderHandler<T>) - 类 中的静态方法cn.hutool.core.io.FileUtil
按照给定的readerHandler读取文件中的数据
loadUtf8(File, FileReader.ReaderHandler<T>) - 类 中的静态方法cn.hutool.core.io.FileUtil
按照给定的readerHandler读取文件中的数据
LOCAL_IP - 类 中的静态变量cn.hutool.core.util.NetUtil
 
locale - 类 中的变量cn.hutool.core.date.format.AbstractDateBasic
The locale.
localIpv4s() - 类 中的静态方法cn.hutool.core.util.NetUtil
获得本机的IP地址列表
返回的IP列表有序,按照系统设备顺序
LocalPortGenerater - cn.hutool.core.lang中的类
本地端口生成器
用于生成本地可用(未被占用)的端口号
注意:多线程甚至单线程访问时可能会返回同一端口(例如获取了端口但是没有使用)
LocalPortGenerater(int) - 类 的构造器cn.hutool.core.lang.LocalPortGenerater
构造
log() - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.println()方法,打印控制台日志
log(Object) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.println()方法,打印控制台日志
如果传入打印对象为Throwable对象,那么同时打印堆栈
log(String, Object...) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.println()方法,打印控制台日志
log(Throwable, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.println()方法,打印控制台日志
LONG - 类 中的静态变量cn.hutool.core.date.format.FastDateFormat
LONG locale dependent date or time style.
longToBytes(long) - 类 中的静态方法cn.hutool.core.convert.Convert
long转byte数组
from: https://stackoverflow.com/questions/4485128/how-do-i-convert-long-to-byte-and-back-in-java
longToIpv4(long) - 类 中的静态方法cn.hutool.core.util.NetUtil
根据long值获取ip v4地址
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
longValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
LookupReplacer - cn.hutool.core.text.replacer中的类
查找替换器,通过查找指定关键字,替换对应的值
LookupReplacer(String[]...) - 类 的构造器cn.hutool.core.text.replacer.LookupReplacer
构造
loopFiles(String, FileFilter) - 类 中的静态方法cn.hutool.core.io.FileUtil
递归遍历目录以及子目录中的所有文件
如果提供file为文件,直接返回过滤结果
loopFiles(File, FileFilter) - 类 中的静态方法cn.hutool.core.io.FileUtil
递归遍历目录以及子目录中的所有文件
如果提供file为文件,直接返回过滤结果
loopFiles(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
递归遍历目录以及子目录中的所有文件
loopFiles(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
递归遍历目录以及子目录中的所有文件
lowerFirst(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
小写首字母
例如:str = Name, return name
ls(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
列出目录文件
给定的绝对路径不能是压缩包中的路径

M

MAC_ADDRESS - 类 中的静态变量cn.hutool.core.lang.PatternPool
MAC地址正则
mainName(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
返回主文件名
mainName(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
返回主文件名
map() - 类 中的方法cn.hutool.core.map.MapBuilder
创建后的map
MapBuilder<K,V> - cn.hutool.core.map中的类
Map创建类
MapBuilder(Map<K, V>) - 类 的构造器cn.hutool.core.map.MapBuilder
链式Map创建类
MapConverter - cn.hutool.core.convert.impl中的类
Map 转换器
MapConverter(Type) - 类 的构造器cn.hutool.core.convert.impl.MapConverter
构造,Map的key和value泛型类型自动获取
MapConverter(Type, Type, Type) - 类 的构造器cn.hutool.core.convert.impl.MapConverter
构造
MapProxy - cn.hutool.core.map中的类
Map代理,提供各种getXXX方法,并提供默认值支持
MapProxy(Map<?, ?>) - 类 的构造器cn.hutool.core.map.MapProxy
构造
mapToBean(Map<?, ?>, Class<T>, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
Map转换为Bean对象
mapToBean(Map<?, ?>, Class<T>, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
Map转换为Bean对象
mapToBeanIgnoreCase(Map<?, ?>, Class<T>, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
Map转换为Bean对象
忽略大小写
mapToXml(Map<?, ?>, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将Map转换为XML
mapToXmlStr(Map<?, ?>, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将Map转换为XML格式的字符串
MapUtil - cn.hutool.core.map中的类
Map相关工具类
MapUtil() - 类 的构造器cn.hutool.core.map.MapUtil
 
MapValueProvider - cn.hutool.core.bean.copier.provider中的类
Map值提供者
MapValueProvider(Map<?, ?>, boolean) - 类 的构造器cn.hutool.core.bean.copier.provider.MapValueProvider
构造
match(T) - 接口 中的方法cn.hutool.core.lang.Matcher
给定对象是否匹配
Matcher<T> - cn.hutool.core.lang中的接口
匹配接口
MathUtil - cn.hutool.core.math中的类
数学相关方法工具类
此工具类与NumberUtil属于一类工具,NumberUtil偏向于简单数学计算的封装,MathUtil偏向复杂数学计算
MathUtil() - 类 的构造器cn.hutool.core.math.MathUtil
 
max(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(char...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最大值
max(T...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
max(long...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
max(int...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
max(short...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
max(double...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
max(float...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最大值
maxLength(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
限制字符串长度,如果超过指定长度,截取指定长度并在末尾加"..."
MEDIUM - 类 中的静态变量cn.hutool.core.date.format.FastDateFormat
MEDIUM locale dependent date or time style.
millsecond() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期的毫秒数部分
millsecond(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期的毫秒数部分
min(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(char...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
取最小值
min(T...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
min(long...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
min(int...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
min(short...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
min(double...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
min(float...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
取最小值
minute() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期的分钟数部分
例如:10:04:15.250 =》 4
minute(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期的分钟数部分
例如:10:04:15.250 =》 4
mixHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
混合hash算法,输出64位的值
mkdir(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件夹,如果存在直接返回此文件夹
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
mkdir(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件夹,会递归自动创建其不存在的父文件夹,如果存在直接返回此文件夹
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
mkParentDirs(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建所给文件或目录的父目录
mkParentDirs(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建父文件夹,如果存在直接返回此文件夹
MOBILE - 类 中的静态变量cn.hutool.core.lang.PatternPool
移动电话
MOBILE - 类 中的静态变量cn.hutool.core.lang.Validator
移动电话
ModifierUtil - cn.hutool.core.util中的类
修饰符工具类
ModifierUtil() - 类 的构造器cn.hutool.core.util.ModifierUtil
 
ModifierUtil.ModifierType - cn.hutool.core.util中的枚举
修饰符枚举
MONEY - 类 中的静态变量cn.hutool.core.lang.PatternPool
货币
MONEY - 类 中的静态变量cn.hutool.core.lang.Validator
货币
month() - 类 中的方法cn.hutool.core.date.DateTime
获得月份,从0开始计数
month(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得月份,从0开始计数
Month - cn.hutool.core.date中的枚举
月份枚举
与Calendar中的月份int值对应
monthEnum() - 类 中的方法cn.hutool.core.date.DateTime
获得月份
monthEnum(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得月份
monthStartFromOne() - 类 中的方法cn.hutool.core.date.DateTime
获得月份,从1开始计数
由于Calendar 中的月份按照0开始计数,导致某些需求容易误解,因此如果想用1表示一月,2表示二月则调用此方法
move(File, File, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
移动文件或者目录
move(CharSequence, int, int, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
循环位移指定位置的字符串为指定距离
当moveLength大于0向右位移,小于0向左位移,0不位移
当moveLength大于字符串长度时采取循环位移策略,既位移到头后从头(尾)位移,例如长度为10,位移13则表示位移3
mul(float, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
mul(float, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
mul(double, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
mul(double, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
mul(Double, Double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(Number, Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(Number...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(String, String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
mul(String...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
mul(BigDecimal...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的乘法运算
如果传入多个值为null或者空,则返回0
MultiFileResource - cn.hutool.core.io.resource中的类
多文件组合资源
此资源为一个利用游标自循环资源,只有调用MultiResource.next() 方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标
MultiFileResource(Collection<File>) - 类 的构造器cn.hutool.core.io.resource.MultiFileResource
构造
MultiFileResource(File...) - 类 的构造器cn.hutool.core.io.resource.MultiFileResource
构造
multiple(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
最小公倍数
MultiResource - cn.hutool.core.io.resource中的类
多资源组合资源
此资源为一个利用游标自循环资源,只有调用MultiResource.next() 方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标
MultiResource(Resource...) - 类 的构造器cn.hutool.core.io.resource.MultiResource
构造
MultiResource(Collection<Resource>) - 类 的构造器cn.hutool.core.io.resource.MultiResource
构造
Mutable<T> - cn.hutool.core.lang.mutable中的接口
提供可变值类型接口
MutableBool - cn.hutool.core.lang.mutable中的类
可变 boolean 类型
MutableBool() - 类 的构造器cn.hutool.core.lang.mutable.MutableBool
构造,默认值0
MutableBool(boolean) - 类 的构造器cn.hutool.core.lang.mutable.MutableBool
构造
MutableBool(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableBool
构造
MutableByte - cn.hutool.core.lang.mutable中的类
可变 byte 类型
MutableByte() - 类 的构造器cn.hutool.core.lang.mutable.MutableByte
构造,默认值0
MutableByte(byte) - 类 的构造器cn.hutool.core.lang.mutable.MutableByte
构造
MutableByte(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableByte
构造
MutableByte(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableByte
构造
MutableDouble - cn.hutool.core.lang.mutable中的类
可变 double 类型
MutableDouble() - 类 的构造器cn.hutool.core.lang.mutable.MutableDouble
构造,默认值0
MutableDouble(double) - 类 的构造器cn.hutool.core.lang.mutable.MutableDouble
构造
MutableDouble(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableDouble
构造
MutableDouble(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableDouble
构造
MutableFloat - cn.hutool.core.lang.mutable中的类
可变 float 类型
MutableFloat() - 类 的构造器cn.hutool.core.lang.mutable.MutableFloat
构造,默认值0
MutableFloat(float) - 类 的构造器cn.hutool.core.lang.mutable.MutableFloat
构造
MutableFloat(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableFloat
构造
MutableFloat(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableFloat
构造
MutableInt - cn.hutool.core.lang.mutable中的类
可变 int 类型
MutableInt() - 类 的构造器cn.hutool.core.lang.mutable.MutableInt
构造,默认值0
MutableInt(int) - 类 的构造器cn.hutool.core.lang.mutable.MutableInt
构造
MutableInt(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableInt
构造
MutableInt(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableInt
构造
MutableLong - cn.hutool.core.lang.mutable中的类
可变 long 类型
MutableLong() - 类 的构造器cn.hutool.core.lang.mutable.MutableLong
构造,默认值0
MutableLong(long) - 类 的构造器cn.hutool.core.lang.mutable.MutableLong
构造
MutableLong(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableLong
构造
MutableLong(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableLong
构造
MutableObj<T> - cn.hutool.core.lang.mutable中的类
可变Object
MutableObj() - 类 的构造器cn.hutool.core.lang.mutable.MutableObj
构造,空值
MutableObj(T) - 类 的构造器cn.hutool.core.lang.mutable.MutableObj
构造
MutableShort - cn.hutool.core.lang.mutable中的类
可变 short 类型
MutableShort() - 类 的构造器cn.hutool.core.lang.mutable.MutableShort
构造,默认值0
MutableShort(short) - 类 的构造器cn.hutool.core.lang.mutable.MutableShort
构造
MutableShort(Number) - 类 的构造器cn.hutool.core.lang.mutable.MutableShort
构造
MutableShort(String) - 类 的构造器cn.hutool.core.lang.mutable.MutableShort
构造

N

name - 类 中的变量cn.hutool.core.io.resource.UrlResource
 
NamedInheritableThreadLocal<T> - cn.hutool.core.thread.threadlocal中的类
带有Name标识的 InheritableThreadLocal,调用toString返回name
NamedInheritableThreadLocal(String) - 类 的构造器cn.hutool.core.thread.threadlocal.NamedInheritableThreadLocal
构造
NamedThreadFactory - cn.hutool.core.thread中的类
线程创建工厂类,此工厂可选配置: 1.
NamedThreadFactory(String, boolean) - 类 的构造器cn.hutool.core.thread.NamedThreadFactory
构造
NamedThreadFactory(String, ThreadGroup, boolean) - 类 的构造器cn.hutool.core.thread.NamedThreadFactory
构造
NamedThreadFactory(String, ThreadGroup, boolean, Thread.UncaughtExceptionHandler) - 类 的构造器cn.hutool.core.thread.NamedThreadFactory
构造
NamedThreadLocal<T> - cn.hutool.core.thread.threadlocal中的类
带有Name标识的 ThreadLocal,调用toString返回name
NamedThreadLocal(String) - 类 的构造器cn.hutool.core.thread.threadlocal.NamedThreadLocal
构造
nameUUIDFromBytes(byte[]) - 类 中的静态方法cn.hutool.core.lang.UUID
根据指定的字节数组获取类型 3(基于名称的)UUID 的静态工厂。
negate(Boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
取相反值
negate(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
取相反值
netCat(String, int, boolean, ByteBuffer) - 类 中的静态方法cn.hutool.core.util.NetUtil
简易的使用Socket发送数据
netCat(String, int, byte[]) - 类 中的静态方法cn.hutool.core.util.NetUtil
使用普通Socket发送数据
NetUtil - cn.hutool.core.util中的类
网络相关工具
NetUtil() - 类 的构造器cn.hutool.core.util.NetUtil
 
newArray(Class<?>, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
新建一个空数组
newArray(int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
新建一个空数组
newArrayList(T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
newArrayList(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
newArrayList(Iterable<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
提供的参数为null时返回空ArrayList
newArrayList(Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
提供的参数为null时返回空ArrayList
newArrayList(Enumeration<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个ArrayList
提供的参数为null时返回空ArrayList
newBigInteger(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
创建BigInteger,支持16进制、10进制和8进制,如果传入空白串返回null
from Apache Common Lang
newBlockingQueue(int, boolean) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建BlockingQueue
在队列为空时,获取元素的线程会等待队列变为非空。
newCompletionService() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
新建一个CompletionService,调用其submit方法可以异步执行多个任务,最后调用take方法按照完成的顺序获得其结果。
newCompletionService(ExecutorService) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
新建一个CompletionService,调用其submit方法可以异步执行多个任务,最后调用take方法按照完成的顺序获得其结果。
newCopyOnWriteArrayList(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个CopyOnWriteArrayList
newCountDownLatch(int) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
新建一个CountDownLatch,一个同步辅助类,在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待。
newerThan(File, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
给定文件或目录的最后修改时间是否晚于给定时间
newerThan(File, long) - 类 中的静态方法cn.hutool.core.io.FileUtil
给定文件或目录的最后修改时间是否晚于给定时间
newExecutor(int) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
新建一个线程池
newExecutor() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获得一个新的线程池
newExecutor(int, int) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获得一个新的线程池
如果maximumPoolSize =》 corePoolSize,在没有新任务加入的情况下,多出的线程将最多保留60s
newExecutorByBlockingCoefficient(float) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获得一个新的线程池
传入阻塞系数,线程池的大小计算公式为:CPU可用核心数 / (1 - 阻塞因子)
Blocking Coefficient(阻塞系数) = 阻塞时间/(阻塞时间+使用CPU的时间)
计算密集型任务的阻塞系数为0,而IO密集型任务的阻塞系数则接近于1。
newFile(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建File对象,相当于调用new File(),不做任何处理
newHashMap() - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashMap
newHashMap(int, boolean) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashMap
newHashMap(int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashMap
newHashMap() - 类 中的静态方法cn.hutool.core.map.MapUtil
新建一个HashMap
newHashMap(int, boolean) - 类 中的静态方法cn.hutool.core.map.MapUtil
新建一个HashMap
newHashMap(int) - 类 中的静态方法cn.hutool.core.map.MapUtil
新建一个HashMap
newHashMap(boolean) - 类 中的静态方法cn.hutool.core.map.MapUtil
新建一个HashMap
newHashSet(T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newHashSet(boolean, T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newHashSet(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newHashSet(boolean, Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newHashSet(boolean, Iterator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newHashSet(boolean, Enumeration<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个HashSet
newInstance(String) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
实例化对象
newInstance(Class<T>, Object...) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
实例化对象
newInstanceIfPossible(Class<T>) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
尝试遍历并调用此类的所有构造方法,直到构造成功并返回
newLinkedHashSet(T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建一个LinkedHashSet
newLinkedList(T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
新建LinkedList
newNamedThreadFactory(String, boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建线程工厂
newNamedThreadFactory(String, ThreadGroup, boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建线程工厂
newNamedThreadFactory(String, ThreadGroup, boolean, Thread.UncaughtExceptionHandler) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建线程工厂
newSingleExecutor() - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
获得一个新的线程池,只有单个线程
newThread(Runnable) - 类 中的方法cn.hutool.core.thread.NamedThreadFactory
 
newThread(Runnable, String) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建新线程,非守护线程,正常优先级,线程组与当前线程的线程组一致
newThread(Runnable, String, boolean) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
创建新线程
newTreeMap(Comparator<? super K>) - 类 中的静态方法cn.hutool.core.map.MapUtil
新建TreeMap,Key有序的Map
newTreeMap(Map<K, V>, Comparator<? super K>) - 类 中的静态方法cn.hutool.core.map.MapUtil
新建TreeMap,Key有序的Map
next() - 类 中的方法cn.hutool.core.collection.ArrayIter
 
next() - 类 中的方法cn.hutool.core.collection.CopiedIter
 
next() - 类 中的方法cn.hutool.core.collection.EnumerationIter
 
next() - 类 中的方法cn.hutool.core.collection.LineIter
返回下一行内容
next() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
next() - 类 中的静态方法cn.hutool.core.lang.ObjectId
获取一个objectId用下划线分割
next(boolean) - 类 中的静态方法cn.hutool.core.lang.ObjectId
获取一个objectId
next() - 类 中的方法cn.hutool.core.lang.Range
 
next() - 类 中的方法cn.hutool.core.lang.WeightRandom
下一个随机对象
nextBytes() - 类 中的静态方法cn.hutool.core.lang.ObjectId
获取一个objectId的bytes表现形式
nextElement() - 类 中的方法cn.hutool.core.collection.IteratorEnumeration
 
nextId() - 类 中的方法cn.hutool.core.lang.Snowflake
下一个ID
nextLine() - 类 中的方法cn.hutool.core.collection.LineIter
返回下一行
nextMonth() - 类 中的静态方法cn.hutool.core.date.DateUtil
下个月
nextRow() - 类 中的方法cn.hutool.core.text.csv.CsvParser
读取下一行数据
nextWeek() - 类 中的静态方法cn.hutool.core.date.DateUtil
下周
node() - 类 中的方法cn.hutool.core.lang.UUID
与此 UUID 相关的节点值。
noNullElements(T[], String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定数组是否不包含null元素,如果数组为空或 null将被认为不包含
 Assert.noNullElements(array, "The array must have non-null elements");
 
noNullElements(T[]) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定数组是否不包含null元素,如果数组为空或 null将被认为不包含
 Assert.noNullElements(array);
 
NoResourceException - cn.hutool.core.io.resource中的异常错误
资源文件或资源不存在异常
NoResourceException(Throwable) - 异常错误 的构造器cn.hutool.core.io.resource.NoResourceException
 
NoResourceException(String) - 异常错误 的构造器cn.hutool.core.io.resource.NoResourceException
 
NoResourceException(String, Object...) - 异常错误 的构造器cn.hutool.core.io.resource.NoResourceException
 
NoResourceException(String, Throwable) - 异常错误 的构造器cn.hutool.core.io.resource.NoResourceException
 
NoResourceException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.io.resource.NoResourceException
 
NORM_DATE_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式 FastDateFormat:yyyy-MM-dd
NORM_DATE_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式:yyyy-MM-dd
NORM_DATETIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到秒 FastDateFormat:yyyy-MM-dd HH:mm:ss
NORM_DATETIME_MINUTE_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到分 FastDateFormat:yyyy-MM-dd HH:mm
NORM_DATETIME_MINUTE_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到分:yyyy-MM-dd HH:mm
NORM_DATETIME_MS_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到毫秒 FastDateFormat:yyyy-MM-dd HH:mm:ss.SSS
NORM_DATETIME_MS_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到毫秒:yyyy-MM-dd HH:mm:ss.SSS
NORM_DATETIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期时间格式,精确到秒:yyyy-MM-dd HH:mm:ss
NORM_TIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准时间格式 FastDateFormat:HH:mm:ss
NORM_TIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准时间格式:HH:mm:ss
normalize(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
修复路径
如果原路径尾部有分隔符,则保留为标准分隔符(/),否则不保留 1.
normalize(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
标准化URL字符串,包括: 1.
notBlank(String, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
检查给定字符串是否为空白(null、空串或只包含空白符),为空抛出 IllegalArgumentException
 Assert.notBlank(name, "Name must not be blank");
 
notBlank(String) - 类 中的静态方法cn.hutool.core.lang.Assert
检查给定字符串是否为空白(null、空串或只包含空白符),为空抛出 IllegalArgumentException
 Assert.notBlank(name, "Name must not be blank");
 
notContain(String, String, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定字符串是否不被另一个字符串包含(既是否为子串)
 Assert.doesNotContain(name, "rod", "Name must not contain 'rod'");
 
notContain(String, String) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定字符串是否不被另一个字符串包含(既是否为子串)
 Assert.doesNotContain(name, "rod", "Name must not contain 'rod'");
 
notEmpty(String, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
检查给定字符串是否为空,为空抛出 IllegalArgumentException
 Assert.notEmpty(name, "Name must not be empty");
 
notEmpty(String) - 类 中的静态方法cn.hutool.core.lang.Assert
检查给定字符串是否为空,为空抛出 IllegalArgumentException
 Assert.notEmpty(name);
 
notEmpty(Object[], String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定数组是否包含元素,数组必须不为 null 且至少包含一个元素
 Assert.notEmpty(array, "The array must have elements");
 
notEmpty(Object[]) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定数组是否包含元素,数组必须不为 null 且至少包含一个元素
 Assert.notEmpty(array, "The array must have elements");
 
notEmpty(Collection<T>, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定集合非空
 Assert.notEmpty(collection, "Collection must have elements");
 
notEmpty(Collection<T>) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定集合非空
 Assert.notEmpty(collection);
 
notEmpty(Map<K, V>, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定Map非空
 Assert.notEmpty(map, "Map must have entries");
 
notEmpty(Map<K, V>) - 类 中的静态方法cn.hutool.core.lang.Assert
断言给定Map非空
 Assert.notEmpty(map, "Map must have entries");
 
notEqual(Object, Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
比较两个对象是否不相等。
NotInitedException - cn.hutool.core.exceptions中的异常错误
未初始化异常
NotInitedException(Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.NotInitedException
 
NotInitedException(String) - 异常错误 的构造器cn.hutool.core.exceptions.NotInitedException
 
NotInitedException(String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.NotInitedException
 
NotInitedException(String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.NotInitedException
 
NotInitedException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.NotInitedException
 
notNull(T, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
断言对象是否不为null ,如果为null 抛出NullPointerException 异常 Assert that an object is not null .
notNull(T) - 类 中的静态方法cn.hutool.core.lang.Assert
断言对象是否不为null ,如果为null 抛出NullPointerException 异常
 Assert.notNull(clazz);
 
now() - 类 中的静态方法cn.hutool.core.date.DateTime
现在的时间
now() - 类 中的静态方法cn.hutool.core.date.DateUtil
当前时间,格式 yyyy-MM-dd HH:mm:ss
now() - 类 中的静态方法cn.hutool.core.date.SystemClock
 
nowDate() - 类 中的静态方法cn.hutool.core.date.SystemClock
 
null2Zero(BigDecimal) - 类 中的静态方法cn.hutool.core.util.NumberUtil
空转0
NULL_OUTPUT_STREAM - 类 中的静态变量cn.hutool.core.io.NullOutputStream
单例
NullOutputStream - cn.hutool.core.io中的类
此OutputStream写出数据到/dev/null,既忽略所有数据
来自 Apache Commons io
NullOutputStream() - 类 的构造器cn.hutool.core.io.NullOutputStream
 
nullToDefault(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果字符串是null,则返回指定默认字符串,否则返回字符串本身。
nullToEmpty(String[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组元素中的null转换为""
nullToEmpty(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
当给定字符串为null时,转换为Empty
NumberChineseFormater - cn.hutool.core.convert中的类
数字转中文类
包括: 1.
NumberChineseFormater() - 类 的构造器cn.hutool.core.convert.NumberChineseFormater
 
NumberConverter - cn.hutool.core.convert.impl中的类
数字转换器
支持类型为:
java.lang.Byte java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double java.math.BigDecimal java.math.BigInteger
NumberConverter() - 类 的构造器cn.hutool.core.convert.impl.NumberConverter
 
NumberConverter(Class<? extends Number>) - 类 的构造器cn.hutool.core.convert.impl.NumberConverter
构造
NUMBERS - 类 中的静态变量cn.hutool.core.lang.PatternPool
数字
NUMBERS - 类 中的静态变量cn.hutool.core.lang.Validator
数字
numberToChinese(double, boolean) - 类 中的静态方法cn.hutool.core.convert.Convert
将阿拉伯数字转为中文表达方式
numberToWord(Number) - 类 中的静态方法cn.hutool.core.convert.Convert
将阿拉伯数字转为英文表达方式
NumberUtil - cn.hutool.core.util中的类
数字工具类
对于精确值计算应该使用 BigDecimal
JDK7中BigDecimal(double val)构造方法的结果有一定的不可预知性,例如: new BigDecimal(0.1) 表示的不是0.1而是0.1000000000000000055511151231257827021181583404541015625 这是因为0.1无法准确的表示为double。
NumberUtil() - 类 的构造器cn.hutool.core.util.NumberUtil
 
NumberWordFormater - cn.hutool.core.convert中的类
将浮点数类型的number转换成英语的表达方式
参考博客:http://blog.csdn.net/eric_sunah/article/details/8713226
NumberWordFormater() - 类 的构造器cn.hutool.core.convert.NumberWordFormater
 
NumericEntityUnescaper - cn.hutool.core.text.escape中的类
形如'的反转义器
NumericEntityUnescaper() - 类 的构造器cn.hutool.core.text.escape.NumericEntityUnescaper
 

O

ObjectId - cn.hutool.core.lang中的类
MongoDB ID生成策略实现
ObjectId由以下几部分组成: 1.
ObjectId() - 类 的构造器cn.hutool.core.lang.ObjectId
 
objectId() - 类 中的静态方法cn.hutool.core.util.IdUtil
创建MongoDB ID生成策略实现
ObjectId由以下几部分组成: 1.
ObjectUtil - cn.hutool.core.util中的类
一些通用的函数
ObjectUtil() - 类 的构造器cn.hutool.core.util.ObjectUtil
 
of(int) - 枚举 中的静态方法cn.hutool.core.date.DateField
Calendar相关值转换为DatePart枚举对象
of(Date) - 类 中的静态方法cn.hutool.core.date.DateTime
转换JDK date为 DateTime
of(Calendar) - 类 中的静态方法cn.hutool.core.date.DateTime
转换 Calendar 为 DateTime
of(String, String) - 类 中的静态方法cn.hutool.core.date.DateTime
构造
of(int) - 枚举 中的静态方法cn.hutool.core.date.Month
Calendar月份相关值转换为Month枚举对象
of(int) - 枚举 中的静态方法cn.hutool.core.date.Quarter
将 季度int转换为Season枚举对象
of(int) - 枚举 中的静态方法cn.hutool.core.date.Season
已过时。
使用@Quarter 替代
of(int) - 枚举 中的静态方法cn.hutool.core.date.Week
Calendar星期相关值转换为Week枚举对象
of(T) - 类 中的静态方法cn.hutool.core.lang.Holder
新建Holder类,持有指定值,当值为空时抛出空指针异常
of(K, V) - 类 中的静态方法cn.hutool.core.map.MapUtil
将单一键值对转换为Map
of(K, V, boolean) - 类 中的静态方法cn.hutool.core.map.MapUtil
将单一键值对转换为Map
of(Object[]) - 类 中的静态方法cn.hutool.core.map.MapUtil
将数组转换为Map(HashMap),支持数组元素类型为: Map.Entry 长度大于1的数组(取前两个值),如果不满足跳过此元素 Iterable 长度也必须大于1(取前两个值),如果不满足跳过此元素 Iterator 长度也必须大于1(取前两个值),如果不满足跳过此元素 Map<Object, Object> colorMap = MapUtil.of(new String[][] {{ {"RED", "#FF0000"}, {"GREEN", "#00FF00"}, {"BLUE", "#0000FF"}}); 参考:commons-lang
offer(E) - 类 中的方法cn.hutool.core.collection.BoundedPriorityQueue
加入元素,当队列满时,淘汰末尾元素
offset(DateField, int) - 类 中的方法cn.hutool.core.date.DateTime
调整日期和时间
如果此对象为可变对象,返回自身,否则返回新对象,设置是否可变对象见DateTime.setMutable(boolean)
offset(Date, DateField, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
获取指定日期偏移指定时间后的时间
offset() - 类 中的方法cn.hutool.core.io.FastByteBuffer
 
offsetDate(Date, DateField, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
已过时。
offsetDay(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移天
offsetHour(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移小时
offsetMillisecond(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移毫秒数
offsetMinute(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移分钟
offsetMonth(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移月
offsetNew(DateField, int) - 类 中的方法cn.hutool.core.date.DateTime
调整日期和时间
返回调整后的新DateTime,不影响原对象
offsetSecond(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移秒数
offsetWeek(Date, int) - 类 中的静态方法cn.hutool.core.date.DateUtil
偏移周
onCreate(WatchEvent<?>, Path) - 接口 中的方法cn.hutool.core.io.watch.Watcher
文件创建时执行的方法
onCreate(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.DelayWatcher
 
onCreate(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.IgnoreWatcher
 
onCreate(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
onDelete(WatchEvent<?>, Path) - 接口 中的方法cn.hutool.core.io.watch.Watcher
文件删除时执行的方法
onDelete(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.DelayWatcher
 
onDelete(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.IgnoreWatcher
 
onDelete(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
oneByOneHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
一次一个hash
onModify(WatchEvent<?>, Path) - 接口 中的方法cn.hutool.core.io.watch.Watcher
文件修改时执行的方法
文件修改可能触发多次
onModify(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.DelayWatcher
 
onModify(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.IgnoreWatcher
 
onModify(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
onOverflow(WatchEvent<?>, Path) - 接口 中的方法cn.hutool.core.io.watch.Watcher
事件丢失或出错时执行的方法
onOverflow(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.DelayWatcher
 
onOverflow(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.IgnoreWatcher
 
onOverflow(WatchEvent<?>, Path) - 类 中的方法cn.hutool.core.io.watch.watchers.WatcherChain
 
OptArrayTypeGetter - cn.hutool.core.getter中的接口
可选默认值的数组类型的Get接口 提供一个统一的接口定义返回不同类型的值(基本类型)
如果值不存在或获取错误,返回默认值
OptBasicTypeGetter<K> - cn.hutool.core.getter中的接口
可选默认值的基本类型的getter接口
提供一个统一的接口定义返回不同类型的值(基本类型)
如果值不存在或获取错误,返回默认值
OptNullBasicTypeFromObjectGetter<K> - cn.hutool.core.getter中的类
基本类型的getter接口抽象实现,所有类型的值获取都是通过将getObj获得的值转换而来
用户只需实现getObj方法即可,其他类型将会从Object结果中转换 在不提供默认值的情况下, 如果值不存在或获取错误,返回null
OptNullBasicTypeFromObjectGetter() - 类 的构造器cn.hutool.core.getter.OptNullBasicTypeFromObjectGetter
 
OptNullBasicTypeFromStringGetter<K> - cn.hutool.core.getter中的类
基本类型的getter接口抽象实现,所有类型的值获取都是通过将String转换而来
用户只需实现getStr方法即可,其他类型将会从String结果中转换 在不提供默认值的情况下, 如果值不存在或获取错误,返回null
OptNullBasicTypeFromStringGetter() - 类 的构造器cn.hutool.core.getter.OptNullBasicTypeFromStringGetter
 
OptNullBasicTypeGetter<K> - cn.hutool.core.getter中的类
基本类型的getter接口抽象实现
提供一个统一的接口定义返回不同类型的值(基本类型)
在不提供默认值的情况下, 如果值不存在或获取错误,返回null
用户只需实现com.xiaoleilu.hutool.getter.OptBasicTypeGetter接口即可
OptNullBasicTypeGetter() - 类 的构造器cn.hutool.core.getter.OptNullBasicTypeGetter
 
or(boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取或 BooleanUtil.or(true, true) = true BooleanUtil.or(false, false) = false BooleanUtil.or(true, false) = true BooleanUtil.or(true, true, false) = true BooleanUtil.or(true, true, true) = true BooleanUtil.or(false, false, false) = false
or(Boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取或 BooleanUtil.or(Boolean.TRUE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.or(Boolean.FALSE, Boolean.FALSE) = Boolean.FALSE BooleanUtil.or(Boolean.TRUE, Boolean.FALSE) = Boolean.TRUE BooleanUtil.or(Boolean.TRUE, Boolean.TRUE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.or(Boolean.FALSE, Boolean.FALSE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.or(Boolean.TRUE, Boolean.FALSE, Boolean.TRUE) = Boolean.TRUE BooleanUtil.or(Boolean.FALSE, Boolean.FALSE, Boolean.FALSE) = Boolean.FALSE
ordinalIndexOf(String, String, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
返回字符串 searchStr 在字符串 str 中第 ordinal 次出现的位置。
OVERFLOW - 类 中的静态变量cn.hutool.core.io.watch.WatchMonitor
事件丢失

P

padEnd(CharSequence, int, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
补充字符串以满足最小长度 StrUtil.padEnd("1", 3, '0');//"100"
padPre(CharSequence, int, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
补充字符串以满足最小长度 StrUtil.padPre("1", 3, '0');//"001"
PageUtil - cn.hutool.core.util中的类
分页工具类
PageUtil() - 类 的构造器cn.hutool.core.util.PageUtil
 
Pair<K,V> - cn.hutool.core.lang中的类
键值对对象,只能在构造时传入键值
Pair(K, V) - 类 的构造器cn.hutool.core.lang.Pair
构造
parse(String, DateFormat) - 类 中的静态方法cn.hutool.core.date.DateUtil
构建DateTime对象
parse(String, DateParser) - 类 中的静态方法cn.hutool.core.date.DateUtil
构建DateTime对象
parse(String, String) - 类 中的静态方法cn.hutool.core.date.DateUtil
将特定格式的日期转换为Date对象
parse(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
将日期字符串转换为DateTime对象,格式:
yyyy-MM-dd HH:mm:ss yyyy/MM/dd HH:mm:ss yyyy.MM.dd HH:mm:ss yyyy年MM月dd日 HH时mm分ss秒 yyyy-MM-dd yyyy/MM/dd yyyy.MM.dd HH:mm:ss HH时mm分ss秒 yyyy-MM-dd HH:mm yyyy-MM-dd HH:mm:ss.SSS yyyyMMddHHmmss yyyyMMddHHmmssSSS yyyyMMdd EEE, dd MMM yyyy HH:mm:ss z EEE MMM dd HH:mm:ss zzz yyyy
parse(String) - 接口 中的方法cn.hutool.core.date.format.DateParser
将日期字符串解析并转换为 Date 对象
等价于 DateFormat.parse(String)
parse(String, ParsePosition) - 接口 中的方法cn.hutool.core.date.format.DateParser
将日期字符串解析并转换为 Date 对象
等价于 DateFormat.parse(String, ParsePosition)
parse(String, ParsePosition, Calendar) - 接口 中的方法cn.hutool.core.date.format.DateParser
根据给定格式转换日期字符串 Updates the Calendar with parsed fields.
parse(String) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
parse(String, ParsePosition) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
parse(String, ParsePosition, Calendar) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
parse(T) - 类 中的静态方法cn.hutool.core.lang.Dict
将PO对象转为Dict
parseBean(T) - 类 中的方法cn.hutool.core.lang.Dict
将值对象转换为Dict
类名会被当作表名,小写第一个字母
parseBean(T, boolean, boolean) - 类 中的方法cn.hutool.core.lang.Dict
将值对象转换为Dict
类名会被当作表名,小写第一个字母
parseDate(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式yyyy-MM-dd
parseDateTime(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式yyyy-MM-dd HH:mm:ss
parseInt(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
解析转换数字字符串为int型数字,规则如下: 1、0x开头的视为16进制数字 2、0开头的视为8进制数字 3、其它情况按照10进制转换 4、空串返回0 5、.123形式返回0(按照小于0的小数对待) 6、123.56截取小数点之前的数字,忽略小数部分
parseLong(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
解析转换数字字符串为long型数字,规则如下: 1、0x开头的视为16进制数字 2、0开头的视为8进制数字 3、空串返回0 4、其它情况按照10进制转换
parseNumber(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
将指定字符串转换为Number 对象
parseObject(String) - 接口 中的方法cn.hutool.core.date.format.DateParser
将日期字符串解析并转换为 Date 对象
parseObject(String, ParsePosition) - 接口 中的方法cn.hutool.core.date.format.DateParser
根据 ParsePosition 给定将日期字符串解析并转换为 Date 对象
parseObject(String, ParsePosition) - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
parseTime(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
解析时间,格式HH:mm:ss,默认为1970-01-01
parseTimeToday(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
解析时间,格式HH:mm:ss,日期默认为今天
parseUTC(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
解析UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z
parseXml(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将String类型的XML转换为XML文档
partValue(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
把给定的总数平均分成N份,返回每份的个数
当除以分数有余数时每份+1
partValue(int, int, boolean) - 类 中的静态方法cn.hutool.core.util.NumberUtil
把给定的总数平均分成N份,返回每份的个数
如果isPlusOneWhenHasRem为true,则当除以分数有余数时每份+1,否则丢弃余数部分
PATH_FILE_PRE - 类 中的静态变量cn.hutool.core.io.FileUtil
当Path为文件形式时, path会加入一个表示文件的前缀
PathConverter - cn.hutool.core.convert.impl中的类
字符串转换器
PathConverter() - 类 的构造器cn.hutool.core.convert.impl.PathConverter
 
pathEndsWith(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
判断文件路径是否有指定后缀,忽略大小写
常用语判断扩展名
pathEquals(File, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
文件路径是否相同
取两个文件的绝对路径比较,在Windows下忽略大小写,在Linux下不忽略。
pattern - 类 中的变量cn.hutool.core.date.format.AbstractDateBasic
The pattern
patternParts - 类 中的变量cn.hutool.core.bean.BeanPath
 
PatternPool - cn.hutool.core.lang中的类
常用正则表达式集合
PatternPool() - 类 的构造器cn.hutool.core.lang.PatternPool
 
PinyinComparator - cn.hutool.core.comparator中的类
按照GBK拼音顺序对给定的汉字字符串排序
PinyinComparator() - 类 的构造器cn.hutool.core.comparator.PinyinComparator
构造
PinyinUtil - cn.hutool.core.util中的类
拼音工具类
注意:部分拼音并不准确,例如:怡
PinyinUtil() - 类 的构造器cn.hutool.core.util.PinyinUtil
 
pjwHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
PJW算法
PLATE_NUMBER - 类 中的静态变量cn.hutool.core.lang.PatternPool
中国车牌号码
PLATE_NUMBER - 类 中的静态变量cn.hutool.core.lang.Validator
中国车牌号码
popPart(Stack<T>, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
切取部分数据
切取后的栈将减少这些元素
popPart(Deque<T>, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
切取部分数据
切取后的栈将减少这些元素
pow(Number, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的幂运算
pow(BigDecimal, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的幂运算
prependIfMissing(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为开头,则在首部添加起始字符串
不忽略大小写
prependIfMissing(CharSequence, CharSequence, boolean, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为开头,则在首部添加起始字符串
prependIfMissingIgnoreCase(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
如果给定字符串不是以给定的一个或多个字符串为开头,则在首部添加起始字符串
忽略大小写
pressImage(Image, int, int, float) - 类 中的方法cn.hutool.core.img.Img
给图片添加图片水印
此方法并不关闭流
pressImage(Image, Rectangle, float) - 类 中的方法cn.hutool.core.img.Img
给图片添加图片水印
此方法并不关闭流
pressImage(File, File, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
pressImage(InputStream, OutputStream, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(ImageInputStream, ImageOutputStream, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(Image, File, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(Image, OutputStream, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(Image, ImageOutputStream, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(Image, Image, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressImage(Image, Image, Rectangle, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加图片水印
此方法并不关闭流
pressText(String, Color, Font, int, int, float) - 类 中的方法cn.hutool.core.img.Img
给图片添加文字水印
此方法并不关闭流
pressText(File, File, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
pressText(InputStream, OutputStream, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
pressText(ImageInputStream, ImageOutputStream, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
pressText(Image, File, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
pressText(Image, OutputStream, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
pressText(Image, ImageOutputStream, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
pressText(Image, String, Color, Font, int, int, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
给图片添加文字水印
此方法并不关闭流
PrimitiveConverter - cn.hutool.core.convert.impl中的类
原始类型转换器
支持类型为:
byte short int long float double char boolean
PrimitiveConverter(Class<?>) - 类 的构造器cn.hutool.core.convert.impl.PrimitiveConverter
构造
primitiveWrapperMap - 枚举 中的静态变量cn.hutool.core.convert.BasicType
原始类型为Key,包装类型为Value,例如: int.class =》 Integer.class.
print(Object) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.print()方法,打印控制台日志
print(String, Object...) - 类 中的静态方法cn.hutool.core.lang.Console
同 System.out.print()方法,打印控制台日志
processMultiple(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
可以用于计算双色球、大乐透注数的方法
比如大乐透35选5可以这样调用processMultiple(7,5); 就是数学中的:C75=7*6/2*1
progress(long) - 接口 中的方法cn.hutool.core.io.StreamProgress
进行中
PropertyComparator<T> - cn.hutool.core.comparator中的类
Bean属性排序器
支持读取Bean多层次下的属性
PropertyComparator(String) - 类 的构造器cn.hutool.core.comparator.PropertyComparator
构造
PropertyComparator(String, boolean) - 类 的构造器cn.hutool.core.comparator.PropertyComparator
构造
PURE_DATE_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式 FastDateFormat:yyyyMMdd
PURE_DATE_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式:yyyyMMdd
PURE_DATETIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式 FastDateFormat:yyyyMMddHHmmss
PURE_DATETIME_MS_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式 FastDateFormat:yyyyMMddHHmmssSSS
PURE_DATETIME_MS_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式:yyyyMMddHHmmssSSS
PURE_DATETIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式:yyyyMMddHHmmss
PURE_TIME_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式 FastDateFormat:HHmmss
PURE_TIME_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
标准日期格式:HHmmss
put(K, V) - 类 中的方法cn.hutool.core.lang.SimpleCache
放入缓存
put(Object) - 类 中的静态方法cn.hutool.core.lang.Singleton
将已有对象放入单例中,其Class做为键
put(K, V) - 类 中的方法cn.hutool.core.map.CustomKeyLinkedMap
 
put(K, V) - 类 中的方法cn.hutool.core.map.CustomKeyMap
 
put(K, V) - 类 中的方法cn.hutool.core.map.MapBuilder
链式Map创建
put(Object, Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
putAll(Map<? extends K, ? extends V>) - 类 中的方法cn.hutool.core.map.CustomKeyLinkedMap
 
putAll(Map<? extends K, ? extends V>) - 类 中的方法cn.hutool.core.map.CustomKeyMap
 
putAll(Map<K, V>) - 类 中的方法cn.hutool.core.map.MapBuilder
链式Map创建
putAll(Map<?, ?>) - 类 中的方法cn.hutool.core.map.MapProxy
 
putBeanDesc(Class<?>, BeanDesc) - 枚举 中的方法cn.hutool.core.bean.BeanDescCache
加入缓存
putCustom(Type, Class<? extends Converter<?>>) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
登记自定义转换器
putCustom(Type, Converter<?>) - 类 中的方法cn.hutool.core.convert.ConverterRegistry
登记自定义转换器
putFileType(String, String) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
增加文件类型映射
如果已经存在将覆盖之前的映射
putPropertyDescriptorMap(Class<?>, Map<String, PropertyDescriptor>, boolean) - 枚举 中的方法cn.hutool.core.bean.BeanInfoCache
加入缓存

Q

quarter() - 类 中的方法cn.hutool.core.date.DateTime
获得当前日期所属季度,从1开始计数
quarter(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期所属季度,从1开始计数
Quarter - cn.hutool.core.date中的枚举
季度枚举
quarterEnum() - 类 中的方法cn.hutool.core.date.DateTime
获得当前日期所属季度
quarterEnum(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期所属季度

R

rainbow(int, int, int) - 类 中的静态方法cn.hutool.core.util.PageUtil
分页彩虹算法
来自:https://github.com/iceroot/iceroot/blob/master/src/main/java/com/icexxx/util/IceUtil.java
通过传入的信息,生成一个分页列表显示
rainbow(int, int) - 类 中的静态方法cn.hutool.core.util.PageUtil
分页彩虹算法(默认展示10页)
来自:https://github.com/iceroot/iceroot/blob/master/src/main/java/com/icexxx/util/IceUtil.java
randomBigDecimal() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数[0, 1)
randomBigDecimal(BigDecimal) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数 [0,limit)
randomBigDecimal(BigDecimal, BigDecimal) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomBytes(int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机bytes
randomChar() - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机字母或数字,小写
randomChar(String) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机字符
randomColor() - 类 中的静态方法cn.hutool.core.util.ImageUtil
生成随机颜色
randomColor(Random) - 类 中的静态方法cn.hutool.core.util.ImageUtil
生成随机颜色
randomColor() - 类 中的静态方法cn.hutool.core.util.RandomUtil
生成随机颜色
randomDay(int, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
以当天为基准,随机产生一个日期
randomDouble(double, double) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomDouble(double, double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomDouble() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得随机数[0, 1)
randomDouble(int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomDouble(double) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数 [0,limit)
randomDouble(double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomEle(List<T>) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得列表中的元素
randomEle(List<T>, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得列表中的元素
randomEle(T[]) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得数组中的元素
randomEle(T[], int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得数组中的元素
randomEles(List<T>, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得列表中的一定量元素
randomEleSet(Collection<T>, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机获得列表中的一定量的不重复元素,返回Set
randomInt(int, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomInt() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得随机数[0, 1)
randomInt(int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数 [0,limit)
randomLong(long, long) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数
randomLong() - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得随机数
randomLong(long) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得指定范围内的随机数 [0,limit)
randomNumber() - 类 中的静态方法cn.hutool.core.util.RandomUtil
随机数字,数字为0~9单个数字
randomNumbers(int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得一个只包含数字的字符串
randomString(int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得一个随机的字符串(只包含数字和字符)
randomString(String, int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得一个随机的字符串
randomStringUpper(int) - 类 中的静态方法cn.hutool.core.util.RandomUtil
获得一个随机的字符串(只包含数字和大写字符)
RandomUtil - cn.hutool.core.util中的类
随机工具类
RandomUtil() - 类 的构造器cn.hutool.core.util.RandomUtil
 
randomUUID() - 类 中的静态方法cn.hutool.core.lang.UUID
获取类型 4(伪随机生成的)UUID 的静态工厂。
randomUUID() - 类 中的静态方法cn.hutool.core.util.IdUtil
获取随机UUID
randomUUID() - 类 中的静态方法cn.hutool.core.util.RandomUtil
已过时。
range(Date, Date, DateField) - 类 中的静态方法cn.hutool.core.date.DateUtil
创建日期范围生成器
Range<T> - cn.hutool.core.lang中的类
范围生成器。
Range(T, Range.Steper<T>) - 类 的构造器cn.hutool.core.lang.Range
构造
Range(T, T, Range.Steper<T>) - 类 的构造器cn.hutool.core.lang.Range
构造
Range(T, T, Range.Steper<T>, boolean, boolean) - 类 的构造器cn.hutool.core.lang.Range
构造
range(int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
生成一个从0开始的数字列表
range(int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
生成一个数字列表
自动判定正序反序
range(int, int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
生成一个数字列表
自动判定正序反序
range(int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
从0开始给定范围内的整数列表,步进为1
range(int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
给定范围内的整数列表,步进为1
range(int, int, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
给定范围内的整数列表
Range.Steper<T> - cn.hutool.core.lang中的接口
步进接口,此接口用于实现如何对一个对象按照指定步进增加步进
步进接口可以定义以下逻辑: 1、步进规则,既对象如何做步进 2、步进大小,通过实现此接口,在实现类中定义一个对象属性,可灵活定义步进大小 3、限制range个数,通过实现此接口,在实现类中定义一个对象属性,可灵活定义limit,限制range个数
rangeToList(Date, Date, DateField) - 类 中的静态方法cn.hutool.core.date.DateUtil
创建日期范围生成器
RE_CHINESE - 类 中的静态变量cn.hutool.core.util.ReUtil
正则表达式匹配中文汉字
RE_CHINESES - 类 中的静态变量cn.hutool.core.util.ReUtil
正则表达式匹配中文字符串
RE_KEYS - 类 中的静态变量cn.hutool.core.util.ReUtil
正则中需要被转义的关键字
read() - 类 中的方法cn.hutool.core.io.BOMInputStream
 
read(FileReader.ReaderHandler<T>) - 类 中的方法cn.hutool.core.io.file.FileReader
按照给定的readerHandler读取文件中的数据
read(InputStream, String) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容
read(InputStream, Charset) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容,读取完毕后并不关闭流
read(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容,读到输出流中
read(Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
从Reader中读取String,读取完毕后并不关闭Reader
read(FileChannel, String) - 类 中的静态方法cn.hutool.core.io.IoUtil
从FileChannel中读取内容,读取完毕后并不关闭Channel
read(FileChannel, Charset) - 类 中的静态方法cn.hutool.core.io.IoUtil
从FileChannel中读取内容
read(File) - 类 中的方法cn.hutool.core.text.csv.CsvReader
读取CSV文件,默认UTF-8编码
read(File, Charset) - 类 中的方法cn.hutool.core.text.csv.CsvReader
读取CSV文件
read(Path) - 类 中的方法cn.hutool.core.text.csv.CsvReader
读取CSV文件,默认UTF-8编码
read(Path, Charset) - 类 中的方法cn.hutool.core.text.csv.CsvReader
读取CSV文件
read(Reader) - 类 中的方法cn.hutool.core.text.csv.CsvReader
从Reader中读取CSV数据
read(String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
从文件中读取图片,请使用绝对路径,使用相对路径会相对于ClassPath
read(File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
从文件中读取图片
read(InputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
从流中读取图片
read(ImageInputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
从图片流中读取图片
read(URL) - 类 中的静态方法cn.hutool.core.util.ImageUtil
从URL中读取图片
readableFileSize() - 类 中的方法cn.hutool.core.io.file.FileWrapper
可读的文件大小
readableFileSize(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
可读的文件大小
readableFileSize(long) - 类 中的静态方法cn.hutool.core.io.FileUtil
可读的文件大小
参考 http://stackoverflow.com/questions/3263892/format-file-size-as-mb-gb-etc
readBytes(ByteBuffer) - 类 中的静态方法cn.hutool.core.io.BufferUtil
读取剩余部分bytes
readBytes(ByteBuffer, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
读取指定长度的bytes
如果长度不足,则读取剩余部分,此时buffer必须为读模式
readBytes(ByteBuffer, int, int) - 类 中的静态方法cn.hutool.core.io.BufferUtil
读取指定区间的数据
readBytes() - 类 中的方法cn.hutool.core.io.file.FileReader
读取文件所有数据
文件的长度不能超过 Integer.MAX_VALUE
readBytes(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件所有数据
文件的长度不能超过Integer.MAX_VALUE
readBytes(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件所有数据
文件的长度不能超过Integer.MAX_VALUE
readBytes(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取bytes
readBytes(InputStream, int) - 类 中的静态方法cn.hutool.core.io.IoUtil
读取指定长度的byte数组,不关闭流
readBytes() - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
readBytes() - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
readBytes() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
readBytes() - 接口 中的方法cn.hutool.core.io.resource.Resource
读取资源内容,读取完毕后会关闭流
关闭流并不影响下一次读取
readBytes() - 类 中的方法cn.hutool.core.io.resource.StringResource
 
readBytes() - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
readHex(InputStream, int, boolean) - 类 中的静态方法cn.hutool.core.io.IoUtil
读取16进制字符串
readHex28Lower(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取前28个byte并转换为16进制,字母部分使用小写
readHex28Upper(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取前28个byte并转换为16进制,字母部分使用大写
readLine(ByteBuffer, Charset) - 类 中的静态方法cn.hutool.core.io.BufferUtil
读取一行,如果buffer中最后一部分并非完整一行,则返回null
支持的换行符如下: 1.
readLines(T) - 类 中的方法cn.hutool.core.io.file.FileReader
从文件中读取每一行数据
readLines(LineHandler) - 类 中的方法cn.hutool.core.io.file.FileReader
按照行处理文件内容
readLines() - 类 中的方法cn.hutool.core.io.file.FileReader
从文件中读取每一行数据
readLines(String, String, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(String, Charset, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(File, String, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(File, Charset, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(URL, String, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(URL, Charset, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(URL, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(URL, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readLines(File, Charset, LineHandler) - 类 中的静态方法cn.hutool.core.io.FileUtil
按行处理文件内容
readLines(InputStream, String, T) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容
readLines(InputStream, Charset, T) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容
readLines(Reader, T) - 类 中的静态方法cn.hutool.core.io.IoUtil
从Reader中读取内容
readLines(InputStream, Charset, LineHandler) - 类 中的静态方法cn.hutool.core.io.IoUtil
按行读取数据,针对每行的数据做处理
readLines(Reader, LineHandler) - 类 中的静态方法cn.hutool.core.io.IoUtil
按行读取数据,针对每行的数据做处理
Reader自带编码定义,因此读取数据的编码跟随其编码。
readObj(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容,读到输出流中
readObjectFromXml(File) - 类 中的静态方法cn.hutool.core.util.XmlUtil
从XML中读取对象 Reads serialized object from the XML file.
readObjectFromXml(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
从XML中读取对象 Reads serialized object from the XML file.
readObjectFromXml(InputSource) - 类 中的静态方法cn.hutool.core.util.XmlUtil
从XML中读取对象 Reads serialized object from the XML file.
readStr(Charset) - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
readStr(Charset) - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
readStr(Charset) - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
readStr(Charset) - 接口 中的方法cn.hutool.core.io.resource.Resource
读取资源内容,读取完毕后会关闭流
关闭流并不影响下一次读取
readStr(String, Charset) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
读取Classpath下的资源为字符串
readStr(Charset) - 类 中的方法cn.hutool.core.io.resource.StringResource
 
readStr(Charset) - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
readString() - 类 中的方法cn.hutool.core.io.file.FileReader
读取文件内容
readString(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readString(File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readString(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readString(String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readString(URL, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readUtf8(FileChannel) - 类 中的静态方法cn.hutool.core.io.IoUtil
从FileChannel中读取UTF-8编码内容
readUtf8Lines(String, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行的UTF-8编码数据
readUtf8Lines(File, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据,数据编码为UTF-8
readUtf8Lines(URL, T) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据,编码为UTF-8
readUtf8Lines(URL) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readUtf8Lines(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据,编码为UTF-8
readUtf8Lines(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
从文件中读取每一行数据
readUtf8Lines(File, LineHandler) - 类 中的静态方法cn.hutool.core.io.FileUtil
按行处理文件内容,编码为UTF-8
readUtf8Lines(InputStream, T) - 类 中的静态方法cn.hutool.core.io.IoUtil
从流中读取内容,使用UTF-8编码
readUtf8Lines(InputStream, LineHandler) - 类 中的静态方法cn.hutool.core.io.IoUtil
按行读取UTF-8编码数据,针对每行的数据做处理
readUtf8Str() - 类 中的方法cn.hutool.core.io.resource.BytesResource
 
readUtf8Str() - 类 中的方法cn.hutool.core.io.resource.InputStreamResource
 
readUtf8Str() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
readUtf8Str() - 接口 中的方法cn.hutool.core.io.resource.Resource
读取资源内容,读取完毕后会关闭流
关闭流并不影响下一次读取
readUtf8Str(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
读取Classpath下的资源为字符串,使用UTF-8编码
readUtf8Str() - 类 中的方法cn.hutool.core.io.resource.StringResource
 
readUtf8Str() - 类 中的方法cn.hutool.core.io.resource.UrlResource
 
readUtf8String(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readUtf8String(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
读取文件内容
readXML(File) - 类 中的静态方法cn.hutool.core.util.XmlUtil
读取解析XML文件
readXML(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
读取解析XML文件
如果给定内容以“<”开头,表示这是一个XML内容,直接读取,否则按照路径处理
路径可以为相对路径,也可以是绝对路径,相对路径相对于ClassPath
readXML(InputStream) - 类 中的静态方法cn.hutool.core.util.XmlUtil
读取解析XML文件
编码在XML中定义
readXML(Reader) - 类 中的静态方法cn.hutool.core.util.XmlUtil
读取解析XML文件
readXML(InputSource) - 类 中的静态方法cn.hutool.core.util.XmlUtil
读取解析XML文件
编码在XML中定义
ReferenceConverter - cn.hutool.core.convert.impl中的类
Reference转换器
ReferenceConverter(Class<? extends Reference>) - 类 的构造器cn.hutool.core.convert.impl.ReferenceConverter
构造
ReferenceUtil - cn.hutool.core.util中的类
引用工具类,主要针对Reference 工具化封装
主要封装包括: 1.
ReferenceUtil() - 类 的构造器cn.hutool.core.util.ReferenceUtil
 
ReferenceUtil.ReferenceType - cn.hutool.core.util中的枚举
引用类型
ReflectUtil - cn.hutool.core.util中的类
反射工具类
ReflectUtil() - 类 的构造器cn.hutool.core.util.ReflectUtil
 
RejectPolicy - cn.hutool.core.thread中的枚举
线程拒绝策略枚举 如果设置了maxSize, 当总线程数达到上限, 会调用RejectedExecutionHandler进行处理,此枚举为JDK预定义的几种策略枚举表示
remove() - 类 中的方法cn.hutool.core.collection.ArrayIter
不允许操作数组元素
remove(Object) - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
remove() - 类 中的方法cn.hutool.core.collection.CopiedIter
此对象不支持移除元素
remove() - 类 中的方法cn.hutool.core.collection.EnumerationIter
 
remove() - 类 中的方法cn.hutool.core.collection.LineIter
不支持移除
remove() - 类 中的方法cn.hutool.core.io.resource.MultiResource
 
remove(T) - 类 中的方法cn.hutool.core.lang.ConsistentHash
移除节点的同时移除相应的虚拟节点
remove(String, int) - 类 中的静态方法cn.hutool.core.lang.PatternPool
移除缓存
remove() - 类 中的方法cn.hutool.core.lang.Range
 
remove(K) - 类 中的方法cn.hutool.core.lang.SimpleCache
移除缓存
remove(Class<?>) - 类 中的静态方法cn.hutool.core.lang.Singleton
移除指定Singleton对象
remove(Object) - 类 中的方法cn.hutool.core.map.MapProxy
 
remove(Object) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
remove(int) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
remove(T[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(long[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(short[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(char[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(byte[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(double[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(float[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(boolean[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
remove(Object, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中对应位置的元素
copy from commons-lang
removeAll(Collection<?>) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
removeAll(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
移除字符串中所有给定字符串
例:removeAll("aa-bb-cc-dd", "-") =》 aabbccdd
removeAny(Collection<T>, T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
去掉集合中的多个元素
removeBlank(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
去除null或者""或者空白字符串 元素
removeBlank(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
去除null或者""或者空白字符串 元素
removeEle(T[], T) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(long[], long) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(short[], short) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(char[], char) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(byte[], byte) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(double[], double) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(float[], float) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEle(boolean[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
移除数组中指定的元素
只会移除匹配到的第一个元素 copy from commons-lang
removeEmpty(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
去除null或者"" 元素
removeEmpty(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
去除null或者"" 元素
removeEqual(T, String...) - 类 中的方法cn.hutool.core.lang.Dict
与给定实体对比并去除相同的部分
此方法用于在更新操作时避免所有字段被更新,跳过不需要更新的字段 version from 2.0.0
removeFileType(String) - 类 中的静态方法cn.hutool.core.io.FileTypeUtil
移除文件类型映射
removeNull(Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
去除null 元素
removeNull(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
去除null 元素
removePreAndLowerFirst(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉首部指定长度的字符串并将剩余字符串首字母小写
例如:str=setName, preLength=3 =》 return name
removePreAndLowerFirst(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉首部指定长度的字符串并将剩余字符串首字母小写
例如:str=setName, prefix=set =》 return name
removePrefix(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉指定前缀
removePrefixIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
忽略大小写去掉指定前缀
removeSufAndLowerFirst(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉指定后缀,并小写首字母
removeSuffix(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉指定后缀
removeSuffixIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
忽略大小写去掉指定后缀
rename(File, String, boolean, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
修改文件或目录的文件名,不变更路径,只是简单修改文件名
重命名有两种模式:
1、isRetainExt为true时,保留原扩展名: FileUtil.rename(file, "aaa", true) xx/xx.png =》xx/aaa.png 2、isRetainExt为false时,不保留原扩展名,需要在newName中 FileUtil.rename(file, "aaa.jpg", false) xx/xx.png =》xx/aaa.jpg
repeat(char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
重复某个字符
repeat(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
重复某个字符串
repeatAndJoin(CharSequence, int, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
重复某个字符串并通过分界符连接 StrUtil.repeatAndJoin("?"
replace(T) - 接口 中的方法cn.hutool.core.lang.Replacer
替换指定类型为目标类型
replace(CharSequence, int, StrBuilder) - 类 中的方法cn.hutool.core.text.escape.NumericEntityUnescaper
 
replace(CharSequence, int, StrBuilder) - 类 中的方法cn.hutool.core.text.replacer.LookupReplacer
 
replace(CharSequence, int, StrBuilder) - 类 中的方法cn.hutool.core.text.replacer.ReplacerChain
 
replace(CharSequence, int, StrBuilder) - 类 中的方法cn.hutool.core.text.replacer.StrReplacer
抽象的字符串替换方法,通过传入原字符串和当前位置,执行替换逻辑,返回处理或替换的字符串长度部分。
replace(CharSequence) - 类 中的方法cn.hutool.core.text.replacer.StrReplacer
 
replace(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符串中的指定字符串
replace(CharSequence, CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符串中的指定字符串
replace(CharSequence, int, CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符串中的指定字符串
replace(CharSequence, int, int, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换指定字符串的指定区间内字符为固定字符
replaceAll(String, String, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
正则替换指定值
通过正则查找到字符串,然后把匹配到的字符串加入到replacementTemplate中,$1表示分组1的字符串
replaceAll(String, Pattern, String) - 类 中的静态方法cn.hutool.core.util.ReUtil
正则替换指定值
通过正则查找到字符串,然后把匹配到的字符串加入到replacementTemplate中,$1表示分组1的字符串
replaceChars(CharSequence, String, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符字符数组中所有的字符为replacedStr
提供的chars为所有需要被替换的字符,例如:"\r\n",则"\r"和"\n"都会被替换,哪怕他们单独存在
replaceChars(CharSequence, char[], CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符字符数组中所有的字符为replacedStr
replaceIgnoreCase(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
替换字符串中的指定字符串,忽略大小写
Replacer<T> - cn.hutool.core.lang中的接口
替换器
通过实现此接口完成指定类型对象的替换操作,替换后的目标类型依旧为指定类型
ReplacerChain - cn.hutool.core.text.replacer中的类
字符串替换链,用于组合多个字符串替换逻辑
ReplacerChain(StrReplacer...) - 类 的构造器cn.hutool.core.text.replacer.ReplacerChain
构造
reset() - 类 中的方法cn.hutool.core.collection.ArrayIter
重置数组位置
reset() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
 
reset() - 类 中的方法cn.hutool.core.io.FastByteBuffer
 
reset() - 类 中的方法cn.hutool.core.io.resource.MultiResource
重置游标
reset() - 类 中的方法cn.hutool.core.lang.Range
重置Range
reset() - 类 中的方法cn.hutool.core.text.StrBuilder
删除全部字符,位置归零
resize(T[], int, Class<?>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
生成一个新的重新设置大小的数组
调整大小后拷贝原数组到新数组下。
resize(T[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
生成一个新的重新设置大小的数组
新数组的类型为原数组的类型,调整大小后拷贝原数组到新数组下。
resolve() - 类 中的方法cn.hutool.core.bean.BeanResolver
已过时。
解析表达式对应的Bean属性
resolveBean(Object, String) - 类 中的静态方法cn.hutool.core.bean.BeanResolver
已过时。
解析Bean中的属性值
Resource - cn.hutool.core.io.resource中的接口
资源接口定义
资源可以是文件、URL、ClassPath中的文件亦或者jar包中的文件
ResourceUtil - cn.hutool.core.io.resource中的类
ClassPath资源工具类
ResourceUtil() - 类 的构造器cn.hutool.core.io.resource.ResourceUtil
 
restart() - 类 中的方法cn.hutool.core.date.TimeInterval
重新开始计算时间(重置开始时间)
retainAll(Collection<?>) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
ReUtil - cn.hutool.core.util中的类
正则相关工具类
常用正则请见 Validator
ReUtil() - 类 的构造器cn.hutool.core.util.ReUtil
 
reverse(List<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
反序给定List,会在原List基础上直接修改
reverse(Map<T, T>) - 类 中的静态方法cn.hutool.core.map.MapUtil
Map的键和值互换
reverse(T[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(T[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(long[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(long[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(int[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(int[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(short[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(short[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(char[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(char[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(byte[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(byte[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(double[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(double[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(float[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(float[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(boolean[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(boolean[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
反转数组,会变更原数组
reverse(String) - 类 中的静态方法cn.hutool.core.util.StrUtil
反转字符串
例如:abcd =》dcba
ReverseComparator<E> - cn.hutool.core.comparator中的类
反转比较器
ReverseComparator(Comparator<? super E>) - 类 的构造器cn.hutool.core.comparator.ReverseComparator
 
reverseNew(List<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
反序给定List,会创建一个新的List,原List数据不变
robot - 类 中的静态变量cn.hutool.core.swing.RobotUtil
 
RobotUtil - cn.hutool.core.swing中的类
Robot 封装工具类,提供截屏等工具
RobotUtil() - 类 的构造器cn.hutool.core.swing.RobotUtil
 
rotate(int) - 类 中的方法cn.hutool.core.img.Img
旋转图片为指定角度
来自:http://blog.51cto.com/cping1982/130066
rotate(File, int, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
旋转图片为指定角度
此方法不会关闭输出流
rotate(Image, int, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
旋转图片为指定角度
此方法不会关闭输出流
rotate(Image, int, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
旋转图片为指定角度
此方法不会关闭输出流
rotate(Image, int, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
旋转图片为指定角度
此方法不会关闭输出流,输出格式为JPG
rotate(Image, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
旋转图片为指定角度
来自:http://blog.51cto.com/cping1982/130066
rotatingHash(String, int) - 类 中的静态方法cn.hutool.core.util.HashUtil
旋转hash
round(double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
采用四舍五入策略 RoundingMode.HALF_UP
例如保留2位小数:123.456789 =》 123.46
round(String, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
采用四舍五入策略 RoundingMode.HALF_UP
例如保留2位小数:123.456789 =》 123.46
round(BigDecimal, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
采用四舍五入策略 RoundingMode.HALF_UP
例如保留2位小数:123.456789 =》 123.46
round(double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
round(String, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
round(BigDecimal, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
roundDown(Number, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定小数位数,舍去多余位数
roundDown(BigDecimal, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定小数位数,舍去多余位数
roundHalfEven(Number, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
四舍六入五成双计算法 四舍六入五成双是一种比较精确比较科学的计数保留法,是一种数字修约规则。
roundHalfEven(BigDecimal, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
四舍六入五成双计算法 四舍六入五成双是一种比较精确比较科学的计数保留法,是一种数字修约规则。
roundStr(double, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
采用四舍五入策略 RoundingMode.HALF_UP
例如保留2位小数:123.456789 =》 123.46
roundStr(String, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
采用四舍五入策略 RoundingMode.HALF_UP
例如保留2位小数:123.456789 =》 123.46
roundStr(double, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
roundStr(String, int, RoundingMode) - 类 中的静态方法cn.hutool.core.util.NumberUtil
保留固定位数小数
例如保留四位小数:123.456789 =》 123.4567
rsHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
RS算法hash
run() - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
 
run() - 类 中的方法cn.hutool.core.thread.SyncFinisher.Worker
 
RuntimeUtil - cn.hutool.core.util中的类
系统运行时工具类,用于执行系统命令的工具
RuntimeUtil() - 类 的构造器cn.hutool.core.util.RuntimeUtil
 

S

safeGet(String) - 类 中的方法cn.hutool.core.bean.DynaBean
获得字段对应值,获取异常返回null
safeSleep(Number) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
考虑Thread.sleep(long)方法有可能时间不足给定毫秒数,此方法保证sleep时间不小于给定的毫秒数
safeUnescape(String) - 类 中的静态方法cn.hutool.core.util.EscapeUtil
安全的unescape文本,当文本不是被escape的时候,返回原文。
scale(float) - 类 中的方法cn.hutool.core.img.Img
缩放图像(按比例缩放)
scale(int, int) - 类 中的方法cn.hutool.core.img.Img
缩放图像(按长宽缩放)
注意:目标长宽与原图不成比例会变形
scale(int, int, Color) - 类 中的方法cn.hutool.core.img.Img
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式
scale(File, File, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式
scale(InputStream, OutputStream, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(ImageInputStream, ImageOutputStream, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, File, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, OutputStream, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, ImageOutputStream, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, float) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按比例缩放)
scale(Image, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按长宽缩放)
注意:目标长宽与原图不成比例会变形
scale(File, File, int, int, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式
scale(InputStream, OutputStream, int, int, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(ImageInputStream, ImageOutputStream, int, int, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, ImageOutputStream, int, int, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式,此方法并不关闭流
scale(Image, int, int, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
缩放图像(按高度和宽度缩放)
缩放后默认为jpeg格式
scan() - 类 中的方法cn.hutool.core.lang.ClassScaner
扫面包路径下满足class过滤器条件的所有class文件
scanner() - 类 中的静态方法cn.hutool.core.lang.Console
创建从控制台读取内容的Scanner
scanPackage() - 类 中的静态方法cn.hutool.core.lang.ClassScaner
扫面该包路径下所有class文件
scanPackage(String) - 类 中的静态方法cn.hutool.core.lang.ClassScaner
扫面该包路径下所有class文件
scanPackage(String, Filter<Class<?>>) - 类 中的静态方法cn.hutool.core.lang.ClassScaner
扫面包路径下满足class过滤器条件的所有class文件,
如果包路径为 com.abs + A.class 但是输入 abs会产生classNotFoundException
因为className 应该为 com.abs.A 现在却成为abs.A,此工具类对该异常进行忽略处理
scanPackage() - 类 中的静态方法cn.hutool.core.util.ClassUtil
扫面该包路径下所有class文件
scanPackage(String) - 类 中的静态方法cn.hutool.core.util.ClassUtil
扫面该包路径下所有class文件
scanPackage(String, Filter<Class<?>>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
扫面包路径下满足class过滤器条件的所有class文件,
如果包路径为 com.abs + A.class 但是输入 abs会产生classNotFoundException
因为className 应该为 com.abs.A 现在却成为abs.A,此工具类对该异常进行忽略处理,有可能是一个不完善的地方,以后需要进行修改
scanPackageByAnnotation(String, Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.lang.ClassScaner
扫描指定包路径下所有包含指定注解的类
scanPackageByAnnotation(String, Class<? extends Annotation>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
扫描指定包路径下所有包含指定注解的类
scanPackageBySuper(String, Class<?>) - 类 中的静态方法cn.hutool.core.lang.ClassScaner
扫描指定包路径下所有指定类或接口的子类或实现类
scanPackageBySuper(String, Class<?>) - 类 中的静态方法cn.hutool.core.util.ClassUtil
扫描指定包路径下所有指定类或接口的子类或实现类
ScreenUtil - cn.hutool.core.swing中的类
屏幕相关(当前显示设置)工具类
ScreenUtil() - 类 的构造器cn.hutool.core.swing.ScreenUtil
 
sdbmHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
SDBM算法
season() - 类 中的方法cn.hutool.core.date.DateTime
已过时。
请使用Quarter代替
season(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
已过时。
Season - cn.hutool.core.date中的枚举
已过时。
请使用Quarter代替
seasonEnum() - 类 中的方法cn.hutool.core.date.DateTime
已过时。
请使用DateTime.quarterEnum()代替
second() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期的秒数部分
second(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期的秒数部分
secondToTime(int) - 类 中的静态方法cn.hutool.core.date.DateUtil
秒数转为时间格式(HH:mm:ss)
参考:https://github.com/iceroot
SecurityManagerCaller - cn.hutool.core.lang.caller中的类
SecurityManager 方式获取调用者
SecurityManagerCaller() - 类 的构造器cn.hutool.core.lang.caller.SecurityManagerCaller
 
select() - 类 中的方法cn.hutool.core.math.Arrangement
全排列选择(列表全部参与排列)
select(int) - 类 中的方法cn.hutool.core.math.Arrangement
排列选择(从列表中选择m个排列)
select(int) - 类 中的方法cn.hutool.core.math.Combination
组合选择(从列表中选择m个组合)
selectAll() - 类 中的方法cn.hutool.core.math.Arrangement
排列所有组合,即A(n, 1) + A(n, 2) + A(n, 3)...
selectAll() - 类 中的方法cn.hutool.core.math.Combination
全组合
serialize(T) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
序列化
对象必须实现Serializable接口
set(Object, Object) - 类 中的方法cn.hutool.core.bean.BeanPath
设置表达式指定位置(或filed对应)的值
若表达式指向一个List则设置其坐标对应位置的值,若指向Map则put对应key的值,Bean则设置字段的值
注意: 1.
set(String, Object) - 类 中的方法cn.hutool.core.bean.DynaBean
设置字段值
set(String, Object) - 类 中的方法cn.hutool.core.lang.Dict
设置列
set(T) - 接口 中的方法cn.hutool.core.lang.mutable.Mutable
设置值
set(boolean) - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
设置值
set(Boolean) - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
 
set(byte) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
set(double) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
set(float) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
set(int) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
set(long) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
set(T) - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
 
set(short) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
设置值
set(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
set(Transferable) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
设置内容到剪贴板
set(Transferable, ClipboardOwner) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
设置内容到剪贴板
set(int, String) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
setAccessible(Method) - 类 中的静态方法cn.hutool.core.util.ClassUtil
设置方法为可访问
setAlwaysDelimitText(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvWriteConfig
设置是否始终使用文本分隔符,文本包装符,默认false,按需添加
setAlwaysDelimitText(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvWriter
设置是否始终使用文本分隔符,文本包装符,默认false,按需添加
setBetweenMs(long) - 类 中的方法cn.hutool.core.date.BetweenFormater
设置 时长毫秒数
setCharset(Charset) - 类 中的方法cn.hutool.core.io.file.FileWrapper
设置字符集编码
setComparator(int, Comparator<E>) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
替换指定位置的比较器,保持原排序方式
setComparator(int, Comparator<E>, boolean) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
替换指定位置的比较器,替换指定排序方式
setContainsHeader(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReadConfig
设置是否首行做为标题行,默认false
setContainsHeader(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReader
设置是否首行做为标题行,默认false
setCopyAttributes(boolean) - 类 中的方法cn.hutool.core.io.file.FileCopier
设置是否拷贝所有属性
setCopyContentIfDir(boolean) - 类 中的方法cn.hutool.core.io.file.FileCopier
当拷贝来源是目录时是否只拷贝目录下的内容
setCopyFilter(Filter<T>) - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
设置过滤器
setCorePoolSize(int) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置初始池大小,默认0
setDaemon(boolean) - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
设置是否守护线程
setDest(T) - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
设置目标
setDestImageType(String) - 类 中的方法cn.hutool.core.img.Img
设置目标图片文件格式,用于写出
setEditable(Class<?>) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置限制的类或接口,必须为目标对象的实现接口或父类,用于限制拷贝的属性
setErrorOnDifferentFieldCount(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReadConfig
设置每行字段个数不同时是否抛出异常,默认false
setErrorOnDifferentFieldCount(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReader
设置每行字段个数不同时是否抛出异常,默认false
setField(DateField, int) - 类 中的方法cn.hutool.core.date.DateTime
设置日期的某个部分
如果此对象为可变对象,返回自身,否则返回新对象,设置是否可变对象见DateTime.setMutable(boolean)
setField(int, int) - 类 中的方法cn.hutool.core.date.DateTime
设置日期的某个部分
如果此对象为可变对象,返回自身,否则返回新对象,设置是否可变对象见DateTime.setMutable(boolean)
setFieldMapping(Map<String, String>) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置拷贝属性的字段映射,用于不同的属性之前拷贝做对应表用
setFieldSeparator(char) - 类 中的方法cn.hutool.core.text.csv.CsvConfig
设置字段分隔符,默认逗号','
setFieldSeparator(char) - 类 中的方法cn.hutool.core.text.csv.CsvReader
设置字段分隔符,默认逗号','
setFieldValue(Object, String, Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
设置字段值,,通过反射设置字段值,并不调用setXXX方法
对象同样支持Map类型,fieldNameOrIndex即为key
setFieldValue(Object, String, Object) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
设置字段值
setFieldValue(Object, Field, Object) - 类 中的静态方法cn.hutool.core.util.ReflectUtil
设置字段值
setFile(File) - 类 中的方法cn.hutool.core.io.file.FileWrapper
设置文件
setFirstDayOfWeek(Week) - 类 中的方法cn.hutool.core.date.DateTime
设置一周的第一天
JDK的Calendar中默认一周的第一天是周日,Hutool中将此默认值设置为周一
设置一周的第一天主要影响DateTime.weekOfMonth()DateTime.weekOfYear() 两个方法
setFormat(String) - 类 中的方法cn.hutool.core.convert.impl.CalendarConverter
设置日期格式
setFormat(String) - 类 中的方法cn.hutool.core.convert.impl.DateConverter
设置日期格式
setForwardSort(int) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
更改指定位置的排序方式为正序
setHandler(RejectedExecutionHandler) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置当线程阻塞(block)时的异常处理器,所谓线程阻塞既线程池和等待队列已满,无法处理线程时采取的策略 此处可以使用JDK预定义的几种策略,见RejectPolicy枚举
setIgnoreCase(boolean) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置是否忽略字段的注入错误
setIgnoreError(boolean) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置是否忽略字段的注入错误
setIgnoreNull(String, Object) - 类 中的方法cn.hutool.core.lang.Dict
设置列,当键或值为null时忽略
setIgnoreNullValue(boolean) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置是否忽略空值,当源对象的值为null时,true: 忽略而不注入此值,false: 注入null
setIgnoreProperties(String...) - 类 中的方法cn.hutool.core.bean.copier.CopyOptions
设置忽略的目标对象中属性列表,设置一个属性列表,不拷贝这些属性值
setImage(Image) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
设置图片到剪贴板
setInitialize(boolean) - 类 中的方法cn.hutool.core.lang.ClassScaner
设置是否在扫描到类时初始化类
setKeepAliveTime(long, TimeUnit) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置线程存活时间,既当池中线程多于初始大小时,多出的线程保留的时长
setKeepAliveTime(long) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置线程存活时间,既当池中线程多于初始大小时,多出的线程保留的时长,单位纳秒
setLevel(BetweenFormater.Level) - 类 中的方法cn.hutool.core.date.BetweenFormater
设置格式化级别
setLineDelimiter(char[]) - 类 中的方法cn.hutool.core.text.csv.CsvWriteConfig
设置换行符
setLineDelimiter(char[]) - 类 中的方法cn.hutool.core.text.csv.CsvWriter
设置换行符
setMaxDepth(int) - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
当监听目录时,监听目录的最大深度
当设置值为1(或小于1)时,表示不递归监听子目录
例如设置: maxDepth <= 1 表示只监听当前目录 maxDepth = 2 表示监听当前目录以及下层目录 maxDepth = 3 表示监听当前目录以及下层
setMaxPoolSize(int) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置最大池大小(允许同时执行的最大线程数)
setMutable(boolean) - 类 中的方法cn.hutool.core.date.DateTime
设置对象是否可变 如果为不可变对象,以下方法将返回新方法: DateTime.offset(DateField, int) DateTime.setField(DateField, int) DateTime.setField(int, int) 如果为不可变对象,DateTime.setTime(long)将抛出异常
setNamePrefix(String) - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
设置线程名前缀,例如设置前缀为hutool-thread-,则线程名为hutool-thread-1之类。
setObj(T) - 类 中的方法cn.hutool.core.lang.WeightRandom.WeightObj
设置对象
setOnlyCopyFile(boolean) - 类 中的方法cn.hutool.core.io.file.FileCopier
设置当拷贝来源是目录时是否只拷贝文件而忽略子目录
setOrAppend(List<T>, int, T) - 类 中的静态方法cn.hutool.core.collection.CollUtil
设置或增加元素。
setOrAppend(T[], int, T) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将元素值设置为数组的某个位置,当给定的index大于数组长度,则追加
setOrAppend(Object, int, Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将元素值设置为数组的某个位置,当给定的index大于数组长度,则追加
setOverride(boolean) - 类 中的方法cn.hutool.core.io.file.FileCopier
设置是否覆盖目标文件
setPositionBaseCentre(boolean) - 类 中的方法cn.hutool.core.img.Img
计算x,y坐标的时候是否从中心做为原始坐标开始计算
setPriority(int) - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
设置线程优先级
setProperty(Object, String, Object) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
解析Bean中的属性值
setReverseSort(int) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
更改指定位置的排序方式为反序
setSkipEmptyRows(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReadConfig
设置是否跳过空白行,默认true
setSkipEmptyRows(boolean) - 类 中的方法cn.hutool.core.text.csv.CsvReader
设置是否跳过空白行,默认true
setSrc(T) - 类 中的方法cn.hutool.core.lang.copier.SrcToDestCopier
设置源
setStr(String) - 类 中的静态方法cn.hutool.core.swing.ClipboardUtil
设置字符串文本到剪贴板
setTextDelimiter(char) - 类 中的方法cn.hutool.core.text.csv.CsvConfig
设置 文本分隔符,文本包装符,默认双引号'"'
setTextDelimiter(char) - 类 中的方法cn.hutool.core.text.csv.CsvReader
设置 文本分隔符,文本包装符,默认双引号'"'
setThreadFactory(ThreadFactory) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置线程工厂,用于自定义线程创建
setThreadFactory(ThreadFactory) - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
设置用于创建基础线程的线程工厂
setTime(long) - 类 中的方法cn.hutool.core.date.DateTime
 
setTimeZone(TimeZone) - 类 中的方法cn.hutool.core.date.DateTime
设置时区
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - 类 中的方法cn.hutool.core.thread.ThreadFactoryBuilder
设置未捕获异常的处理方式
setValue(Object, Object) - 类 中的方法cn.hutool.core.bean.BeanDesc.PropDesc
设置Bean的字段值
首先调用字段对应的Setter方法,如果Setter方法不存在,则判断字段如果为public,则直接赋值字段值
setWatcher(Watcher) - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
设置监听
多个监听请使用WatcherChain
setWorkQueue(BlockingQueue<Runnable>) - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
设置队列,用于存在未执行的线程
可选队列有: 1.
SHORT - 类 中的静态变量cn.hutool.core.date.format.FastDateFormat
SHORT locale dependent date or time style.
shortToBytes(short) - 类 中的静态方法cn.hutool.core.convert.Convert
short转byte数组
shortValue() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
shutdown(boolean) - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
关闭公共线程池
similar(String, String) - 类 中的静态方法cn.hutool.core.text.TextSimilarity
计算相似度
similar(String, String, int) - 类 中的静态方法cn.hutool.core.text.TextSimilarity
计算相似度百分比
similar(String, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
计算两个字符串的相似度
similar(String, String, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
计算连个字符串的相似度百分比
SimpleCache<K,V> - cn.hutool.core.lang中的类
简单缓存,无超时实现,使用WeakHashMap实现缓存自动清理
SimpleCache() - 类 的构造器cn.hutool.core.lang.SimpleCache
 
simpleUUID() - 类 中的静态方法cn.hutool.core.util.IdUtil
简化的UUID,去掉了横线
simpleUUID() - 类 中的静态方法cn.hutool.core.util.RandomUtil
已过时。
SimpleWatcher - cn.hutool.core.io.watch中的类
空白WatchListener
用户继承此类后实现需要监听的方法
SimpleWatcher() - 类 的构造器cn.hutool.core.io.watch.SimpleWatcher
 
SINGLE_QUOTE - 类 中的静态变量cn.hutool.core.util.CharUtil
 
Singleton - cn.hutool.core.lang中的类
单例类
提供单例对象的统一管理,当调用get方法时,如果对象池中存在此对象,返回此对象,否则创建新对象返回
注意:单例针对的是类和对象,因此get方法第一次调用时创建的对象始终唯一,也就是说就算参数变更,返回的依旧是第一次创建的对象
size() - 类 中的方法cn.hutool.core.collection.ConcurrentHashSet
 
size() - 类 中的方法cn.hutool.core.comparator.ComparatorChain
比较器链中比较器个数
size() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
 
size() - 类 中的方法cn.hutool.core.io.FastByteBuffer
 
size(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
计算目录或文件的总大小
当给定对象为文件时,直接调用 File.length()
当给定对象为目录时,遍历目录下的所有文件和目录,递归计算其大小,求和返回
size() - 类 中的方法cn.hutool.core.map.MapProxy
 
size() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
skipEmptyRows - 类 中的变量cn.hutool.core.text.csv.CsvReadConfig
是否跳过空白行,默认true
SLASH - 类 中的静态变量cn.hutool.core.util.CharUtil
 
SLASH - 类 中的静态变量cn.hutool.core.util.StrUtil
 
sleep(Number, TimeUnit) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
挂起当前线程
sleep(Number) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
挂起当前线程
slice(File, File, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切片(指定切片的宽度和高度)
slice(Image, File, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切片(指定切片的宽度和高度)
sliceByRowsAndCols(File, File, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(指定切片的行数和列数)
sliceByRowsAndCols(Image, File, int, int) - 类 中的静态方法cn.hutool.core.util.ImageUtil
图像切割(指定切片的行数和列数)
Snowflake - cn.hutool.core.lang中的类
Twitter的Snowflake 算法
分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。
Snowflake(long, long) - 类 的构造器cn.hutool.core.lang.Snowflake
构造
Snowflake(long, long, boolean) - 类 的构造器cn.hutool.core.lang.Snowflake
构造
sort(Collection<T>, Comparator<? super T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
排序集合,排序不会修改原集合
sort(List<T>, Comparator<? super T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
针对List排序,排序会修改原List
sort(Map<K, V>, Comparator<? super K>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
排序Map
sort(Map<K, V>) - 类 中的静态方法cn.hutool.core.map.MapUtil
排序已有Map,Key有序的Map,使用默认Key排序方式(字母顺序)
sort(Map<K, V>, Comparator<? super K>) - 类 中的静态方法cn.hutool.core.map.MapUtil
排序已有Map,Key有序的Map
sortByEntry(Map<K, V>, Comparator<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
通过Entry排序,可以按照键排序,也可以按照值排序,亦或者两者综合排序
sortByPinyin(Collection<String>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据汉字的拼音顺序排序
sortByPinyin(List<String>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据汉字的拼音顺序排序
sortByProperty(Collection<T>, String) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据Bean的属性排序
sortByProperty(List<T>, String) - 类 中的静态方法cn.hutool.core.collection.CollUtil
根据Bean的属性排序
sortEntryToList(Collection<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将Set排序(根据Entry的值)
sortPageAll(int, int, Comparator<T>, Collection<T>...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将多个集合排序并显示不同的段落(分页)
采用先排序,后截断的方式取分页的部分
sortPageAll2(int, int, Comparator<T>, Collection<T>...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将多个集合排序并显示不同的段落(分页)
采用BoundedPriorityQueue实现分页取局部
sortToMap(Collection<Map.Entry<K, V>>, Comparator<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
通过Entry排序,可以按照键排序,也可以按照值排序,亦或者两者综合排序
SPACE - 类 中的静态变量cn.hutool.core.util.CharUtil
 
SPACE - 类 中的静态变量cn.hutool.core.util.StrUtil
 
spendMs(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
计时,常用于记录某段代码的执行时间,单位:毫秒
spendNt(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
计时,常用于记录某段代码的执行时间,单位:纳秒
split(Collection<T>, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
对集合按照指定长度分段,每一个段为单独的集合,返回这个集合的列表
split(String, char, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串
split(String, char, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,大小写敏感
split(String, char, int, boolean, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串
split(String, String, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,不忽略大小写
split(String, String, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,不忽略大小写
split(String, String, int, boolean, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串
split(String, int) - 类 中的静态方法cn.hutool.core.text.StrSpliter
使用空白符切分字符串
切分后的字符串两边不包含空白符,空串或空白符串并不做为元素之一
split(String, Pattern, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
通过正则切分字符串
split(byte[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
拆分byte数组为几个等份(最后一份可能小于len)
split(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
a#b#c =》 [a,b,c]
a##b#c =》 [a,"",b,c]
split(CharSequence, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,不去除切分后每个元素两边的空白符,不去除空白项
split(CharSequence, char, boolean, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,不限制分片数量
split(CharSequence, char, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
split(CharSequence, CharSequence, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
split(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
split(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
根据给定长度,将给定字符串截取为多个部分
splitByLength(String, int) - 类 中的静态方法cn.hutool.core.text.StrSpliter
根据给定长度,将给定字符串截取为多个部分
splitByRegex(String, String, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
通过正则切分字符串
splitIgnoreCase(String, char, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,忽略大小写
splitIgnoreCase(String, String, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,忽略大小写
splitPath(String) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串路径,仅支持Unix分界符:/
splitPath(String, int) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串路径,仅支持Unix分界符:/
splitPathToArray(String) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串路径,仅支持Unix分界符:/
splitPathToArray(String, int) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串路径,仅支持Unix分界符:/
splitToArray(String, char, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串为字符串数组
splitToArray(String, String, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串为字符串数组
splitToArray(String, int) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串为字符串数组
splitToArray(String, Pattern, int, boolean, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
通过正则切分字符串为字符串数组
splitToArray(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
splitToArray(CharSequence, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串
splitToInt(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串为int数组
splitToInt(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串为int数组
splitToLong(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串为long数组
splitToLong(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串为long数组
splitTrim(String, char, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串
splitTrim(String, char, int, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,大小写敏感,去除每个元素两边空白符
splitTrim(String, String, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,去除每个元素两边空格,忽略大小写
splitTrim(String, String, int, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,去除每个元素两边空格,忽略大小写
splitTrim(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,去除切分后每个元素两边的空白符,去除空白项
splitTrim(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,去除切分后每个元素两边的空白符,去除空白项
splitTrim(CharSequence, char, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,去除切分后每个元素两边的空白符,去除空白项
splitTrim(CharSequence, CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切分字符串,去除切分后每个元素两边的空白符,去除空白项
splitTrimIgnoreCase(String, String, int, boolean) - 类 中的静态方法cn.hutool.core.text.StrSpliter
切分字符串,去除每个元素两边空格,忽略大小写
sqrt(long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
平方根算法
推荐使用 Math.sqrt(double)
src - 类 中的变量cn.hutool.core.lang.copier.SrcToDestCopier
SrcToDestCopier<T,C extends SrcToDestCopier<T,C>> - cn.hutool.core.lang.copier中的类
复制器抽象类
抽象复制器抽象了一个对象复制到另一个对象,通过实现Copier.copy()方法实现复制逻辑。
SrcToDestCopier() - 类 的构造器cn.hutool.core.lang.copier.SrcToDestCopier
 
StackTraceCaller - cn.hutool.core.lang.caller中的类
通过StackTrace方式获取调用者。
StackTraceCaller() - 类 的构造器cn.hutool.core.lang.caller.StackTraceCaller
 
stacktraceToOneLineString(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
堆栈转为单行完整字符串
stacktraceToOneLineString(Throwable, int) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
堆栈转为单行完整字符串
stacktraceToString(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
堆栈转为完整字符串
stacktraceToString(Throwable, int) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
堆栈转为完整字符串
stacktraceToString(Throwable, int, Map<Character, String>) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
堆栈转为完整字符串
start() - 类 中的方法cn.hutool.core.date.TimeInterval
 
start() - 接口 中的方法cn.hutool.core.io.StreamProgress
开始
start() - 类 中的方法cn.hutool.core.thread.SyncFinisher
开始工作
startWith(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
字符串是否以给定字符开始
startWith(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串开头
如果给定的字符串和开头字符串都为null则返回true,否则任意一个值为null返回false
startWith(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串开头
startWithAny(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串是否以任何一个字符串开始
给定字符串和数组为空都返回false
startWithIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
是否以指定字符串开头,忽略大小写
state(boolean, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Assert
检查boolean表达式,当检查结果为false时抛出 IllegalStateException
state(boolean) - 类 中的静态方法cn.hutool.core.lang.Assert
检查boolean表达式,当检查结果为false时抛出 IllegalStateException
StatefulException - cn.hutool.core.exceptions中的异常错误
带有状态码的异常
StatefulException() - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(String) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(int, String) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(int, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
StatefulException(int, String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.StatefulException
 
step(T, T, int) - 接口 中的方法cn.hutool.core.lang.Range.Steper
增加步进
增加步进后的返回值如果为null则表示步进结束
str(Object, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
str(Object, Charset) - 类 中的静态方法cn.hutool.core.util.StrUtil
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
str(byte[], String) - 类 中的静态方法cn.hutool.core.util.StrUtil
将byte数组转为字符串
str(byte[], Charset) - 类 中的静态方法cn.hutool.core.util.StrUtil
解码字节码
str(Byte[], String) - 类 中的静态方法cn.hutool.core.util.StrUtil
将Byte数组转为字符串
str(Byte[], Charset) - 类 中的静态方法cn.hutool.core.util.StrUtil
解码字节码
str(ByteBuffer, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
将编码的byteBuffer数据转换为字符串
str(ByteBuffer, Charset) - 类 中的静态方法cn.hutool.core.util.StrUtil
将编码的byteBuffer数据转换为字符串
str(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
CharSequence 转为字符串,null安全
StrBuilder - cn.hutool.core.text中的类
可复用的字符串生成器,非线程安全
StrBuilder() - 类 的构造器cn.hutool.core.text.StrBuilder
构造
StrBuilder(int) - 类 的构造器cn.hutool.core.text.StrBuilder
构造
StrBuilder(CharSequence...) - 类 的构造器cn.hutool.core.text.StrBuilder
构造
strBuilder() - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StrBuilder对象
strBuilder(int) - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StrBuilder对象
strBuilder(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
创建StrBuilder对象
StreamProgress - cn.hutool.core.io中的接口
Stream进度条
StrFormatter - cn.hutool.core.text中的类
字符串格式化工具
StrFormatter() - 类 的构造器cn.hutool.core.text.StrFormatter
 
StringConverter - cn.hutool.core.convert.impl中的类
字符串转换器
StringConverter() - 类 的构造器cn.hutool.core.convert.impl.StringConverter
 
StringResource - cn.hutool.core.io.resource中的类
字符串资源,字符串做为资源
StringResource(String) - 类 的构造器cn.hutool.core.io.resource.StringResource
构造,使用UTF8编码
StringResource(String, String) - 类 的构造器cn.hutool.core.io.resource.StringResource
构造,使用UTF8编码
StringResource(String, String, Charset) - 类 的构造器cn.hutool.core.io.resource.StringResource
构造
strip(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去除两边的指定字符串
strip(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去除两边的指定字符串
stripIgnoreCase(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去除两边的指定字符串,忽略大小写
stripIgnoreCase(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
去除两边的指定字符串,忽略大小写
StrReplacer - cn.hutool.core.text.replacer中的类
抽象字符串替换类
通过实现replace方法实现局部替换逻辑
StrReplacer() - 类 的构造器cn.hutool.core.text.replacer.StrReplacer
 
StrSpliter - cn.hutool.core.text中的类
字符串切分器
StrSpliter() - 类 的构造器cn.hutool.core.text.StrSpliter
 
strToBcd(String) - 类 中的静态方法cn.hutool.core.codec.BCD
字符串转BCD码
strToUnicode(String) - 类 中的静态方法cn.hutool.core.convert.Convert
String的字符串转换成unicode的String
StrUtil - cn.hutool.core.util中的类
字符串工具类
StrUtil() - 类 的构造器cn.hutool.core.util.StrUtil
 
sub(List<T>, int, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
截取集合的部分
sub(List<T>, int, int, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
截取集合的部分
sub(Collection<T>, int, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
截取集合的部分
sub(Collection<T>, int, int, int) - 类 中的静态方法cn.hutool.core.collection.CollUtil
截取集合的部分
sub(Object, int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取子数组
sub(Object, int, int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
获取子数组
sub(float, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
sub(float, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
sub(double, float) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
sub(double, double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
sub(Double, Double) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
sub(Number, Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(Number...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(String...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(BigDecimal...) - 类 中的静态方法cn.hutool.core.util.NumberUtil
提供精确的减法运算
如果传入多个值为null或者空,则返回0
sub(CharSequence, int, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
改进JDK subString
index从0开始计算,最后一个字符为-1
如果from和to位置一样,返回 ""
如果from或to为负数,则按照length从后向前数位置,如果绝对值大于字符串长度,则from归到0,to归到length
如果经过修正的index中from大于to,则互换from和to example:
abcdefgh 2 3 =》 c
abcdefgh 2 -3 =》 cde
subAfter(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取分隔字符串之后的字符串,不包括分隔字符串
如果给定的字符串为空串(null或""),返回原字符串
如果分隔字符串为空串(null或""),则返回空串,如果分隔字符串未找到,返回空串,举例如下: StrUtil.subAfter(null, *) = null StrUtil.subAfter("", *) = "" StrUtil.subAfter(*, null) = "" StrUtil.subAfter("abc", "a") = "bc" StrUtil.subAfter("abcba", "b") = "cba" StrUtil.subAfter("abc", "c") = "" StrUtil.subAfter("abc", "d") = "" StrUtil.subAfter("abc", "") = "abc"
subAfter(CharSequence, char, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取分隔字符串之后的字符串,不包括分隔字符串
如果给定的字符串为空串(null或""),返回原字符串
如果分隔字符串为空串(null或""),则返回空串,如果分隔字符串未找到,返回空串,举例如下: StrUtil.subAfter(null, *) = null StrUtil.subAfter("", *) = "" StrUtil.subAfter("abc", 'a') = "bc" StrUtil.subAfter("abcba", 'b') = "cba" StrUtil.subAfter("abc", 'c') = "" StrUtil.subAfter("abc", 'd') = ""
subBefore(CharSequence, CharSequence, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取分隔字符串之前的字符串,不包括分隔字符串
如果给定的字符串为空串(null或"")或者分隔字符串为null,返回原字符串
如果分隔字符串为空串"",则返回空串,如果分隔字符串未找到,返回原字符串,举例如下: StrUtil.subBefore(null, *) = null StrUtil.subBefore("", *) = "" StrUtil.subBefore("abc", "a") = "" StrUtil.subBefore("abcba", "b") = "a" StrUtil.subBefore("abc", "c") = "ab" StrUtil.subBefore("abc", "d") = "abc" StrUtil.subBefore("abc", "") = "" StrUtil.subBefore("abc", null) = "abc"
subBefore(CharSequence, char, boolean) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取分隔字符串之前的字符串,不包括分隔字符串
如果给定的字符串为空串(null或"")或者分隔字符串为null,返回原字符串
如果分隔字符串未找到,返回原字符串,举例如下: StrUtil.subBefore(null, *) = null StrUtil.subBefore("", *) = "" StrUtil.subBefore("abc", 'a') = "" StrUtil.subBefore("abcba", 'b') = "a" StrUtil.subBefore("abc", 'c') = "ab" StrUtil.subBefore("abc", 'd') = "abc"
subBetween(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取指定字符串中间部分,不包括标识字符串
栗子: StrUtil.subBetween("wx[b]yz", "[", "]") = "b" StrUtil.subBetween(null, *, *) = null StrUtil.subBetween(*, null, *) = null StrUtil.subBetween(*, *, null) = null StrUtil.subBetween("", "", "") = "" StrUtil.subBetween("", "", "]") = null StrUtil.subBetween("", "[", "]") = null StrUtil.subBetween("yabcz", "", "") = "" StrUtil.subBetween("yabcz", "y", "z") = "abc" StrUtil.subBetween("yabczyabcz", "y", "z") = "abc"
subBetween(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取指定字符串中间部分,不包括标识字符串
栗子: StrUtil.subBetween(null, *) = null StrUtil.subBetween("", "") = "" StrUtil.subBetween("", "tag") = null StrUtil.subBetween("tagabctag", null) = null StrUtil.subBetween("tagabctag", "") = "" StrUtil.subBetween("tagabctag", "tag") = "abc"
subList(int, int) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
submit(Callable<T>) - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
执行有返回值的异步方法
Future代表一个异步执行的操作,通过get()方法可以获得操作的结果,如果异步操作还没有完成,则,get()会使当前线程阻塞
submit(Runnable) - 类 中的静态方法cn.hutool.core.thread.GlobalThreadPool
执行有返回值的异步方法
Future代表一个异步执行的操作,通过get()方法可以获得操作的结果,如果异步操作还没有完成,则,get()会使当前线程阻塞
subPath(String, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得相对子路径 栗子: dirPath: d:/aaa/bbb filePath: d:/aaa/bbb/ccc =》 ccc dirPath: d:/Aaa/bbb filePath: d:/aaa/bbb/ccc.txt =》 ccc.txt
subPath(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
获得相对子路径,忽略大小写 栗子: dirPath: d:/aaa/bbb filePath: d:/aaa/bbb/ccc =》 ccc dirPath: d:/Aaa/bbb filePath: d:/aaa/bbb/ccc.txt =》 ccc.txt dirPath: d:/Aaa/bbb filePath: d:/aaa/bbb/ =》 ""
subPath(Path, int, int) - 类 中的静态方法cn.hutool.core.io.FileUtil
获取指定位置的子路径部分,支持负数,例如起始为-1表示从后数第一个节点位置
subPre(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切割指定位置之前部分的字符串
subPreGbk(CharSequence, int, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取部分字符串,这里一个汉字的长度认为是2
subSequence(int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
 
subString(int) - 类 中的方法cn.hutool.core.text.StrBuilder
返回自定段的字符串
subString(int, int) - 类 中的方法cn.hutool.core.text.StrBuilder
返回自定段的字符串
subSuf(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切割指定位置之后部分的字符串
subSufByLength(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
切割指定长度的后部分的字符串 StrUtil.subSufByLength("abcde", 3) = "cde" StrUtil.subSufByLength("abcde", 0) = "" StrUtil.subSufByLength("abcde", -5) = "" StrUtil.subSufByLength("abcde", -1) = "" StrUtil.subSufByLength("abcde", 5) = "abcde" StrUtil.subSufByLength("abcde", 10) = "abcde" StrUtil.subSufByLength(null, 3) = null
subtract(byte) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
减去值
subtract(double) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
减去值
subtract(float) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
减去值
subtract(int) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
减去值
subtract(long) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
减去值
subtract(short) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
减去值
subtract(Number) - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
减去值
subWithLength(String, int, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
截取字符串,从指定位置开始,截取指定长度的字符串
author weibaohui
swap(int[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(long[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(double[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(float[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(boolean[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(byte[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(char[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(short[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(T[], int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
swap(Object, int, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
交换数组中两个位置的值
SyncFinisher - cn.hutool.core.thread中的类
线程同步结束器
在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待。
SyncFinisher() - 类 的构造器cn.hutool.core.thread.SyncFinisher
 
SyncFinisher.Worker - cn.hutool.core.thread中的类
工作者,为一个线程
SyncFinisher.Worker() - 类 的构造器cn.hutool.core.thread.SyncFinisher.Worker
 
systemCharset() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
系统字符集编码,如果是Windows,则默认为GBK编码,否则取 CharsetUtil.defaultCharsetName()
systemCharsetName() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
系统字符集编码,如果是Windows,则默认为GBK编码,否则取 CharsetUtil.defaultCharsetName()
SystemClock - cn.hutool.core.date中的类
系统时钟
高并发场景下System.currentTimeMillis()的性能问题的优化 System.currentTimeMillis()的调用比new一个普通对象要耗时的多(具体耗时高出多少我还没测试过,有人说是100倍左右) System.currentTimeMillis()之所以慢是因为去跟系统打了一次交道 后台定时更新时钟,JVM退出时,线程自动回收 see: http://git.oschina.net/yu120/sequence

T

TAB - 类 中的静态变量cn.hutool.core.util.CharUtil
 
TAB - 类 中的静态变量cn.hutool.core.util.StrUtil
 
textDelimiter - 类 中的变量cn.hutool.core.text.csv.CsvConfig
文本分隔符,文本包装符,默认双引号'"'
TextSimilarity - cn.hutool.core.text中的类
文本相似度计算
工具类提供者:【杭州】fineliving
TextSimilarity() - 类 的构造器cn.hutool.core.text.TextSimilarity
 
thisDayOfMonth() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisDayOfWeek() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisDayOfWeekEnum() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisHour(boolean) - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisMillsecond() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisMinute() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisMonth() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisMonthEnum() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisSecond() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisWeekOfMonth() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisWeekOfYear() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
thisYear() - 类 中的静态方法cn.hutool.core.date.DateUtil
 
ThreadFactoryBuilder - cn.hutool.core.thread中的类
ThreadFactory创建器
参考:Guava的ThreadFactoryBuilder
ThreadFactoryBuilder() - 类 的构造器cn.hutool.core.thread.ThreadFactoryBuilder
 
ThreadUtil - cn.hutool.core.thread中的类
线程池工具
ThreadUtil() - 类 的构造器cn.hutool.core.thread.ThreadUtil
 
tianlHash(String) - 类 中的静态方法cn.hutool.core.util.HashUtil
TianL Hash算法
TimeInterval - cn.hutool.core.date中的类
计时器
计算某个过程花费的时间,精确到毫秒
TimeInterval() - 类 的构造器cn.hutool.core.date.TimeInterval
 
TimeInterval(boolean) - 类 的构造器cn.hutool.core.date.TimeInterval
 
timer() - 类 中的静态方法cn.hutool.core.date.DateUtil
计时器
计算某个过程花费的时间,精确到毫秒
timestamp() - 类 中的方法cn.hutool.core.lang.UUID
与此 UUID 相关联的时间戳值。
timeToSecond(String) - 类 中的静态方法cn.hutool.core.date.DateUtil
HH:mm:ss 时间格式字符串转为秒数
参考:https://github.com/iceroot
timeZone - 类 中的变量cn.hutool.core.date.format.AbstractDateBasic
The time zone.
TimeZoneConverter - cn.hutool.core.convert.impl中的类
TimeZone转换器
TimeZoneConverter() - 类 的构造器cn.hutool.core.convert.impl.TimeZoneConverter
 
toAbsoluteUrl(String, String) - 类 中的静态方法cn.hutool.core.util.NetUtil
相对URL转换为绝对URL
toArray() - 类 中的方法cn.hutool.core.io.FastByteBuffer
返回快速缓冲中的数据
toArray(int, int) - 类 中的方法cn.hutool.core.io.FastByteBuffer
返回快速缓冲中的数据
toArray() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
toArray(T[]) - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
toArray(ByteBuffer) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
ByteBuffer 转byte数组
toArray(Iterator<T>, Class<T>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将集合转为数组
toArray(Iterable<T>, Class<T>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将集合转为数组
toArray(Collection<T>, Class<T>) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将集合转为数组
toBase64(Image, String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
将图片对象转换为Base64形式
toBean(Class<T>, ValueProvider<String>, CopyOptions) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
ServletRequest 参数转Bean
toBean(T) - 类 中的方法cn.hutool.core.lang.Dict
转换为Bean对象
toBean(T, boolean) - 类 中的方法cn.hutool.core.lang.Dict
转换为Bean对象
toBean(Class<T>) - 类 中的方法cn.hutool.core.lang.Dict
填充Value Object对象
toBeanIgnoreCase(T) - 类 中的方法cn.hutool.core.lang.Dict
转换为Bean对象
toBeanIgnoreCase(Class<T>) - 类 中的方法cn.hutool.core.lang.Dict
填充Value Object对象,忽略大小写
toBeanWithCamelCase(T) - 类 中的方法cn.hutool.core.lang.Dict
转换为Bean对象,并使用驼峰法模式转换
toBigDecimal(Object, BigDecimal) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为BigDecimal
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toBigDecimal(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为BigDecimal
如果给定的值为空,或者转换失败,返回null
转换失败不会报错
toBigDecimal(Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
数字转BigDecimal
toBigDecimal(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
数字转BigDecimal
toBigInteger(Object, BigInteger) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为BigInteger
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toBigInteger(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为BigInteger
如果给定的值为空,或者转换失败,返回默认值null
转换失败不会报错
toBool(Object, Boolean) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为boolean
String支持的值为:true、false、yes、ok、no,1,0 如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toBool(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为boolean
如果给定的值为空,或者转换失败,返回默认值null
转换失败不会报错
toBoolean(String) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
转换字符串为boolean值
toBooleanArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Boolean数组
toBuffered(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
转换为BufferedInputStream
toBuffered(OutputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
转换为BufferedOutputStream
toBufferedImage(Image) - 类 中的静态方法cn.hutool.core.util.ImageUtil
ImageBufferedImage
首先尝试强转,否则新建一个BufferedImage后重新绘制
toByte(Object, Byte) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为byte
如果给定的值为null,或者转换失败,返回默认值
转换失败不会报错
toByte(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为byte
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toByte(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为byte
toByteArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Byte数组
toByteArray() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
转为Byte数组
toByteObj(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Byte
toCalendar() - 类 中的方法cn.hutool.core.date.DateTime
转换为Calendar, 默认 Locale
toCalendar(Locale) - 类 中的方法cn.hutool.core.date.DateTime
转换为Calendar
toCalendar(TimeZone) - 类 中的方法cn.hutool.core.date.DateTime
转换为Calendar
toCalendar(TimeZone, Locale) - 类 中的方法cn.hutool.core.date.DateTime
转换为Calendar
toCamelCase(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
将下划线方式命名的字符串转换为驼峰式。
toCamelCaseMap(Map<K, V>) - 类 中的静态方法cn.hutool.core.map.MapUtil
将已知Map转换为key为驼峰风格的Map
如果KEY为非String类型,保留原值
toChar(Object, Character) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为字符
如果给定的值为null,或者转换失败,返回默认值
转换失败不会报错
toChar(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为字符
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toChar(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为char
toCharacter(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Character
toCharArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Character数组
toChinese() - 枚举 中的方法cn.hutool.core.date.Week
转换为中文名
toChinese(String) - 枚举 中的方法cn.hutool.core.date.Week
转换为中文名
toCollection(Iterable<E>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
Iterable转为Collection
首先尝试强转,强转失败则构建一个新的ArrayList
toCollection(Class<?>, Class<?>, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为集合类
toCombination(AnnotatedElement) - 类 中的静态方法cn.hutool.core.annotation.AnnotationUtil
将指定的被注解的元素转换为组合注解元素
toDate(Object, Date) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Date
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toDate(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Date
如果给定的值为空,或者转换失败,返回null
转换失败不会报错
toDateStr() - 类 中的方法cn.hutool.core.date.DateTime
转为"yyyy-MM-dd " 格式字符串
today() - 类 中的静态方法cn.hutool.core.date.DateUtil
当前日期,格式 yyyy-MM-dd
toDBC(String) - 类 中的静态方法cn.hutool.core.convert.Convert
全角转半角
toDBC(String, Set<Character>) - 类 中的静态方法cn.hutool.core.convert.Convert
替换全角为半角
toDouble(Object, Double) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为double
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toDouble(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为double
如果给定的值为空,或者转换失败,返回默认值null
转换失败不会报错
toDouble(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为double
toDoubleArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Double数组
toDoubleObj(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为double
toEnum(Class<E>, Object, E) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Enum对象
如果给定的值为空,或者转换失败,返回默认值
toEnum(Class<E>, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Enum对象
如果给定的值为空,或者转换失败,返回默认值null
toFile(Document, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档写入到文件
使用Document中的编码
toFile(Document, String, String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档写入到文件
toFloat(Object, Float) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Float
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toFloat(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Float
如果给定的值为空,或者转换失败,返回默认值null
转换失败不会报错
toFloat(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为float
toFloatArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Float数组
toFloatObj(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Float
toHex(String, Charset) - 类 中的静态方法cn.hutool.core.convert.Convert
字符串转换成十六进制字符串,结果为小写
toHex(byte[]) - 类 中的静态方法cn.hutool.core.convert.Convert
byte数组转16进制串
toHex(Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
Color对象转16进制表示,例如#fcf6d6
toImage(String) - 类 中的静态方法cn.hutool.core.util.ImageUtil
将Base64编码的图像信息转为 BufferedImage
toImage(byte[]) - 类 中的静态方法cn.hutool.core.util.ImageUtil
将的图像bytes转为 BufferedImage
toInt(Object, Integer) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为int
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toInt(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为int
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toInt(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为int
toIntArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Integer数组
toInteger(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Integer
toIntSecond(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
格式化成yyMMddHHmm后转换为int型
toJdkDate() - 类 中的方法cn.hutool.core.date.DateTime
转换为 Date
考虑到很多框架(例如Hibernate)的兼容性,提供此方法返回JDK原生的Date对象
toList() - 类 中的方法cn.hutool.core.collection.BoundedPriorityQueue
 
toList(T...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
数组转为ArrayList
toList(Iterable<E>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterator转List
不判断,直接生成新的List
toList(Iterator<E>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
Iterator转List
不判断,直接生成新的List
toList(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为ArrayList,元素类型默认Object
toList(Class<?>, Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为ArrayList
toListMap(Iterable<? extends Map<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
行转列,合并相同的键,值合并为列表
将Map列表中相同key的值组成列表做为Map的value
CollUtil.toMapList(Map)的逆方法
比如传入数据: [ {a: 1, b: 1, c: 1} {a: 2, b: 2} {a: 3, b: 3} {a: 4} ] 结果是: { a: [1,2,3,4] b: [1,2,3,] c: [1] }
toListMap(Iterable<? extends Map<K, V>>) - 类 中的静态方法cn.hutool.core.map.MapUtil
行转列,合并相同的键,值合并为列表
将Map列表中相同key的值组成列表做为Map的value
MapUtil.toMapList(Map)的逆方法
比如传入数据: [ {a: 1, b: 1, c: 1} {a: 2, b: 2} {a: 3, b: 3} {a: 4} ] 结果是: { a: [1,2,3,4] b: [1,2,3,] c: [1] }
toLong(Object, Long) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为long
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toLong(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为long
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toLong(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为long
toLongArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Long数组
toLongObj(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Long
toMap(Iterable<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将Entry集合转换为HashMap
toMap(Object[]) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将数组转换为Map(HashMap),支持数组元素类型为: Map.Entry 长度大于1的数组(取前两个值),如果不满足跳过此元素 Iterable 长度也必须大于1(取前两个值),如果不满足跳过此元素 Iterator 长度也必须大于1(取前两个值),如果不满足跳过此元素 Map<Object, Object> colorMap = CollectionUtil.toMap(new String[][] {{ {"RED", "#FF0000"}, {"GREEN", "#00FF00"}, {"BLUE", "#0000FF"}}); 参考:commons-lang
toMap(Iterable<Map.Entry<K, V>>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
将Entry集合转换为HashMap
toMap(Iterable<K>, Iterable<V>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
将键列表和值列表转换为Map
以键为准,值与键位置需对应。
toMap(Iterable<K>, Iterable<V>, boolean) - 类 中的静态方法cn.hutool.core.collection.IterUtil
将键列表和值列表转换为Map
以键为准,值与键位置需对应。
toMap(Iterator<K>, Iterator<V>) - 类 中的静态方法cn.hutool.core.collection.IterUtil
将键列表和值列表转换为Map
以键为准,值与键位置需对应。
toMap(Iterator<K>, Iterator<V>, boolean) - 类 中的静态方法cn.hutool.core.collection.IterUtil
将键列表和值列表转换为Map
以键为准,值与键位置需对应。
toMapList(Map<K, ? extends Iterable<V>>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
列转行。
toMapList(Map<K, ? extends Iterable<V>>) - 类 中的静态方法cn.hutool.core.map.MapUtil
列转行。
toMarkSupportStream(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
InputStream转换为支持mark标记的流
若原流支持mark标记,则返回原流,否则使用BufferedInputStream 包装之
tomorrow() - 类 中的静态方法cn.hutool.core.date.DateUtil
明天
toMsStr() - 类 中的方法cn.hutool.core.date.DateTime
 
toNumber(Object, Number) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Number
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
toNumber(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Number
如果给定的值为空,或者转换失败,返回默认值null
转换失败不会报错
toNumberArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Number数组
toObjectArray(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
将键值对转换为二维数组,第一维是key,第二纬是value
toPushbackStream(InputStream, int) - 类 中的静态方法cn.hutool.core.io.IoUtil
转换为PushbackInputStream
如果传入的输入流已经是PushbackInputStream,强转返回,否则新建一个
toSBC(String) - 类 中的静态方法cn.hutool.core.convert.Convert
半角转全角
toSBC(String, Set<Character>) - 类 中的静态方法cn.hutool.core.convert.Convert
半角转全角
toShort(Object, Short) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Short
如果给定的值为null,或者转换失败,返回默认值
转换失败不会报错
toShort(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Short
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toShort(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为short
toShortArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为Short数组
toShortObj(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
boolean值转为Short
toSqlDate() - 类 中的方法cn.hutool.core.date.DateTime
转为 Date
toStr(Object, String) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为字符串
如果给定的值为null,或者转换失败,返回默认值
转换失败不会报错
toStr(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为字符串
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
toStr(Number, String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
数字转字符串
调用Object.toString(),并去除尾小数点儿后多余的0
toStr(Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
数字转字符串
调用Object.toString(),并去除尾小数点儿后多余的0
toStr(Document) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档转换为String
字符编码使用XML文档中的编码,获取不到则使用UTF-8
toStr(Document, boolean) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档转换为String
字符编码使用XML文档中的编码,获取不到则使用UTF-8
toStr(Document, String, boolean) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档转换为String
字符编码使用XML文档中的编码,获取不到则使用UTF-8
toStrArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
转换为String数组
toStream(String, String) - 类 中的静态方法cn.hutool.core.io.IoUtil
String 转为流
toStream(String, Charset) - 类 中的静态方法cn.hutool.core.io.IoUtil
String 转为流
toStream(byte[]) - 类 中的静态方法cn.hutool.core.io.IoUtil
String 转为流
toStream(File) - 类 中的静态方法cn.hutool.core.io.IoUtil
文件转为流
toString() - 类 中的方法cn.hutool.core.bean.DynaBean
 
toString() - 类 中的方法cn.hutool.core.date.BetweenFormater
 
toString(BetweenFormater.Level) - 类 中的方法cn.hutool.core.date.DateBetween
格式化输出时间差
toString() - 类 中的方法cn.hutool.core.date.DateBetween
 
toString() - 类 中的方法cn.hutool.core.date.DateTime
转为"yyyy-MM-dd yyyy-MM-dd HH:mm:ss " 格式字符串
如果时区被设置,会转换为其时区对应的时间,否则转换为当前地点对应的时区
toString(TimeZone) - 类 中的方法cn.hutool.core.date.DateTime
转为"yyyy-MM-dd yyyy-MM-dd HH:mm:ss " 格式字符串
如果时区不为null,会转换为其时区对应的时间,否则转换为当前时间对应的时区
toString(String) - 类 中的方法cn.hutool.core.date.DateTime
转为字符串
toString(DatePrinter) - 类 中的方法cn.hutool.core.date.DateTime
转为字符串
toString(DateFormat) - 类 中的方法cn.hutool.core.date.DateTime
转为字符串
toString() - 类 中的方法cn.hutool.core.date.format.AbstractDateBasic
 
toString() - 类 中的方法cn.hutool.core.date.format.FastDateFormat
 
toString() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
 
toString(String) - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
转为字符串
toString(Charset) - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
转为字符串
toString() - 类 中的方法cn.hutool.core.io.resource.ClassPathResource
 
toString() - 类 中的方法cn.hutool.core.io.resource.UrlResource
返回路径
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableBool
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
 
toString() - 类 中的方法cn.hutool.core.lang.mutable.MutableShort
 
toString() - 类 中的方法cn.hutool.core.lang.Pair
 
toString() - 类 中的方法cn.hutool.core.lang.Tuple
 
toString() - 类 中的方法cn.hutool.core.lang.UUID
返回此UUID 的字符串表现形式。
toString(boolean) - 类 中的方法cn.hutool.core.lang.UUID
返回此UUID 的字符串表现形式。
toString(char) - 类 中的静态方法cn.hutool.core.text.ASCIIStrCache
字符转为字符串
如果为ASCII字符,使用缓存
toString() - 类 中的方法cn.hutool.core.text.csv.CsvRow
 
toString(boolean) - 类 中的方法cn.hutool.core.text.StrBuilder
生成字符串
toString() - 类 中的方法cn.hutool.core.text.StrBuilder
生成字符串
toString(String) - 类 中的静态方法cn.hutool.core.text.UnicodeUtil
Unicode字符串转为普通字符串
Unicode字符串的表现方式为:\\uXXXX
toString() - 类 中的方法cn.hutool.core.thread.threadlocal.NamedInheritableThreadLocal
 
toString() - 类 中的方法cn.hutool.core.thread.threadlocal.NamedThreadLocal
 
toString(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
数组或集合转String
toString(boolean, String, String) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
将boolean转换为字符串 BooleanUtil.toString(true, "true", "false") = "true" BooleanUtil.toString(false, "true", "false") = "false"
toString(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
字符转为字符串
如果为ASCII字符,使用缓存
toString(Enum<?>) - 类 中的静态方法cn.hutool.core.util.EnumUtil
Enum对象转String,调用Enum.name() 方法
toString(Object) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
将Object转为String
toString(Object) - 类 中的静态方法cn.hutool.core.util.StrUtil
调用对象的toString方法,null会返回“null”
toStringAndReset() - 类 中的方法cn.hutool.core.text.StrBuilder
重置并返回生成的字符串
toStringDefaultTimeZone() - 类 中的方法cn.hutool.core.date.DateTime
转为"yyyy-MM-dd yyyy-MM-dd HH:mm:ss " 格式字符串
时区使用当前地区的默认时区
toStringOnOff(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
将boolean转换为字符串 'on' 或者 'off'.
toStringTrueFalse(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
将boolean转换为字符串 'true' 或者 'false'.
toStringYesNo(boolean) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
将boolean转换为字符串 'yes' 或者 'no'.
toSymbolCase(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
将驼峰式命名的字符串转换为使用符号连接方式。
totalLength(CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串数组的总长度
null字符长度定义为0
totalPage(int, int) - 类 中的静态方法cn.hutool.core.util.PageUtil
根据总数计算总页数
toTimestamp() - 类 中的方法cn.hutool.core.date.DateTime
转为Timestamp
toTimeStr() - 类 中的方法cn.hutool.core.date.DateTime
转为"HH:mm:ss" 格式字符串
toTreeSet(Collection<T>, Comparator<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
将集合转换为排序后的TreeSet
touch(String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件及其父目录,如果这个文件存在,直接返回这个文件
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
touch(File) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件及其父目录,如果这个文件存在,直接返回这个文件
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
touch(File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件及其父目录,如果这个文件存在,直接返回这个文件
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
touch(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
创建文件及其父目录,如果这个文件存在,直接返回这个文件
此方法不对File对象类型做判断,如果File不存在,无法判断其类型
toUnderlineCase(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
将驼峰式命名的字符串转换为下划线方式。
toUnicode(String) - 类 中的静态方法cn.hutool.core.text.UnicodeUtil
字符串编码为Unicode形式
toUnicode(String, boolean) - 类 中的静态方法cn.hutool.core.text.UnicodeUtil
字符串编码为Unicode形式
toUnicodeHex(int) - 类 中的静态方法cn.hutool.core.util.HexUtil
将指定int值转换为Unicode字符串形式,常用于特殊字符(例如汉字)转Unicode形式
转换的字符串如果u后不足4位,则前面用0填充,例如: '我' =》你
toUnicodeHex(char) - 类 中的静态方法cn.hutool.core.util.HexUtil
将指定char值转换为Unicode字符串形式,常用于特殊字符(例如汉字)转Unicode形式
转换的字符串如果u后不足4位,则前面用0填充,例如: '我' =》你
toURI(URL) - 类 中的静态方法cn.hutool.core.util.URLUtil
转URL为URI
toURI(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
转字符串为URI
toUrlForHttp(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
将URL字符串转换为URL对象,并做必要验证
toUrlForHttp(String, URLStreamHandler) - 类 中的静态方法cn.hutool.core.util.URLUtil
将URL字符串转换为URL对象,并做必要验证
transElements(NodeList) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将NodeList转换为Element列表
transElements(Element, NodeList) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将NodeList转换为Element列表
非Element节点将被忽略
transform(Source, Result, String, boolean) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档写出
transToStartEnd(int, int) - 类 中的静态方法cn.hutool.core.util.PageUtil
将页数和每页条目数转换为开始位置和结束位置
此方法用于不包括结束位置的分页方法
例如:
页码:1,每页10 =》 [0, 10]
页码:2,每页10 =》 [10, 20]
。。。
trim(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串头尾部的空白,如果字符串是null,依然返回null
trim(String[]) - 类 中的静态方法cn.hutool.core.util.StrUtil
给定字符串数组全部做去首尾空格
trim(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串头尾部的空白符,如果字符串是null,依然返回null
trimEnd(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串尾部的空白,如果字符串是null,则返回null
trimStart(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串头部的空白,如果字符串是null,则返回null
trimStrFields(T, String...) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
把Bean里面的String属性做trim操作。
trimToEmpty(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串头尾部的空白,如果字符串是null,返回""
trimToNull(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
除去字符串头尾部的空白,如果字符串是null,返回""
Tuple - cn.hutool.core.lang中的类
不可变数组类型,用于多值返回
多值可以支持每个元素值类型不同
Tuple(Object...) - 类 的构造器cn.hutool.core.lang.Tuple
构造
TypeUtil - cn.hutool.core.util中的类
针对 Type 的工具类封装
最主要功能包括: 1.
TypeUtil() - 类 的构造器cn.hutool.core.util.TypeUtil
 

U

UNDERLINE - 类 中的静态变量cn.hutool.core.util.CharUtil
 
UNDERLINE - 类 中的静态变量cn.hutool.core.util.StrUtil
 
unescape(String) - 类 中的静态方法cn.hutool.core.util.EscapeUtil
Escape解码
unescapeHtml4(String) - 类 中的静态方法cn.hutool.core.util.EscapeUtil
反转义HTML4中的特殊字符
unGzip(byte[], String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Gzip解压缩处理
unGzip(byte[]) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Gzip解压处理
unicodeToStr(String) - 类 中的静态方法cn.hutool.core.convert.Convert
unicode的String转换成String的字符串
UnicodeUtil - cn.hutool.core.text中的类
提供Unicode字符串和普通字符串之间的转换
UnicodeUtil() - 类 的构造器cn.hutool.core.text.UnicodeUtil
 
union(Collection<T>, Collection<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
两个集合的并集
针对一个集合中存在多个相同元素的情况,计算两个集合中此元素的个数,保留最多的个数
例如:集合1:[a, b, c, c, c],集合2:[a, b, c, c]
结果:[a, b, c, c, c],此结果中只保留了三个c
union(Collection<T>, Collection<T>, Collection<T>...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
多个集合的并集
针对一个集合中存在多个相同元素的情况,计算两个集合中此元素的个数,保留最多的个数
例如:集合1:[a, b, c, c, c],集合2:[a, b, c, c]
结果:[a, b, c, c, c],此结果中只保留了三个c
universal(char[], int, int[]) - 类 中的静态方法cn.hutool.core.util.HashUtil
Universal Hashing
unserialize(byte[]) - 类 中的静态方法cn.hutool.core.util.ObjectUtil
反序列化
对象必须实现Serializable接口
unWrap(Class<?>) - 枚举 中的静态方法cn.hutool.core.convert.BasicType
包装类转为原始类,非包装类返回原类
unWrap(Class<?>) - 类 中的静态方法cn.hutool.core.convert.Convert
包装类转为原始类,非包装类返回原类
unwrap(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
剥离反射引发的InvocationTargetException、UndeclaredThrowableException中间异常,返回业务本身的异常
unWrap(Integer...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Character...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(Boolean...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装类数组转为原始类型数组
unWrap(CharSequence, String, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉字符包装,如果未被包装则返回原字符串
unWrap(CharSequence, char, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉字符包装,如果未被包装则返回原字符串
unWrap(CharSequence, char) - 类 中的静态方法cn.hutool.core.util.StrUtil
去掉字符包装,如果未被包装则返回原字符串
unzip(String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压到文件名相同的目录中,默认编码UTF-8
unzip(String, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压到文件名相同的目录中
unzip(File) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压到文件名相同的目录中,使用UTF-8编码
unzip(File, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压到文件名相同的目录中
unzip(String, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压,默认UTF-8编码
unzip(String, String, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压
unzip(File, File) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压,默认使用UTF-8编码
unzip(File, File, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压
unzipFileBytes(String, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
从Zip文件中提取指定的文件为bytes
unzipFileBytes(String, Charset, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
从Zip文件中提取指定的文件为bytes
unzipFileBytes(File, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
从Zip文件中提取指定的文件为bytes
unzipFileBytes(File, Charset, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
从Zip文件中提取指定的文件为bytes
unZlib(byte[], String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Zlib解压缩处理
unZlib(byte[]) - 类 中的静态方法cn.hutool.core.util.ZipUtil
解压缩zlib
upperFirst(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
大写首字母
例如:str = name, return Name
upperFirstAndAddPre(CharSequence, String) - 类 中的静态方法cn.hutool.core.util.StrUtil
原字符串首字母大写并在其首部添加指定字符串 例如:str=name, preString=get =》 return getName
URIConverter - cn.hutool.core.convert.impl中的类
URI对象转换器
URIConverter() - 类 的构造器cn.hutool.core.convert.impl.URIConverter
 
url - 类 中的变量cn.hutool.core.io.resource.UrlResource
 
URL - 类 中的静态变量cn.hutool.core.lang.PatternPool
URL
URL - 类 中的静态变量cn.hutool.core.lang.Validator
URL
url(String) - 类 中的静态方法cn.hutool.core.util.URLUtil
通过一个字符串形式的URL地址创建URL对象
url(String, URLStreamHandler) - 类 中的静态方法cn.hutool.core.util.URLUtil
通过一个字符串形式的URL地址创建URL对象
URL_HTTP - 类 中的静态变量cn.hutool.core.lang.PatternPool
Http URL
URL_HTTP - 类 中的静态变量cn.hutool.core.lang.Validator
Http URL
URL_PROTOCOL_FILE - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示文件: "file"
URL_PROTOCOL_JAR - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示Jar文件: "jar"
URL_PROTOCOL_VFS - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示JBoss VFS资源: "vfs"
URL_PROTOCOL_VFSFILE - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示JBoss文件: "vfsfile"
URL_PROTOCOL_VFSZIP - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示JBoss zip文件: "vfszip"
URL_PROTOCOL_WSJAR - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示WebSphere文件: "wsjar"
URL_PROTOCOL_ZIP - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 协议表示zip文件: "zip"
URLConverter - cn.hutool.core.convert.impl中的类
URL对象转换器
URLConverter() - 类 的构造器cn.hutool.core.convert.impl.URLConverter
 
UrlResource - cn.hutool.core.io.resource中的类
URL资源访问类
UrlResource(URL) - 类 的构造器cn.hutool.core.io.resource.UrlResource
构造
UrlResource(URL, String) - 类 的构造器cn.hutool.core.io.resource.UrlResource
构造
UrlResource(File) - 类 的构造器cn.hutool.core.io.resource.UrlResource
已过时。
Please use FileResource
URLUtil - cn.hutool.core.util中的类
统一资源定位符相关工具类
URLUtil() - 类 的构造器cn.hutool.core.util.URLUtil
 
useSynchronousQueue() - 类 中的方法cn.hutool.core.thread.ExecutorBuilder
使用SynchronousQueue 做为等待队列
UTC_FORMAT - 类 中的静态变量cn.hutool.core.date.DatePattern
UTC时间FastDateFormat:yyyy-MM-dd'T'HH:mm:ss'Z'
UTC_PATTERN - 类 中的静态变量cn.hutool.core.date.DatePattern
UTC时间:yyyy-MM-dd'T'HH:mm:ss'Z'
utf8Bytes(CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
编码字符串,编码为UTF-8
utf8Str(Object) - 类 中的静态方法cn.hutool.core.util.StrUtil
将对象转为字符串
1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法
UTF_8 - 类 中的静态变量cn.hutool.core.util.CharsetUtil
UTF-8
UtilException - cn.hutool.core.exceptions中的异常错误
工具类异常
UtilException(Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.UtilException
 
UtilException(String) - 异常错误 的构造器cn.hutool.core.exceptions.UtilException
 
UtilException(String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.UtilException
 
UtilException(String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.UtilException
 
UtilException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.UtilException
 
UUID - 类 中的静态变量cn.hutool.core.lang.PatternPool
UUID
UUID - cn.hutool.core.lang中的类
提供通用唯一识别码(universally unique identifier)(UUID)实现,UUID表示一个128位的值。
UUID(long, long) - 类 的构造器cn.hutool.core.lang.UUID
使用指定的数据构造新的 UUID。
UUID - 类 中的静态变量cn.hutool.core.lang.Validator
UUID
uuid() - 类 中的静态方法cn.hutool.core.util.StrUtil
生成随机UUID
UUID_SIMPLE - 类 中的静态变量cn.hutool.core.lang.PatternPool
不带横线的UUID
UUID_SIMPLE - 类 中的静态变量cn.hutool.core.lang.Validator
不带横线的UUID
UUIDConverter - cn.hutool.core.convert.impl中的类
UUID对象转换器转换器
UUIDConverter() - 类 的构造器cn.hutool.core.convert.impl.UUIDConverter
 

V

validateBetween(Number, Number, Number, String) - 类 中的静态方法cn.hutool.core.lang.Validator
检查给定的数字是否在指定范围内
validateBirthday(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证验证是否为生日
validateChinese(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为汉字
validateCitizenIdNumber(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为身份证号码(18位中国)
出生日期只支持到到2999年
validateEmail(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为可用邮箱地址
validateEqual(Object, Object, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否相等,不相等抛出异常
ValidateException - cn.hutool.core.exceptions中的异常错误
验证异常
ValidateException() - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(String) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(String, Object...) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(int, String) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(int, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
ValidateException(int, String, Throwable) - 异常错误 的构造器cn.hutool.core.exceptions.ValidateException
 
validateGeneral(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为英文字母 、数字和下划线
validateGeneral(String, int, int, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为给定长度范围的英文字母 、数字和下划线
validateGeneral(String, int, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为给定最小长度的英文字母 、数字和下划线
validateGeneralWithChinese(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为中文字、英文字母、数字和下划线
validateIpv4(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为IPV4地址
validateLetter(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否全部为字母组成,包括大写和小写字母和汉字
validateLowerCase(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证字符串是否全部为小写字母
validateMac(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为MAC地址
validateMatchRegex(String, String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
通过正则表达式验证
不符合正则
validateMobile(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为手机号码(中国)
validateMoney(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为货币
validateNotEmpty(Object, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为空,为空时抛出异常
对于String类型判定是否为empty(null 或 "")
validateNotEmptyAndEqual(Object, Object, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否非空且与指定值相等
当数据为空时抛出验证异常
当两值不等时抛出异常
validateNotEmptyAndNotEqual(Object, Object, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否非空且与指定值相等
当数据为空时抛出验证异常
当两值相等时抛出异常
validateNotEqual(Object, Object, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否不等,相等抛出异常
validateNotNull(T, String, Object...) - 类 中的静态方法cn.hutool.core.lang.Validator
检查指定值是否为null
validateNumber(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为数字
validatePlateNumber(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为中国车牌号
validateUpperCase(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证字符串是否全部为大写字母
validateUrl(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为URL
validateUUID(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为UUID
包括带横线标准格式和不带横线的简单模式
validateWord(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为字母(包括大写和小写字母)
validateZipCode(String, String) - 类 中的静态方法cn.hutool.core.lang.Validator
验证是否为邮政编码(中国)
Validator - cn.hutool.core.lang中的类
字段验证器
value(String, Type) - 类 中的方法cn.hutool.core.bean.copier.provider.BeanValueProvider
 
value(String, Type) - 类 中的方法cn.hutool.core.bean.copier.provider.MapValueProvider
 
value(T, Type) - 接口 中的方法cn.hutool.core.bean.copier.ValueProvider
获取值
返回值一般需要匹配被注入类型,如果不匹配会调用默认转换 Convert.convert(Type, Object)实现转换
valueOf(String) - 枚举 中的静态方法cn.hutool.core.bean.BeanDescCache
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.bean.BeanInfoCache
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.convert.BasicType
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.BetweenFormater.Level
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.DateField
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.DateUnit
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.Month
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.Quarter
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.Season
已过时。
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.date.Week
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.io.file.LineSeparator
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.thread.RejectPolicy
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.util.ModifierUtil.ModifierType
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法cn.hutool.core.util.ReferenceUtil.ReferenceType
返回带有指定名称的该类型的枚举常量。
ValueProvider<T> - cn.hutool.core.bean.copier中的接口
值提供者,用于提供Bean注入时参数对应值得抽象接口
继承或匿名实例化此接口
在Bean注入过程中,Bean获得字段名,通过外部方式根据这个字段名查找相应的字段值,然后注入Bean
values() - 枚举 中的静态方法cn.hutool.core.bean.BeanDescCache
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.bean.BeanInfoCache
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.convert.BasicType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.BetweenFormater.Level
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.DateField
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.DateUnit
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.Month
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.Quarter
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.Season
已过时。
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.date.Week
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.io.file.LineSeparator
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 类 中的方法cn.hutool.core.map.MapProxy
 
values() - 枚举 中的静态方法cn.hutool.core.thread.RejectPolicy
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.util.ModifierUtil.ModifierType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法cn.hutool.core.util.ReferenceUtil.ReferenceType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
valuesOfKeys(Map<K, V>, K...) - 类 中的静态方法cn.hutool.core.collection.CollUtil
从Map中获取指定键列表对应的值列表
如果key在map中不存在或key对应值为null,则返回值列表对应位置的值也为null
valuesOfKeys(Map<K, V>, Iterable<K>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
从Map中获取指定键列表对应的值列表
如果key在map中不存在或key对应值为null,则返回值列表对应位置的值也为null
valuesOfKeys(Map<K, V>, Iterator<K>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
从Map中获取指定键列表对应的值列表
如果key在map中不存在或key对应值为null,则返回值列表对应位置的值也为null
variant() - 类 中的方法cn.hutool.core.lang.UUID
与此 UUID 相关联的变体号。
version() - 类 中的方法cn.hutool.core.lang.UUID
与此 UUID 相关联的版本号.
VersionComparator - cn.hutool.core.comparator中的类
版本比较器
比较两个版本的大小
排序时版本从小到大排序,既比较时小版本在前,大版本在后
支持如:1.3.20.8,6.82.20160101,8.5a/8.5c等版本形式
参考:https://www.cnblogs.com/shihaiming/p/6286575.html
VersionComparator() - 类 的构造器cn.hutool.core.comparator.VersionComparator
默认构造
VoidFunc - cn.hutool.core.lang中的接口
函数对象
接口灵感来自于ActFramework
一个函数接口代表一个一个函数,用于包装一个函数为对象
在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象

W

waitForDie(Thread) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
等待线程结束.
WAR_URL_PREFIX - 类 中的静态变量cn.hutool.core.util.URLUtil
URL 前缀表示war: "war:"
WAR_URL_SEPARATOR - 类 中的静态变量cn.hutool.core.util.URLUtil
WAR路径及内部文件路径分界符
watch() - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
开始监听事件,阻塞当前进程
watch(Watcher) - 类 中的方法cn.hutool.core.io.watch.WatchMonitor
开始监听事件,阻塞当前进程
Watcher - cn.hutool.core.io.watch中的接口
观察者(监视器)
WatcherChain - cn.hutool.core.io.watch.watchers中的类
观察者链
用于加入多个观察者
WatcherChain(Watcher...) - 类 的构造器cn.hutool.core.io.watch.watchers.WatcherChain
构造
WatchException - cn.hutool.core.io.watch中的异常错误
监听异常
WatchException(Throwable) - 异常错误 的构造器cn.hutool.core.io.watch.WatchException
 
WatchException(String) - 异常错误 的构造器cn.hutool.core.io.watch.WatchException
 
WatchException(String, Object...) - 异常错误 的构造器cn.hutool.core.io.watch.WatchException
 
WatchException(String, Throwable) - 异常错误 的构造器cn.hutool.core.io.watch.WatchException
 
WatchException(Throwable, String, Object...) - 异常错误 的构造器cn.hutool.core.io.watch.WatchException
 
WatchMonitor - cn.hutool.core.io.watch中的类
路径监听器
监听器可监听目录或文件
如果监听的Path不存在,则递归创建空目录然后监听此空目录
递归监听目录时,并不会监听新创建的目录
WatchMonitor(File, WatchEvent.Kind<?>...) - 类 的构造器cn.hutool.core.io.watch.WatchMonitor
构造
WatchMonitor(String, WatchEvent.Kind<?>...) - 类 的构造器cn.hutool.core.io.watch.WatchMonitor
构造
WatchMonitor(Path, WatchEvent.Kind<?>...) - 类 的构造器cn.hutool.core.io.watch.WatchMonitor
构造
WatchMonitor(Path, int, WatchEvent.Kind<?>...) - 类 的构造器cn.hutool.core.io.watch.WatchMonitor
构造
例如设置: maxDepth <= 1 表示只监听当前目录 maxDepth = 2 表示监听当前目录以及下层目录 maxDepth = 3 表示监听当前目录以及下层
WatchUtil - cn.hutool.core.io.watch中的类
监听工具类
主要负责文件监听器的快捷创建
WatchUtil() - 类 的构造器cn.hutool.core.io.watch.WatchUtil
 
WebAppResource - cn.hutool.core.io.resource中的类
Web root资源访问对象
WebAppResource(String) - 类 的构造器cn.hutool.core.io.resource.WebAppResource
构造
Week - cn.hutool.core.date中的枚举
星期枚举
与Calendar中的星期int值对应
weekCount(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
计算指定指定时间区间内的周数
weekOfMonth() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期是所在月份的第几周
此方法返回值与一周的第一天有关,比如:
2016年1月3日为周日,如果一周的第一天为周日,那这天是第二周(返回2)
如果一周的第一天为周一,那这天是第一周(返回1)
weekOfMonth(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期是所在月份的第几周
weekOfYear() - 类 中的方法cn.hutool.core.date.DateTime
获得指定日期是所在年份的第几周
此方法返回值与一周的第一天有关,比如:
2016年1月3日为周日,如果一周的第一天为周日,那这天是第二周(返回2)
如果一周的第一天为周一,那这天是第一周(返回1)
跨年的那个星期得到的结果总是1
weekOfYear(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期是所在年份的第几周
WeightRandom<T> - cn.hutool.core.lang中的类
权重随机算法实现
平时,经常会遇到权重随机算法,从不同权重的N个元素中随机选择一个,并使得总体选择结果是按照权重分布的。
WeightRandom() - 类 的构造器cn.hutool.core.lang.WeightRandom
构造
WeightRandom(WeightRandom.WeightObj<T>) - 类 的构造器cn.hutool.core.lang.WeightRandom
构造
WeightRandom(Iterable<WeightRandom.WeightObj<T>>) - 类 的构造器cn.hutool.core.lang.WeightRandom
构造
WeightRandom(WeightRandom.WeightObj<T>[]) - 类 的构造器cn.hutool.core.lang.WeightRandom
构造
weightRandom(WeightRandom.WeightObj<T>[]) - 类 中的静态方法cn.hutool.core.util.RandomUtil
带有权重的随机生成器
weightRandom(Iterable<WeightRandom.WeightObj<T>>) - 类 中的静态方法cn.hutool.core.util.RandomUtil
带有权重的随机生成器
WeightRandom.WeightObj<T> - cn.hutool.core.lang中的类
带有权重的对象包装
WeightRandom.WeightObj(T, double) - 类 的构造器cn.hutool.core.lang.WeightRandom.WeightObj
构造
WORD - 类 中的静态变量cn.hutool.core.lang.PatternPool
字母
work() - 类 中的方法cn.hutool.core.thread.SyncFinisher.Worker
 
wrap(Class<?>) - 枚举 中的静态方法cn.hutool.core.convert.BasicType
原始类转为包装类,非原始类返回原类
wrap(Class<?>) - 类 中的静态方法cn.hutool.core.convert.Convert
原始类转为包装类,非原始类返回原类
wrap(Throwable, Class<T>) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
包装一个异常
wrap(int...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(long...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(char...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(byte...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(short...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(float...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(double...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(boolean...) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
将原始类型数组包装为包装类型
wrap(Object) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
包装数组对象
wrap(CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装指定字符串
当前缀和后缀一致时使用此方法
wrap(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装指定字符串
wrapAll(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装多个字符串
wrapAll(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装多个字符串
wrapAllIfMissing(CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装多个字符串,如果已经包装,则不再包装
wrapAllIfMissing(CharSequence, CharSequence, CharSequence...) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装多个字符串,如果已经包装,则不再包装
wrapIfMissing(CharSequence, CharSequence, CharSequence) - 类 中的静态方法cn.hutool.core.util.StrUtil
包装指定字符串,如果前缀或后缀已经包含对应的字符串,则不再包装
wrapperPrimitiveMap - 枚举 中的静态变量cn.hutool.core.convert.BasicType
包装类型为Key,原始类型为Value,例如: Integer.class =》 int.class.
wrapRuntime(Throwable) - 类 中的静态方法cn.hutool.core.exceptions.ExceptionUtil
使用运行时异常包装编译异常
write(OutputStream) - 类 中的方法cn.hutool.core.img.Img
写出图像
write(ImageOutputStream) - 类 中的方法cn.hutool.core.img.Img
写出图像为PNG格式
write(File) - 类 中的方法cn.hutool.core.img.Img
写出图像为目标文件扩展名对应的格式
write(byte[], int, int) - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
 
write(int) - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
 
write(String, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
将String写入文件
write(String) - 类 中的方法cn.hutool.core.io.file.FileWriter
将String写入文件,覆盖模式
write(byte[], int, int) - 类 中的方法cn.hutool.core.io.file.FileWriter
写入数据到文件
write(byte[], int, int, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
写入数据到文件
write(OutputStream, boolean, byte[]) - 类 中的静态方法cn.hutool.core.io.IoUtil
将byte[]写到流中
write(OutputStream, String, boolean, Object...) - 类 中的静态方法cn.hutool.core.io.IoUtil
将多部分内容写到流中,自动转换为字符串
write(OutputStream, Charset, boolean, Object...) - 类 中的静态方法cn.hutool.core.io.IoUtil
将多部分内容写到流中,自动转换为字符串
write(byte[], int, int) - 类 中的方法cn.hutool.core.io.NullOutputStream
什么也不做,写出到/dev/null.
write(int) - 类 中的方法cn.hutool.core.io.NullOutputStream
什么也不做,写出到 /dev/null.
write(byte[]) - 类 中的方法cn.hutool.core.io.NullOutputStream
什么也不做,写出到 /dev/null.
write(String[]...) - 类 中的方法cn.hutool.core.text.csv.CsvWriter
将多行写出到Writer
write(Collection<String[]>) - 类 中的方法cn.hutool.core.text.csv.CsvWriter
将多行写出到Writer
write(Image, String, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像
write(Image, String, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为指定格式
write(Image, File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为目标文件扩展名对应的格式
write(Node, Writer, boolean) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档写出
write(Node, OutputStream, String, boolean) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将XML文档写出
writeBytes(byte[], String) - 类 中的静态方法cn.hutool.core.io.FileUtil
写数据到文件中
writeBytes(byte[], File) - 类 中的静态方法cn.hutool.core.io.FileUtil
写数据到文件中
writeBytes(byte[], File, int, int, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
写入数据到文件
writeFromStream(InputStream) - 类 中的方法cn.hutool.core.io.file.FileWriter
将流的内容写入文件
此方法不会关闭输入流
writeFromStream(InputStream, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
将流的内容写入文件
writeFromStream(InputStream, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将流的内容写入文件
writeJpg(Image, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为JPG格式
writeJpg(Image, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为JPG格式
writeLine() - 类 中的方法cn.hutool.core.text.csv.CsvWriter
追加新行(换行)
writeLines(Collection<T>) - 类 中的方法cn.hutool.core.io.file.FileWriter
将列表写入文件,覆盖模式
writeLines(Collection<T>, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
将列表写入文件
writeLines(Collection<T>, LineSeparator, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
将列表写入文件
writeLines(Collection<T>, String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式
writeLines(Collection<T>, String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式
writeLines(Collection<T>, File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式
writeLines(Collection<T>, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式
writeLines(Collection<T>, String, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件
writeLines(Collection<T>, String, Charset, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件
writeLines(Collection<T>, File, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件
writeLines(Collection<T>, File, Charset, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件
writeMap(Map<?, ?>, String, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
将Map写入文件,每个键值对为一行,一行中键与值之间使用kvSeparator分隔
writeMap(Map<?, ?>, LineSeparator, String, boolean) - 类 中的方法cn.hutool.core.io.file.FileWriter
将Map写入文件,每个键值对为一行,一行中键与值之间使用kvSeparator分隔
writeMap(Map<?, ?>, File, Charset, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将Map写入文件,每个键值对为一行,一行中键与值之间使用kvSeparator分隔
writeObjectAsXml(File, Object) - 类 中的静态方法cn.hutool.core.util.XmlUtil
将可序列化的对象转换为XML写入文件,已经存在的文件将被覆盖
Writes serializable object to a XML file.
writeObjects(OutputStream, boolean, Serializable...) - 类 中的静态方法cn.hutool.core.io.IoUtil
将多部分内容写到流中
writePng(Image, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为PNG格式
writePng(Image, OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
写出图像为PNG格式
writeString(String, String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式
writeString(String, String, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式
writeString(String, File, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式
writeString(String, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式
writeTo(OutputStream) - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
写出
writeToStream(OutputStream) - 类 中的方法cn.hutool.core.io.file.FileReader
将文件写入流中
writeToStream(File, OutputStream) - 类 中的静态方法cn.hutool.core.io.FileUtil
将文件写入流中
writeToStream(String, OutputStream) - 类 中的静态方法cn.hutool.core.io.FileUtil
将流的内容写入文件
writeUtf8(OutputStream, boolean, Object...) - 类 中的静态方法cn.hutool.core.io.IoUtil
将多部分内容写到流中,自动转换为UTF-8字符串
writeUtf8Lines(Collection<T>, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式,编码为UTF-8
writeUtf8Lines(Collection<T>, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
将列表写入文件,覆盖模式,编码为UTF-8
writeUtf8Map(Map<?, ?>, File, String, boolean) - 类 中的静态方法cn.hutool.core.io.FileUtil
将Map写入文件,每个键值对为一行,一行中键与值之间使用kvSeparator分隔
writeUtf8String(String, String) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式,字符集为UTF-8
writeUtf8String(String, File) - 类 中的静态方法cn.hutool.core.io.FileUtil
将String写入文件,覆盖模式,字符集为UTF-8

X

xmlToMap(String) - 类 中的静态方法cn.hutool.core.util.XmlUtil
XML格式字符串转换为Map
xmlToMap(Node) - 类 中的静态方法cn.hutool.core.util.XmlUtil
XML格式字符串转换为Map
xmlToMap(String, Map<String, Object>) - 类 中的静态方法cn.hutool.core.util.XmlUtil
XML格式字符串转换为Map
只支持第一级别的XML,不支持多级XML
xmlToMap(Node, Map<String, Object>) - 类 中的静态方法cn.hutool.core.util.XmlUtil
XML节点转换为Map
XmlUtil - cn.hutool.core.util中的类
XML工具类
此工具使用w3c dom工具,不需要依赖第三方包。
XmlUtil() - 类 的构造器cn.hutool.core.util.XmlUtil
 
xor(boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取异或 BooleanUtil.xor(true, true) = false BooleanUtil.xor(false, false) = false BooleanUtil.xor(true, false) = true BooleanUtil.xor(true, true) = false BooleanUtil.xor(false, false) = false BooleanUtil.xor(true, false) = true
xor(Boolean...) - 类 中的静态方法cn.hutool.core.util.BooleanUtil
对Boolean数组取异或 BooleanUtil.xor(new Boolean[] { Boolean.TRUE, Boolean.TRUE }) = Boolean.FALSE BooleanUtil.xor(new Boolean[] { Boolean.FALSE, Boolean.FALSE }) = Boolean.FALSE BooleanUtil.xor(new Boolean[] { Boolean.TRUE, Boolean.FALSE }) = Boolean.TRUE

Y

year() - 类 中的方法cn.hutool.core.date.DateTime
获得年的部分
year(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得年的部分
yearAndQuarter(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期年份和季节
格式:[20131]表示2013年第一季度
yearAndQuarter(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期区间内的年份和季节
yearAndQuarter(long, long) - 类 中的静态方法cn.hutool.core.date.DateUtil
获得指定日期区间内的年份和季节
yearAndSeason(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
已过时。
yearAndSeasons(Date, Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
已过时。
yesterday() - 类 中的静态方法cn.hutool.core.date.DateUtil
昨天

Z

zero2One(int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
如果给定值为0,返回1,否则返回原值
zip(String, String, String, boolean) - 类 中的静态方法cn.hutool.core.collection.CollUtil
映射键值(参考Python的zip()函数)
例如:
keys = a,b,c,d
values = 1,2,3,4
delimiter = , 则得到的Map是 {a=1, b=2, c=3, d=4}
如果两个数组长度不同,则只对应最短部分
zip(String, String, String) - 类 中的静态方法cn.hutool.core.collection.CollUtil
映射键值(参考Python的zip()函数),返回Map无序
例如:
keys = a,b,c,d
values = 1,2,3,4
delimiter = , 则得到的Map是 {a=1, b=2, c=3, d=4}
如果两个数组长度不同,则只对应最短部分
zip(Collection<K>, Collection<V>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
映射键值(参考Python的zip()函数)
例如:
keys = [a,b,c,d]
values = [1,2,3,4]
则得到的Map是 {a=1, b=2, c=3, d=4}
如果两个数组长度不同,则只对应最短部分
zip(K[], V[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
映射键值(参考Python的zip()函数)
例如:
keys = [a,b,c,d]
values = [1,2,3,4]
则得到的Map是 {a=1, b=2, c=3, d=4}
如果两个数组长度不同,则只对应最短部分
zip(K[], V[]) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
映射键值(参考Python的zip()函数),返回Map无序
例如:
keys = [a,b,c,d]
values = [1,2,3,4]
则得到的Map是 {a=1, b=2, c=3, d=4}
如果两个数组长度不同,则只对应最短部分
zip(String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
打包到当前目录,使用默认编码UTF-8
zip(String, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
打包到当前目录
zip(File) - 类 中的静态方法cn.hutool.core.util.ZipUtil
打包到当前目录,使用默认编码UTF-8
zip(File, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
打包到当前目录
zip(String, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对文件或文件目录进行压缩
不包含被打包目录
zip(String, String, boolean) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对文件或文件目录进行压缩
zip(String, String, Charset, boolean) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对文件或文件目录进行压缩
zip(File, boolean, File...) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对文件或文件目录进行压缩
使用默认UTF-8编码
zip(File, Charset, boolean, File...) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对文件或文件目录进行压缩
zip(File, String, String) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件,使用默认UTF-8编码
zip(File, String, String, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件
zip(File, String, InputStream) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件
使用默认编码UTF-8
zip(File, String, InputStream, Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件
zip(File, String[], InputStream[]) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件
路径列表和流列表长度必须一致
zip(File, String[], InputStream[], Charset) - 类 中的静态方法cn.hutool.core.util.ZipUtil
对流中的数据加入到压缩文件
路径列表和流列表长度必须一致
ZIP_CODE - 类 中的静态变量cn.hutool.core.lang.PatternPool
邮编
ZIP_CODE - 类 中的静态变量cn.hutool.core.lang.Validator
邮编
ZipUtil - cn.hutool.core.util中的类
压缩工具类
ZipUtil() - 类 的构造器cn.hutool.core.util.ZipUtil
 
zlib(String, String, int) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Zlib压缩处理
zlib(File, int) - 类 中的静态方法cn.hutool.core.util.ZipUtil
Zlib压缩文件
zlib(byte[], int) - 类 中的静态方法cn.hutool.core.util.ZipUtil
打成Zlib压缩包
zobrist(char[], int, int[][]) - 类 中的静态方法cn.hutool.core.util.HashUtil
Zobrist Hashing
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 

Copyright © 2018. All rights reserved.