- 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
-
- 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
-
- 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_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中的类
-
- 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.lang.SyncFinisher
-
清空工作线程对象
- ClipboardUtil - cn.hutool.core.swing中的类
-
系统剪贴板工具类
- ClipboardUtil() - 类 的构造器cn.hutool.core.swing.ClipboardUtil
-
- ClipboardUtil.ImageSelection - cn.hutool.core.swing中的类
-
- 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
-
- 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中的类
-
- CollectionUtil() - 类 的构造器cn.hutool.core.collection.CollectionUtil
-
- CollUtil - cn.hutool.core.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 Comparable<? super E>> - cn.hutool.core.comparator中的类
-
- ComparableComparator() - 类 的构造器cn.hutool.core.comparator.ComparableComparator
-
构造
- ComparatorChain<E> - cn.hutool.core.comparator中的类
-
比较器链。
- ComparatorChain() - 类 的构造器cn.hutool.core.comparator.ComparatorChain
-
- 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
-
- compare(E, E) - 类 中的方法cn.hutool.core.comparator.ComparatorChain
-
执行比较
按照比较器链的顺序分别比较,如果比较出相等则转向下一个比较器,否则直接返回
- 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 比较。
- 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中的类
-
- 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中的类
-
- 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
-
- contentEquals(Reader, Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
-
- contentEqualsIgnoreEOL(File, File, Charset) - 类 中的静态方法cn.hutool.core.io.FileUtil
-
比较两个文件内容是否相同
首先比较长度,长度一致再比较内容,比较内容采用按行读取,每行比较
此方法来自Apache Commons io
- contentEqualsIgnoreEOL(Reader, Reader) - 类 中的静态方法cn.hutool.core.io.IoUtil
-
- 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
-
图像类型转换:GIF=》JPG、GIF=》PNG、PNG=》JPG、PNG=》GIF(X)、BMP=》PNG
此方法并不关闭流
- convert(Image, String, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
图像类型转换:GIF=》JPG、GIF=》PNG、PNG=》JPG、PNG=》GIF(X)、BMP=》PNG
此方法并不关闭流
- 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
-
- 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
-
- copy(Object, Object, int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- 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
-
- copyFile(File, File, StandardCopyOption...) - 类 中的静态方法cn.hutool.core.io.FileUtil
-
- copyFile(Path, Path, StandardCopyOption...) - 类 中的静态方法cn.hutool.core.io.FileUtil
-
- 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() - 类 中的方法cn.hutool.core.lang.SyncFinisher
-
- 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(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
-
- create(Class<?>, Object...) - 类 中的静态方法cn.hutool.core.bean.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
-
- create(File, Charset) - 类 中的静态方法cn.hutool.core.io.file.FileWriter
-
创建 FileWriter
- create(File) - 类 中的静态方法cn.hutool.core.io.file.FileWriter
-
- create(Watcher...) - 类 中的静态方法cn.hutool.core.io.watch.watchers.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
-
- 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
-
- createFont(InputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- createGraphics(BufferedImage, Color) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- createImage(String, Font, Color, Color, ImageOutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
根据文字创建PNG图片
- createMap(Class<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
-
- createMap(Class<?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
-
- createProxy(Map<?, ?>) - 类 中的静态方法cn.hutool.core.map.MapUtil
-
- 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中的类
-
- 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(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(CharSequence, int) - 类 中的静态方法cn.hutool.core.util.StrUtil
-
将字符串切分为N等份
- DASHED - 类 中的静态变量cn.hutool.core.util.CharUtil
-
- DASHED - 类 中的静态变量cn.hutool.core.util.StrUtil
-
- date() - 类 中的静态方法cn.hutool.core.date.DateUtil
-
- date(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
-
- date(long) - 类 中的静态方法cn.hutool.core.date.DateUtil
-
Long类型时间转为
DateTime
只支持毫秒级别时间戳,如果需要秒级别时间戳,请自行×1000
- date(Calendar) - 类 中的静态方法cn.hutool.core.date.DateUtil
-
- 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
-
- decimalFormat(String, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- 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
-
构造
- 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
-
- encodeColor(Color, String) - 类 中的静态方法cn.hutool.core.util.HexUtil
-
- 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中的类
-
- 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
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableByte
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableDouble
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableFloat
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableInt
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableLong
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.MutableObj
-
- equals(Object) - 类 中的方法cn.hutool.core.lang.mutable.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
-
- 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) 替换为 &
< (小于) 替换为 <
> (大于) 替换为 >
" (双引号) 替换为 "
- 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中的类
-
- 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 (.*?)
- factorial(long, long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
计算阶乘
n!
- factorial(long) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
计算阶乘
n!
- FastByteArrayOutputStream - cn.hutool.core.io中的类
-
- 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(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
-
- FileReader(String) - 类 的构造器cn.hutool.core.io.file.FileReader
-
- 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
-
- FileWriter(String) - 类 的构造器cn.hutool.core.io.file.FileWriter
-
- 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
-
- 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
-
- forEach(Enumeration<T>, CollUtil.Consumer<T>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
-
- forEach(Map<K, V>, CollUtil.KVConsumer<K, V>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
-
- 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
-
- fromString(Class<T>, String) - 类 中的静态方法cn.hutool.core.util.EnumUtil
-
- FULL - 类 中的静态变量cn.hutool.core.date.format.FastDateFormat
-
FULL locale dependent date or time style.
- Func<P,R> - cn.hutool.core.lang中的接口
-
函数对象
接口灵感来自于
ActFramework
一个函数接口代表一个一个函数,用于包装一个函数为对象
在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象
- 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 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
-
- getBeanDesc(Class<?>) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
-
- 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
-
- getCaller() - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
-
获得调用者
- getCaller(int) - 类 中的静态方法cn.hutool.core.lang.caller.CallerUtil
-
- getCaller() - 类 中的方法cn.hutool.core.lang.caller.ReflectionCaller
-
- getCaller(int) - 类 中的方法cn.hutool.core.lang.caller.ReflectionCaller
-
- 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.ReflectionCaller
-
- 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
-
- getClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
-
- getClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassUtil
-
- 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
-
- getContextClassLoader() - 类 中的静态方法cn.hutool.core.util.ClassUtil
-
- 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
-
- getDateInstance(int) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateInstance(int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateInstance(int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateInstance(int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateTimeInstance(int, int) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateTimeInstance(int, int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateTimeInstance(int, int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getDateTimeInstance(int, int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.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
-
- getElementType(Iterator<?>) - 类 中的静态方法cn.hutool.core.collection.CollUtil
-
- 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
-
- 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
-
获得一个类中所有字段列表,直接反射获取,无缓存
- 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
-
- getImageOutputStream(OutputStream) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- getImageOutputStream(File) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- 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
-
- getInstance() - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getInstance(String) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getInstance(String, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getInstance(String, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getInstance(String, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.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
-
- getLocalhostStr() - 类 中的静态方法cn.hutool.core.util.NetUtil
-
- 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
-
- 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
-
- getPropertyDescriptorMap(Class<?>, boolean) - 类 中的静态方法cn.hutool.core.bean.BeanUtil
-
- 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
-
- getRandom() - 类 中的静态方法cn.hutool.core.util.RandomUtil
-
获取随机数生成器对象
ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- getStream(String) - 类 中的静态方法cn.hutool.core.io.resource.ResourceUtil
-
- 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
-
- 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
-
- getTimeInstance(int, Locale) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getTimeInstance(int, TimeZone) - 类 中的静态方法cn.hutool.core.date.format.FastDateFormat
-
- getTimeInstance(int, TimeZone, Locale) - 类 中的静态方法cn.hutool.core.date.format.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
-
- 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
-
- 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
-
- 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
-
- 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压缩文件
- 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
-
- indexOf(long[], long) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(int[], int) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(short[], short) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(char[], char) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(byte[], byte) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(double[], double) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(float[], float) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- indexOf(boolean[], boolean) - 类 中的静态方法cn.hutool.core.util.ArrayUtil
-
- 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
-
- 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
-
- 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中的类
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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);
- 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
-
- 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
-
- isNull(Object) - 类 中的静态方法cn.hutool.core.lang.Assert
-
- 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
-
- isPresent(String, ClassLoader) - 类 中的静态方法cn.hutool.core.util.ClassLoaderUtil
-
- 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");
- 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中的类
-
- IteratorEnumeration(Iterator<E>) - 类 的构造器cn.hutool.core.collection.IteratorEnumeration
-
构造
- IterUtil - cn.hutool.core.collection中的类
-
- IterUtil() - 类 的构造器cn.hutool.core.collection.IterUtil
-
- 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(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
-
- 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中的类
-
- ReferenceConverter(Class<? extends Reference>) - 类 的构造器cn.hutool.core.convert.impl.ReferenceConverter
-
构造
- ReferenceUtil - cn.hutool.core.util中的类
-
- ReferenceUtil() - 类 的构造器cn.hutool.core.util.ReferenceUtil
-
- ReferenceUtil.ReferenceType - cn.hutool.core.util中的枚举
-
引用类型
- ReflectionCaller - cn.hutool.core.lang.caller中的类
-
通过sun.reflect.Reflection 获取调用者
- ReflectionCaller() - 类 的构造器cn.hutool.core.lang.caller.ReflectionCaller
-
- 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
-
- 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中的类
-
- 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中的类
-
- 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
-
- round(String, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- round(BigDecimal, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- 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
-
- roundStr(String, int) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- 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.lang.SyncFinisher.Worker
-
- RuntimeUtil - cn.hutool.core.util中的类
-
系统运行时工具类,用于执行系统命令的工具
- RuntimeUtil() - 类 的构造器cn.hutool.core.util.RuntimeUtil
-
- safeGet(String) - 类 中的方法cn.hutool.core.bean.DynaBean
-
获得字段对应值,获取异常返回null
- safeSleep(Number) - 类 中的静态方法cn.hutool.core.thread.ThreadUtil
-
- 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
-
- 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
-
- season(Date) - 类 中的静态方法cn.hutool.core.date.DateUtil
-
- Season - cn.hutool.core.date中的枚举
-
- seasonEnum() - 类 中的方法cn.hutool.core.date.DateTime
-
- 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中的类
-
- 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
-
- setField(int, int) - 类 中的方法cn.hutool.core.date.DateTime
-
- 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
-
- 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
-
- 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
-
设置是否覆盖目标文件
- 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
-
- 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中的类
-
- 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
-
- 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
-
- src - 类 中的变量cn.hutool.core.lang.copier.SrcToDestCopier
-
源
- SrcToDestCopier<T,C extends SrcToDestCopier<T,C>> - cn.hutool.core.lang.copier中的类
-
- 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.lang.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
-
- 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"
- 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"
- 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.lang中的类
-
线程同步结束器
在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待。
- SyncFinisher() - 类 的构造器cn.hutool.core.lang.SyncFinisher
-
- SyncFinisher.Worker - cn.hutool.core.lang中的类
-
工作者,为一个线程
- SyncFinisher.Worker() - 类 的构造器cn.hutool.core.lang.SyncFinisher.Worker
-
- systemCharset() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
-
- systemCharsetName() - 类 中的静态方法cn.hutool.core.util.CharsetUtil
-
- SystemClock - cn.hutool.core.date中的类
-
系统时钟
高并发场景下System.currentTimeMillis()的性能问题的优化
System.currentTimeMillis()的调用比new一个普通对象要耗时的多(具体耗时高出多少我还没测试过,有人说是100倍左右)
System.currentTimeMillis()之所以慢是因为去跟系统打了一次交道
后台定时更新时钟,JVM退出时,线程自动回收
see: http://git.oschina.net/yu120/sequence
- 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
-
时间格式字符串转为秒数
参考: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
-
- 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
-
- toBigDecimal(String) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- 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
转换失败不会报错
- toBooleanArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为Boolean数组
- toBuffered(InputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
-
- toBuffered(OutputStream) - 类 中的静态方法cn.hutool.core.io.IoUtil
-
- toBufferedImage(Image) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- toByte(Object, Byte) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为byte
如果给定的值为null,或者转换失败,返回默认值
转换失败不会报错
- toByte(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为byte
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
- toByteArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为Byte数组
- toByteArray() - 类 中的方法cn.hutool.core.io.FastByteArrayOutputStream
-
转为Byte数组
- toCalendar() - 类 中的方法cn.hutool.core.date.DateTime
-
- 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
转换失败不会报错
- 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
-
- 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
转换失败不会报错
- toDoubleArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为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
转换失败不会报错
- toFloatArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为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
-
- toImage(byte[]) - 类 中的静态方法cn.hutool.core.util.ImageUtil
-
- toInt(Object, Integer) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为int
如果给定的值为空,或者转换失败,返回默认值
转换失败不会报错
- toInt(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为int
如果给定的值为null,或者转换失败,返回默认值null
转换失败不会报错
- toIntArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为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
转换失败不会报错
- toLongArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为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
-
- 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
-
- 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
转换失败不会报错
- toShortArray(Object) - 类 中的静态方法cn.hutool.core.convert.Convert
-
转换为Short数组
- toSqlDate() - 类 中的方法cn.hutool.core.date.DateTime
-
- 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
-
- toStr(Number) - 类 中的静态方法cn.hutool.core.util.NumberUtil
-
- 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(char) - 类 中的静态方法cn.hutool.core.util.CharUtil
-
字符转为字符串
如果为ASCII字符,使用缓存
- toString(Enum<?>) - 类 中的静态方法cn.hutool.core.util.EnumUtil
-
- 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 " 格式字符串
时区使用当前地区的默认时区
- 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
-
- 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
-