Index

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

abbreviate(CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
截断字符串:超过 maxWidth 时保留前 maxWidth-3 个字符并以 ... 结尾。
abbreviate(CharSequence, int, int) - Static method in class com.sure.tool.util.StrUtil
截断字符串:从指定偏移开始,超过 maxWidth 时以 ... 结尾。
abbreviateMiddle(CharSequence, String, int) - Static method in class com.sure.tool.util.StrUtil
中间省略:保留首尾字符,中间以指定省略串连接(参考 commons-lang StringUtils.abbreviateMiddle)。
AbstractCaptcha - Class in com.sure.tool.captcha
图形验证码抽象基类:随机字符生成、背景与字符绘制,干扰由子类实现,参考 Hutool 的 AbstractCaptcha 设计。
AbstractCaptcha(int, int, int, int) - Constructor for class com.sure.tool.captcha.AbstractCaptcha
创建验证码。
accept(Path) - Method in interface com.sure.tool.io.PathFilter
是否接受该事件路径。
acquire() - Method in class com.sure.tool.thread.RateLimiter
阻塞等待直到获得许可(可被中断)。
acquire(int) - Method in class com.sure.tool.thread.RateLimiter
阻塞等待直到获得指定数量许可(可被中断)。
Actor<T> - Class in com.sure.tool.thread
轻量 Actor 模型:消息驱动的并发单元,Hutool / Guava / Apache Commons 三家均无的独占能力。
add(double, double) - Static method in class com.sure.tool.util.NumberUtil
加法(基于 BigDecimal,避免浮点误差)。
add(long, long) - Static method in class com.sure.tool.util.NumberUtil
long 加法(溢出时抛出 ArithmeticException)。
add(E) - Method in class com.sure.tool.fluent.FluentList
追加一个元素。
add(String, String) - Method in class com.sure.tool.http.CookieStore
解析并保存一个 Set-Cookie 响应头(支持逗号分隔多 cookie 的常见形式)。
add(String, HttpCookie) - Method in class com.sure.tool.http.CookieStore
直接添加一个 Cookie。
add(T) - Method in class com.sure.tool.collection.Multiset
添加一个元素,计数 +1。
add(T, double) - Method in class com.sure.tool.lang.WeightRandom
添加权重项。
add(T, int) - Method in class com.sure.tool.collection.Multiset
批量添加元素,计数 +occurrences。
add(T, T) - Method in class com.sure.tool.collection.RangeSet
添加左闭右开区间 [lower, upper),自动合并重叠与首尾相接区间。
addAll(Collection) - Method in class com.sure.tool.fluent.FluentList
追加一批元素。
addAll(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
将 source 全部追加到 target 并返回 target。
addAllAndReturn(Collection) - Method in class com.sure.tool.collection.BoundedPriorityQueue
批量加入并返回自身。
addAllDistinct(Collection, Iterable) - Static method in class com.sure.tool.collection.CollUtil
原地去重合并:将 source 中 target 尚不存在的元素追加到 target 末尾(保 source 顺序)。
addChild(TreeNode) - Method in class com.sure.tool.collection.TreeNode
添加子节点。
addEdge(V, V) - Method in class com.sure.tool.graph.DiGraph
添加有向边(源 → 目标),两端顶点自动补齐。
address(String) - Static method in class com.sure.tool.util.DesensitizedUtil
地址脱敏:保留头部和尾部各三分之一,中间用 **** 代替。
addStopWord(String) - Static method in class com.sure.tool.dfa.DfaUtil
添加停用词(默认词库)。
addStopWord(String) - Method in class com.sure.tool.dfa.WordTree
添加停用词:匹配敏感词过程中自动跳过(自动去除首尾空白,null/空词忽略)。
addStopWords(Collection) - Method in class com.sure.tool.dfa.WordTree
批量添加停用词。
addVertex(V) - Method in class com.sure.tool.graph.DiGraph
添加顶点。
addVertexIfAbsent(V) - Method in class com.sure.tool.graph.DiGraph
添加顶点(已存在时忽略)。
addWord(String) - Static method in class com.sure.tool.dfa.DfaUtil
添加敏感词(默认词库)。
addWord(String) - Method in class com.sure.tool.dfa.WordTree
添加敏感词(自动去除首尾空白,null/空词忽略)。
addWords(File, Charset) - Method in class com.sure.tool.dfa.WordTree
从文件加载敏感词(每行一个词,跳过空行)。
addWords(String...) - Static method in class com.sure.tool.dfa.DfaUtil
批量添加敏感词(默认词库)。
addWords(String...) - Method in class com.sure.tool.dfa.WordTree
批量添加敏感词。
addWords(Collection) - Static method in class com.sure.tool.dfa.DfaUtil
批量添加敏感词(默认词库)。
addWords(Collection) - Method in class com.sure.tool.dfa.WordTree
批量添加敏感词。
addWorker(SyncFinisher.Worker) - Method in class com.sure.tool.thread.SyncFinisher
添加任务。
adjacentNodes(V) - Method in class com.sure.tool.graph.DiGraph
邻接顶点集合(后继 ∪ 前驱)。
aesDecryptBase64(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
AES 解密 Base64 密文。
aesDecryptHex(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
AES 解密十六进制密文。
aesEncryptBase64(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
AES 加密为 Base64。
aesEncryptHex(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
AES 加密为十六进制。
AesUtil - Class in com.sure.tool.crypto
AES 加解密工具类(AES/GCM/NoPadding,认证加密),无状态静态方法、线程安全,参考 Hutool 的 Aes 设计。
age(Date) - Static method in class com.sure.tool.date.DateUtil
计算周岁年龄。
age(Date, Date) - Static method in class com.sure.tool.date.DateUtil
计算周岁年龄(指定参考日期)。
ALG_HS256 - Static variable in class com.sure.tool.jwt.JWT
HS256 算法名。
ALG_HS384 - Static variable in class com.sure.tool.jwt.JWT
HS384 算法名。
ALG_HS512 - Static variable in class com.sure.tool.jwt.JWT
HS512 算法名。
ALG_RS256 - Static variable in class com.sure.tool.jwt.JWT
RS256 算法名。
allOf(Result...) - Static method in class com.sure.tool.lang.Results
全部成功聚合:任一失败返回携带首个错误信息的失败 Result。
allOf(Callable...) - Static method in class com.sure.tool.thread.AsyncUtil
并行全部完成(失败取消其余并传播首个异常,等价结构化并发语义)。
and(boolean...) - Static method in class com.sure.tool.util.BooleanUtil
多个布尔值求与。
anyOf(Result...) - Static method in class com.sure.tool.lang.Results
首个成功聚合:任一成功即返回;全部失败携带最后一个错误。
anyOf(Duration, Callable...) - Static method in class com.sure.tool.thread.StructuredTaskUtil
限时并发执行全部任务,返回第一个成功的结果(varargs 便捷重载); 超时或全部失败均抛出 RuntimeException。
anyOf(Collection, Duration) - Static method in class com.sure.tool.thread.StructuredTaskUtil
 
anyOf(Callable...) - Static method in class com.sure.tool.thread.AsyncUtil
首个成功即返回(其余任务被取消)。
anyOf(Callable...) - Static method in class com.sure.tool.thread.StructuredTaskUtil
 
append(Object) - Method in class com.sure.tool.collection.StrJoiner
追加值(null 跳过)。
append(Object, Object...) - Static method in class com.sure.tool.util.ArrayUtil
追加元素(返回新数组)。
appendAll(Iterable) - Method in class com.sure.tool.collection.StrJoiner
追加可迭代集合。
appendAll(Object...) - Method in class com.sure.tool.collection.StrJoiner
追加数组(null 元素跳过)。
appendParams(String, Map) - Static method in class com.sure.tool.util.UrlUtil
拼接查询参数到 URL。
appendString(String, File, Charset) - Static method in class com.sure.tool.io.FileUtil
按指定字符集追加写入字符串。
appendUtf8String(String, File) - Static method in class com.sure.tool.io.FileUtil
按 UTF-8 追加写入字符串。
applyIfNotNull(T, Function) - Static method in class com.sure.tool.lang.NullUtil
值非 null 时安全应用映射,返回 Option(仅短路显式 null; 映射函数内部异常——含 NPE——正常传播,便于定位调用方 bug)。
applyShear(Graphics2D) - Method in class com.sure.tool.captcha.AbstractCaptcha
错切变换钩子,默认不变换,ShearCaptcha 覆盖。
applyShear(Graphics2D) - Method in class com.sure.tool.captcha.ShearCaptcha
 
ArrayUtil - Class in com.sure.tool.util
数组工具类。
Ascii85Util - Class in com.sure.tool.codec
Ascii85(Base85)编解码工具,参考 Apache Commons Codec 的 Ascii85 设计。
asIterator(Enumeration) - Static method in class com.sure.tool.collection.IterUtil
将 Enumeration 转为迭代器。
asMap() - Method in class com.sure.tool.collection.BiMap
正向视图(键→值)。
asMap() - Method in class com.sure.tool.collection.MultiMap
转为普通 Map 视图(值为只读列表)。
asMap(Set, Function) - Static method in class com.sure.tool.collection.MapUtil
集合→映射视图(对齐 Guava Maps.asMap)。
Assert - Class in com.sure.tool.lang
断言工具类,参考 Hutool 的 Assert 与 Spring 的 Assert 设计。
AsyncUtil - Class in com.sure.tool.thread
虚拟线程一等公民的异步门面。
average(List) - Static method in class com.sure.tool.collection.ListUtil
数值均值(null 元素跳过;空或全 null 返回 0.0)。
await() - Method in class com.sure.tool.thread.SyncFinisher
等待全部任务完成,若存在任务异常则抛出。
await(Duration, Future) - Static method in class com.sure.tool.thread.AsyncUtil
限时等待 Future 并解包 ExecutionException(保留原始 cause)。

B

bankCard(String) - Static method in class com.sure.tool.util.DesensitizedUtil
银行卡号脱敏:保留前 4 位和后 4 位,如 6222 **** **** 1234 风格的 6222**********1234。
BankCardUtil - Class in com.sure.tool.util
银行卡号工具:Luhn 校验、掩码,零依赖。
BASE_CHAR - Static variable in class com.sure.tool.captcha.AbstractCaptcha
字符池:剔除易混淆的 0/O/1/l/I。
BASE_CHAR - Static variable in class com.sure.tool.util.RandomUtil
英文字符集
BASE_CHAR_NUMBER - Static variable in class com.sure.tool.util.RandomUtil
字母数字字符集
BASE_NUMBER - Static variable in class com.sure.tool.util.RandomUtil
数字字符集
Base32Util - Class in com.sure.tool.codec
Base32 编解码工具,参考 Apache Commons Codec 的 Base32 设计。
Base58Util - Class in com.sure.tool.codec
Base58 编解码工具,使用 Bitcoin 字母表 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz。
Base62Util - Class in com.sure.tool.codec
Base62 编解码工具,字母表为 0-9A-Za-z。
Base64Util - Class in com.sure.tool.codec
Base64 编解码工具类,参考 Hutool 的 Base64 设计。
BCryptUtil - Class in com.sure.tool.crypto
BCrypt 密码哈希工具,实现 OpenBSD bcrypt(EksBlowfish)方案。
BeanCopier - Class in com.sure.tool.bean
属性拷贝门面:在 BeanUtil 之上提供选项化与链式 API。
BeanCopier.Copier - Class in com.sure.tool.bean
链式拷贝器:可组合忽略策略与字段白名单/黑名单。
BeanDesc - Class in com.sure.tool.bean
Bean 描述,扫描并缓存类的属性(getter/setter/字段),参考 Hutool 的 BeanDesc 设计。
BeanDesc(Class) - Constructor for class com.sure.tool.bean.BeanDesc
创建 Bean 描述并扫描属性。
beanToMap(Object) - Static method in class com.sure.tool.bean.BeanUtil
Bean 转 Map(不忽略 null 值)。
beanToMap(Object, boolean) - Static method in class com.sure.tool.bean.BeanUtil
Bean 转 Map。
BeanUtil - Class in com.sure.tool.bean
Bean 属性操作工具类:属性拷贝、Bean/Map 互转、属性读写,参考 Hutool 的 BeanUtil 设计。
beginOfDay(Date) - Static method in class com.sure.tool.date.DateUtil
当天开始时间(00:00:00.000)。
beginOfHour(Date) - Static method in class com.sure.tool.date.DateUtil
当前小时开始时间。
beginOfMinute(Date) - Static method in class com.sure.tool.date.DateUtil
获取某时刻所在分钟的开始(秒和毫秒归零)。
beginOfMonth(Date) - Static method in class com.sure.tool.date.DateUtil
当月开始时间(1 日 00:00:00.000)。
beginOfQuarter(Date) - Static method in class com.sure.tool.date.DateUtil
获取季度开始时间(当季第 1 天 00:00:00)。
beginOfSecond(Date) - Static method in class com.sure.tool.date.DateUtil
获取某时刻所在秒的开始(毫秒归零)。
beginOfWeek(Date) - Static method in class com.sure.tool.date.DateUtil
一天开始(周一为一周第一天,00:00:00.000)。
beginOfYear(Date) - Static method in class com.sure.tool.date.DateUtil
年初(1 月 1 日 00:00:00.000)。
between(Date, Date, DateUnit) - Static method in class com.sure.tool.date.DateUtil
两个日期之间的时间差。
betweenMs(Date, Date) - Static method in class com.sure.tool.date.DateUtil
两个日期的毫秒差(end - start)。
betweenSeconds(Date, Date) - Static method in class com.sure.tool.date.DateUtil
两个日期的秒差(end - start,向下取整)。
bfs(DiGraph, V) - Static method in class com.sure.tool.graph.GraphUtil
广度优先遍历(从起点开始,按邻接表顺序)。
BiMap<K,V> - Class in com.sure.tool.collection
双向映射:键值互查,参考 Guava BiMap 与 Hutool BiMap 设计。
BiMap() - Constructor for class com.sure.tool.collection.BiMap
创建空双向映射。
BiMap(Map) - Constructor for class com.sure.tool.collection.BiMap
从已有 Map 创建双向映射。
binarySearch(List, T, Comparator) - Static method in class com.sure.tool.util.SearchUtil
二分查找:语义与 Collections.binarySearch(List, T) 一致(命中返回下标, 未命中返回 -(insertionPoint) - 1),额外支持空列表与 null key 返回 -1。
bitSize() - Method in class com.sure.tool.collection.BloomFilterUtil
位数组大小(m)。
BitUtil - Class in com.sure.tool.util
位操作工具类:单个位读写与整数位范围提取,零依赖。
blankToDefault(CharSequence, String) - Static method in class com.sure.tool.util.StrUtil
空白字符串使用默认值替换。
blankToDefault(String, String) - Static method in class com.sure.tool.util.StrUtil
空字符串(含空白)返回默认值,否则原样返回。
BloomFilterUtil - Class in com.sure.tool.collection
布隆过滤器:空间高效的概率集合判重,零依赖。
BloomFilterUtil(int, double) - Constructor for class com.sure.tool.collection.BloomFilterUtil
构造布隆过滤器。
body() - Method in class com.sure.tool.http.HttpResponse
响应体文本(按 HttpResponse.getCharset() 解码)。
body(byte[]) - Method in class com.sure.tool.http.HttpRequest
设置请求体(字节,默认 Content-Type 为 application/octet-stream)。
body(byte[], String) - Method in class com.sure.tool.http.HttpRequest
设置请求体(字节 + 显式 Content-Type)。
body(String) - Method in class com.sure.tool.http.HttpRequest
设置请求体(文本,默认 Content-Type 为 application/json;与 form 同时设置时 body 优先)。
body(String, String) - Method in class com.sure.tool.http.HttpRequest
设置请求体(文本 + 显式 Content-Type)。
bodyBytes() - Method in class com.sure.tool.http.HttpResponse
响应体字节(防御性拷贝)。
BooleanUtil - Class in com.sure.tool.util
布尔工具类,参考 Hutool 的 BooleanUtil 设计。
BoundedPriorityQueue<E> - Class in com.sure.tool.collection
有界优先队列:容量固定,超出容量时自动淘汰「最不重要」的元素(依据比较器),零依赖。
BoundedPriorityQueue(int) - Constructor for class com.sure.tool.collection.BoundedPriorityQueue
构造(自然序,元素须实现 Comparable)。
BoundedPriorityQueue(int, Comparator) - Constructor for class com.sure.tool.collection.BoundedPriorityQueue
构造。
build() - Method in class com.sure.tool.collection.MapUtil.MapBuilder
构建 Map(拷贝,防外部修改内部状态)。
build() - Method in class com.sure.tool.http.HttpClientBuilder
构建 HttpClient(连接池/keep-alive 由 JDK 管理)。
build() - Method in class com.sure.tool.thread.ExecutorBuilder
构建线程池。
build(boolean) - Method in class com.sure.tool.collection.MapUtil.MapBuilder
构建 Map。
build(List, T) - Static method in class com.sure.tool.collection.TreeUtil
从扁平节点列表构建森林(parentId 为 null 或等于 rootId 的节点作为根)。
builder() - Static method in class com.sure.tool.collection.MapUtil
创建 Map 链式构建器(默认 LinkedHashMap 保持插入顺序)。
builder() - Static method in class com.sure.tool.http.HttpClientBuilder
创建构建器。
buildTree(List, T) - Static method in class com.sure.tool.collection.TreeUtil
构建单根树(多个根时返回第一个)。
buildUrl(String, Map) - Static method in class com.sure.tool.http.URLUtil
拼接 URL 与参数(值会 URL 编码),自动处理已有 query。
bytes(CharSequence, Charset) - Static method in class com.sure.tool.util.StrUtil
字符串转字节数组。
bytesToInt(byte[]) - Static method in class com.sure.tool.util.BytesUtil
4 字节转 int(大端)。
bytesToLong(byte[]) - Static method in class com.sure.tool.util.BytesUtil
8 字节转 long(大端)。
bytesToShort(byte[]) - Static method in class com.sure.tool.util.BytesUtil
2 字节转 short(大端)。
BytesUtil - Class in com.sure.tool.util
字节数组工具类:基础类型与字节互转、拼接、切片、反转、十六进制,零依赖。

C

Cache<K,V> - Interface in com.sure.tool.cache
缓存接口,参考 Hutool 的 Cache 设计。
CacheUtil - Class in com.sure.tool.cache
缓存门面:快速创建各种策略缓存,参考 Hutool 的 CacheUtil 设计。
CaesarUtil - Class in com.sure.tool.codec
凯撒密码编解码工具。
calculateCheckCode(String) - Static method in class com.sure.tool.util.IdcardUtil
根据前 17 位计算校验码。
capacity() - Method in class com.sure.tool.collection.BoundedPriorityQueue
容量。
Captcha - Interface in com.sure.tool.captcha
验证码接口,参考 Hutool 的 Captcha 设计。
CaptchaUtil - Class in com.sure.tool.captcha
验证码工厂,参考 Hutool 的 CaptchaUtil 设计。
carLicense(String) - Static method in class com.sure.tool.util.DesensitizedUtil
脱敏车牌号:保留省份汉字与首字母,隐藏中间 4 位,保留末位。
cartesianProduct(Collection) - Static method in class com.sure.tool.collection.CollUtil
任意维度笛卡尔积(对齐 Guava Sets.cartesianProduct)。
cartesianProduct(List) - Static method in class com.sure.tool.collection.ListUtil
任意维度笛卡尔积(对齐 Guava Lists.cartesianProduct)。
cartesianProduct(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
笛卡尔积:左元素序 × 右元素序的二元组列表。
CaseInsensitiveMap<K,V> - Class in com.sure.tool.collection
大小写不敏感的 Map,继承 LinkedHashMap 保持插入顺序,参考 Hutool 的 CaseInsensitiveMap 设计。
CaseInsensitiveMap() - Constructor for class com.sure.tool.collection.CaseInsensitiveMap
创建空 Map。
CaseInsensitiveMap(int) - Constructor for class com.sure.tool.collection.CaseInsensitiveMap
创建带初始容量的 Map。
CaseInsensitiveMap(Map) - Constructor for class com.sure.tool.collection.CaseInsensitiveMap
从既有 Map 创建(键冲突时后者覆盖)。
ceil(double) - Static method in class com.sure.tool.util.NumberUtil
向上取整。
ceiling(Date, int) - Static method in class com.sure.tool.date.DateUtil
进位到指定 Calendar 字段(字段本身保留,更小字段清零并向上进位)。
center(String, int, char) - Static method in class com.sure.tool.util.StrUtil
将字符串居中对齐,两侧以指定字符填充。
center(String, int, String) - Static method in class com.sure.tool.util.StrUtil
将字符串居中对齐,两侧以指定字符串填充。
charset() - Method in class com.sure.tool.io.TailerOptions
行编码。
charset(String) - Static method in class com.sure.tool.util.CharsetUtil
获取字符集,字符集名为 null 时返回默认字符集。
charset(Charset) - Method in class com.sure.tool.io.TailerOptions
行编码(默认自动探测 UTF-8/GBK)。
CharsetUtil - Class in com.sure.tool.util
字符集工具类,参考 Hutool 的 CharsetUtil 设计。
CharUtil - Class in com.sure.tool.util
字符工具类。
check(String) - Static method in class com.sure.tool.util.ExpressionUtil
校验表达式是否合法(不含变量求值)。
check(String, String) - Static method in class com.sure.tool.crypto.BCryptUtil
校验明文密码是否与已存哈希匹配。
checksumCRC32(File) - Static method in class com.sure.tool.io.FileUtil
计算文件 CRC32 校验和。
checksumMD5(File) - Static method in class com.sure.tool.io.FileUtil
计算文件 MD5 摘要(十六进制小写)。
checksumSHA1(File) - Static method in class com.sure.tool.io.FileUtil
计算文件 SHA-1 摘要(十六进制小写)。
CHINESE - Static variable in class com.sure.tool.lang.PatternPool
纯中文
chineseName(String) - Static method in class com.sure.tool.util.DesensitizedUtil
中文姓名脱敏:保留首尾字符,如 张三丰 → 张*丰,两字名如 张三 → 张*。
chunk(Collection, int) - Static method in class com.sure.tool.collection.CollUtil
将集合按指定大小分片。
chunk(List, int) - Static method in class com.sure.tool.collection.ListUtil
均分块:按固定大小切分为多个子列表(与 ListUtil.partition(List, int) 同语义,别名友好)。
CircleCaptcha - Class in com.sure.tool.captcha
圆圈干扰验证码,参考 Hutool 的 CircleCaptcha 设计。
CircleCaptcha(int, int, int, int) - Constructor for class com.sure.tool.captcha.CircleCaptcha
创建圆圈干扰验证码。
CLAIM_EXP - Static variable in class com.sure.tool.jwt.JWT
过期时间 claim。
CLAIM_IAT - Static variable in class com.sure.tool.jwt.JWT
签发时间 claim。
CLAIM_NBF - Static variable in class com.sure.tool.jwt.JWT
生效时间 claim。
clamp(T, T, T) - Static method in class com.sure.tool.util.CompareUtil
值约束在 [min, max] 区间(空安全)。
ClassScanner - Class in com.sure.tool.util
类扫描工具:按包名扫描 classpath 中的类,支持注解 / 父类 / 自定义谓词过滤。
ClassUtil - Class in com.sure.tool.util
类工具类,参考 Hutool 的 ClassUtil 设计。
clean(File) - Static method in class com.sure.tool.io.FileUtil
清空目录内容(保留目录本身)。
cleanBlank(CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除字符串中所有空白字符(包括空格、制表符、换行等)。
cleanHtmlTag(String) - Static method in class com.sure.tool.util.HtmlUtil
去除 HTML 标签(保留文本内容)。
clear() - Method in interface com.sure.tool.cache.Cache
清空缓存。
clear() - Method in class com.sure.tool.cache.FifoCache
 
clear() - Method in class com.sure.tool.cache.LfuCache
 
clear() - Method in class com.sure.tool.cache.LruCache
 
clear() - Method in class com.sure.tool.cache.TimedCache
 
clear() - Method in class com.sure.tool.cache.WeakCache
清空缓存。
clear() - Method in class com.sure.tool.collection.BiMap
清空。
clear() - Method in class com.sure.tool.collection.MultiMap
清空所有键值。
clear() - Method in class com.sure.tool.collection.Multiset
清空所有元素与计数。
clear() - Method in class com.sure.tool.collection.RangeSet
清空所有区间。
clear() - Static method in class com.sure.tool.config.SettingUtil
清空当前配置快照。
clear() - Method in class com.sure.tool.http.CookieStore
清空全部 Cookie。
clear() - Method in class com.sure.tool.lang.WeightRandom
清空。
clear(int, int) - Static method in class com.sure.tool.util.BitUtil
清除 int 指定位(置 0)。
clear(Iterator) - Static method in class com.sure.tool.collection.IterUtil
清空迭代器(消耗全部元素)。
client(HttpClient) - Method in class com.sure.tool.http.HttpRequest
注入 JDK HttpClient(自带连接池/keep-alive 复用,虚拟线程友好)。
clone(T) - Static method in class com.sure.tool.lang.SerializeUtil
基于序列化的深拷贝(对象须可序列化)。
clone(T) - Static method in class com.sure.tool.util.ObjectUtil
克隆对象(对象需实现 Cloneable)。
cloneByStream(T) - Static method in class com.sure.tool.util.ObjectUtil
通过序列化克隆对象(对象及其成员需实现 Serializable)。
close() - Method in class com.sure.tool.io.IoUtil.LineIterator
 
close() - Method in class com.sure.tool.thread.Actor
优雅关闭:拒绝新消息,已入队消息全部处理完毕后消息循环退出;幂等。
close(Workbook) - Static method in class com.sure.tool.poi.PoiUtil
安静关闭工作簿。
closeQuietly(Closeable...) - Static method in class com.sure.tool.io.IoUtil
安静关闭可关闭资源,忽略关闭异常。
coalesce(T...) - Static method in class com.sure.tool.lang.NullUtil
SQL COALESCE 语义:取首个非 null 值(NullUtil.firstNonNull(T...) 别名)。
collect(String, Map) - Method in class com.sure.tool.http.CookieStore
收集响应中的 Set-Cookie 头。
CollStreamUtil - Class in com.sure.tool.collection
集合流式处理工具,参考 Hutool CollStreamUtil 设计。
CollUtil - Class in com.sure.tool.collection
集合工具类,参考 Hutool 的 CollUtil 设计。
com.sure.tool.bean - package com.sure.tool.bean
 
com.sure.tool.cache - package com.sure.tool.cache
 
com.sure.tool.captcha - package com.sure.tool.captcha
 
com.sure.tool.codec - package com.sure.tool.codec
 
com.sure.tool.collection - package com.sure.tool.collection
 
com.sure.tool.config - package com.sure.tool.config
 
com.sure.tool.cron - package com.sure.tool.cron
 
com.sure.tool.crypto - package com.sure.tool.crypto
 
com.sure.tool.date - package com.sure.tool.date
 
com.sure.tool.dfa - package com.sure.tool.dfa
 
com.sure.tool.fluent - package com.sure.tool.fluent
 
com.sure.tool.graph - package com.sure.tool.graph
 
com.sure.tool.http - package com.sure.tool.http
 
com.sure.tool.id - package com.sure.tool.id
 
com.sure.tool.image - package com.sure.tool.image
 
com.sure.tool.io - package com.sure.tool.io
 
com.sure.tool.json - package com.sure.tool.json
 
com.sure.tool.jwt - package com.sure.tool.jwt
 
com.sure.tool.lang - package com.sure.tool.lang
 
com.sure.tool.poi - package com.sure.tool.poi
 
com.sure.tool.system - package com.sure.tool.system
 
com.sure.tool.text - package com.sure.tool.text
 
com.sure.tool.thread - package com.sure.tool.thread
 
com.sure.tool.util - package com.sure.tool.util
 
com.sure.tool.xml - package com.sure.tool.xml
 
combinations(List, int) - Static method in class com.sure.tool.collection.ListUtil
k 元素组合(对齐 Guava Sets.combinations 的列表版)。
combinations(Set, int) - Static method in class com.sure.tool.collection.SetUtil
k 元素组合(对齐 Guava Sets.combinations)。
compare(double, double) - Static method in class com.sure.tool.util.CompareUtil
双精度比较(含 NaN 处理:NaN 视为最大)。
compare(int, int) - Static method in class com.sure.tool.util.CompareUtil
整数比较。
compare(long, long) - Static method in class com.sure.tool.util.CompareUtil
长整数比较。
compare(String, String) - Method in class com.sure.tool.util.VersionComparator
 
compare(String, String) - Static method in class com.sure.tool.util.VersionUtil
比较两个版本号。
compare(T, T) - Static method in class com.sure.tool.util.ObjectUtil
空安全比较(null 视为最小),值须实现 Comparable。
compare(T, T, Comparator) - Static method in class com.sure.tool.util.CompareUtil
空安全比较:null 视为最小;两值相等或同为 null 返回 0。
compareIgnoreCase(String, String) - Static method in class com.sure.tool.util.CompareUtil
忽略大小写比较字符串。
CompareUtil - Class in com.sure.tool.util
比较工具类:基础类型比较、空安全比较、取最值与范围约束,零依赖。
computeSharedSecret(PrivateKey, PublicKey, String) - Static method in class com.sure.tool.crypto.EcdhUtil
以本地私钥与对端公钥计算共享密钥。
concat(byte[]...) - Static method in class com.sure.tool.util.BytesUtil
拼接多个字节数组。
concat(String...) - Static method in class com.sure.tool.util.StrUtil
拼接多个字符串为一个字符串。
concat(List...) - Static method in class com.sure.tool.collection.ListUtil
拼接多个列表(对齐 Guava Iterables.concat,null 列表跳过)。
concat(List, List) - Static method in class com.sure.tool.collection.ListUtil
拼接两个列表(对齐 Guava Lists.concat)。
concat(Stream...) - Static method in class com.sure.tool.util.StreamUtil
合并多个流(null 流自动跳过)。
connectTimeout(int) - Method in class com.sure.tool.http.HttpRequest
设置连接超时(毫秒)。
connectTimeout(Duration) - Method in class com.sure.tool.http.HttpClientBuilder
连接超时。
Console - Class in com.sure.tool.lang
控制台打印工具类,参考 Hutool 的 Console 设计。
consumeIfNotNull(T, Consumer) - Static method in class com.sure.tool.lang.NullUtil
值非 null 时消费(空入参静默忽略)。
contains(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否包含指定子串。
contains(Class) - Static method in class com.sure.tool.util.Singleton
是否已持有指定类单例。
contains(Object) - Method in class com.sure.tool.fluent.FluentList
终端:是否包含指定元素(null 返回 false)。
contains(Object, Object) - Static method in class com.sure.tool.util.ArrayUtil
数组中是否包含指定元素。
contains(String) - Static method in class com.sure.tool.config.SettingUtil
是否包含指定键(分层查找命中任意一层均视为包含)。
contains(String) - Static method in class com.sure.tool.dfa.DfaUtil
文本是否包含任意敏感词(默认词库)。
contains(String) - Method in class com.sure.tool.dfa.WordTree
文本是否包含任意敏感词。
contains(String) - Method in class com.sure.tool.fluent.FluentString
终端:是否包含指定子串。
contains(Collection, Object) - Static method in class com.sure.tool.collection.CollUtil
集合是否包含指定元素。
contains(T) - Method in class com.sure.tool.collection.RangeSet
是否包含指定值。
contains(T) - Method in class com.sure.tool.collection.RangeSet.Range
是否包含指定值(左闭右开:含下界、不含上界)。
containsAll(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
是否包含另一集合全部元素。
containsAll(Collection, T...) - Static method in class com.sure.tool.collection.CollUtil
是否包含全部指定元素。
containsAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
是否包含任一指定子串。
containsAny(Collection, Object...) - Static method in class com.sure.tool.collection.CollUtil
集合是否包含任一指定元素。
containsAny(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
两个集合是否存在交集。
containsAny(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
是否与任一右集合元素相交。
containsAnyIgnoreCase(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
忽略大小写判断字符串是否包含任意给定子串。
containsEdge(V, V) - Method in class com.sure.tool.graph.DiGraph
是否包含有向边(源 → 目标)。
containsEmoji(String) - Static method in class com.sure.tool.util.EmojiUtil
判断文本是否包含 Emoji。
containsIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写是否包含指定子串。
containsKey(Object) - Method in class com.sure.tool.collection.CaseInsensitiveMap
 
containsKey(String) - Method in class com.sure.tool.util.Props
是否包含键。
containsKey(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
Map 是否包含 key。
containsKey(K) - Method in interface com.sure.tool.cache.Cache
是否包含键(已过期视为不存在)。
containsKey(K) - Method in class com.sure.tool.cache.FifoCache
 
containsKey(K) - Method in class com.sure.tool.cache.LfuCache
 
containsKey(K) - Method in class com.sure.tool.cache.LruCache
 
containsKey(K) - Method in class com.sure.tool.cache.TimedCache
 
containsKey(K) - Method in class com.sure.tool.cache.WeakCache
是否包含键(已过期或已回收视为不存在)。
containsKey(K) - Method in class com.sure.tool.collection.BiMap
是否包含键。
containsKey(K) - Method in class com.sure.tool.collection.MultiMap
是否包含指定键。
containsKey(K) - Method in class com.sure.tool.fluent.FluentMap
终端:是否包含指定键(null 返回 false)。
containsName(Class, String) - Static method in class com.sure.tool.util.EnumUtil
名称是否属于该枚举(忽略大小写)。
containsName(Class, String, boolean) - Static method in class com.sure.tool.util.EnumUtil
名称是否属于该枚举。
containsProp(String) - Method in class com.sure.tool.bean.BeanDesc
是否包含指定属性。
containsValue(V) - Method in class com.sure.tool.collection.BiMap
是否包含值。
containsValue(V) - Method in class com.sure.tool.collection.MultiMap
是否存在至少一个值与 value 相等。
containsVertex(V) - Method in class com.sure.tool.graph.DiGraph
是否包含顶点。
containsWhitespace(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否包含任意空白字符(Character.isWhitespace(char))。
contentEquals(InputStream, InputStream) - Static method in class com.sure.tool.io.IoUtil
比较两个输入流内容是否一致。
contentEqualsIgnoreEOL(Reader, Reader) - Static method in class com.sure.tool.io.IoUtil
忽略行结束符(\r、\n、\r\n)比较两个字符流内容是否一致。
contentType() - Method in class com.sure.tool.http.HttpResponse
Content-Type 响应头,无则返回 null。
contentType(String) - Method in class com.sure.tool.http.HttpRequest
显式设置 Content-Type(覆盖 body/form 推断的默认值)。
convert(Class, Object) - Static method in class com.sure.tool.util.ConvertUtil
通用类型转换:支持基础类型、包装类型、String 及数组/集合转 List。
convert(String, int, int) - Static method in class com.sure.tool.util.RadixUtil
任意进制间转换(如 16 进制转 2 进制)。
convert(String, String, String) - Static method in class com.sure.tool.util.CharsetUtil
字符集间转换字符串编码。
convert(String, Charset, Charset) - Static method in class com.sure.tool.util.CharsetUtil
字符集间转换字符串编码。
convert15To18(String) - Static method in class com.sure.tool.util.IdcardUtil
15 位身份证转 18 位。
ConvertUtil - Class in com.sure.tool.util
类型转换工具类,参考 Hutool 的 Convert 设计。
cookie(String) - Method in class com.sure.tool.http.HttpRequest
设置 Cookie 头(原始值,如 "name=value; Path=/")。
cookie(String, Object) - Method in class com.sure.tool.http.HttpRequest
设置 Cookie(单对键值)。
cookies() - Method in class com.sure.tool.http.HttpResponse
解析全部 Set-Cookie 响应头为 Cookie 键值 Map(同名取第一个,忽略 Path/Expires 等属性)。
cookieStore(CookieStore) - Method in class com.sure.tool.http.HttpRequest
绑定会话级 Cookie 管理器:请求自动携带 store 内 Cookie,响应中的 Set-Cookie 自动收集。
CookieStore - Class in com.sure.tool.http
会话级 Cookie 管理器(零第三方依赖,基于 JDK HttpCookie)。
CookieStore() - Constructor for class com.sure.tool.http.CookieStore
 
copy(File, File) - Static method in class com.sure.tool.io.FileUtil
复制文件或目录(目录递归复制)。
copy(File, OutputStream) - Static method in class com.sure.tool.io.IoUtil
将文件内容写入输出流。
copy(InputStream, File) - Static method in class com.sure.tool.io.IoUtil
将输入流内容写入文件(自动创建父目录)。
copy(InputStream, OutputStream) - Static method in class com.sure.tool.io.IoUtil
复制输入流到输出流。
copy(InputStream, OutputStream, int) - Static method in class com.sure.tool.io.IoUtil
复制输入流到输出流。
copy(InputStream, Writer, Charset) - Static method in class com.sure.tool.io.IoUtil
输入流复制到字符流(按指定字符集解码),不关闭流。
copy(Reader, OutputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
字符流复制到输出流(按指定字符集编码写出),不关闭流。
copy(Reader, Writer) - Static method in class com.sure.tool.io.IoUtil
复制字符流。
copy(Object, Class) - Static method in class com.sure.tool.bean.BeanCopier
拷贝为新目标对象(默认浅拷贝)。
copy(Object, Class, CopyOption...) - Static method in class com.sure.tool.bean.BeanCopier
拷贝为新目标对象。
copy(Object, Object) - Static method in class com.sure.tool.bean.BeanCopier
拷贝到已有目标对象。
copy(Object, Object, CopyOption...) - Static method in class com.sure.tool.bean.BeanCopier
拷贝到已有目标对象。
copy(String, String) - Static method in class com.sure.tool.io.FileUtil
复制文件(自动创建父目录),路径便捷重载。
copyDir(File, File) - Static method in class com.sure.tool.io.FileUtil
递归复制目录到目标位置(目标目录不存在时自动创建)。
CopyException - Exception Class in com.sure.tool.bean
属性拷贝失败异常:读取/写入属性失败、类型转换失败、目标只读、目标实例化失败。
CopyException(String) - Constructor for exception class com.sure.tool.bean.CopyException
构造异常。
CopyException(String, Throwable) - Constructor for exception class com.sure.tool.bean.CopyException
构造异常。
CopyOption - Enum Class in com.sure.tool.bean
属性拷贝行为选项(BeanCopier)。
copyProperties(Object, T, boolean, String...) - Static method in class com.sure.tool.bean.BeanUtil
拷贝属性,支持类型转换(如 String 转 int)。
copyProperties(Object, T, String...) - Static method in class com.sure.tool.bean.BeanUtil
拷贝属性(不忽略 null 值)。
copyToList(Collection, Class) - Static method in class com.sure.tool.bean.BeanUtil
将对象集合复制为指定 Bean 类型的列表(深复制,忽略源 null 值)。
copyToList(Collection, Class, boolean) - Static method in class com.sure.tool.bean.BeanUtil
将对象集合复制为指定 Bean 类型的列表。
cosine(String, String) - Static method in class com.sure.tool.text.StrSimilarity
余弦相似度(按字符频率向量),0~1。
count() - Method in class com.sure.tool.fluent.FluentList
终端:元素个数。
count(CharSequence, char) - Static method in class com.sure.tool.util.StrUtil
统计字符在字符串中出现的次数。
count(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
统计子串在字符串中出现的次数。
count(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
统计匹配次数。
count(T) - Method in class com.sure.tool.collection.Multiset
指定元素出现次数。
countMap(Collection) - Static method in class com.sure.tool.collection.CollUtil
统计元素出现频次。
CpuInfo - Class in com.sure.tool.system
CPU 信息:处理器数 / 系统负载 / CPU 使用率(进程级与系统级),参考 Hutool 的 CpuInfo 设计。
crc32(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 CRC32 校验值。
crc32(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 CRC32 校验值。
crc32Hex(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 CRC32 校验值(8 位十六进制字符串)。
crc32Hex(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 CRC32 校验值(8 位十六进制字符串)。
create() - Static method in class com.sure.tool.collection.MapUtil.MapBuilder
创建构建器。
create() - Static method in class com.sure.tool.jwt.JWT
创建构建器。
create() - Static method in class com.sure.tool.thread.ExecutorBuilder
创建构造器。
CREATE - Enum constant in enum class com.sure.tool.io.EventType
文件/目录创建
createCircleCaptcha(int, int, int, int) - Static method in class com.sure.tool.captcha.CaptchaUtil
创建圆圈干扰验证码。
createLineCaptcha(int, int) - Static method in class com.sure.tool.captcha.CaptchaUtil
创建线段干扰验证码(默认 4 字符、150 条干扰线)。
createLineCaptcha(int, int, int, int) - Static method in class com.sure.tool.captcha.CaptchaUtil
创建线段干扰验证码。
createReadWriteLock(String) - Static method in class com.sure.tool.thread.LockUtil
获取(或创建)按 key 区分的全局读写锁。
createShearCaptcha(int, int, int, int) - Static method in class com.sure.tool.captcha.CaptchaUtil
创建扭曲验证码。
createSnowflake() - Static method in class com.sure.tool.util.IdUtil
创建默认雪花 ID 生成器(节点 0,数据中心 0)。
createSnowflake(long, long) - Static method in class com.sure.tool.util.IdUtil
创建雪花 ID 生成器。
createToken(Map, String) - Static method in class com.sure.tool.jwt.JwtUtil
签发 HS256 token。
createToken(Map, String, int) - Static method in class com.sure.tool.jwt.JwtUtil
签发带过期时间的 HS256 token(exp 为当前时间 + expireSeconds)。
createTokenWithRsa(Map, KeyPair, int) - Static method in class com.sure.tool.jwt.JwtUtil
签发 RS256 token。
createTokenWithRsa(Map, PrivateKey, int) - Static method in class com.sure.tool.jwt.JwtUtil
签发 RS256 token(私钥)。
CreditCodeUtil - Class in com.sure.tool.util
统一社会信用代码工具:合法性校验(GB 32100-2015),零依赖。
CronPattern - Class in com.sure.tool.cron
Cron 表达式(6 段 Quartz 风格:秒 分 时 日 月 周),支持通配符、范围、列表、步进, 提供时刻匹配与下次执行时间计算,参考 Hutool 的 CronPattern 设计。
CronPattern(String) - Constructor for class com.sure.tool.cron.CronPattern
解析 Cron 表达式。
CronUtil - Class in com.sure.tool.cron
Cron 定时调度器:注册表达式任务,启动后每秒扫描并在匹配时刻执行,参考 Hutool 的 CronUtil 设计。
crop(BufferedImage, int, int, int, int) - Static method in class com.sure.tool.image.ImageUtil
裁剪图像。
CryptoException - Exception Class in com.sure.tool.crypto
加密解密异常。
CryptoException(String) - Constructor for exception class com.sure.tool.crypto.CryptoException
创建异常。
CryptoException(String, Throwable) - Constructor for exception class com.sure.tool.crypto.CryptoException
创建异常。
CsvUtil - Class in com.sure.tool.collection
CSV 读写工具类(最小实现),支持引号包裹、引号内逗号与双引号转义,参考 Hutool 的 CsvUtil 设计。
current() - Static method in class com.sure.tool.date.DateUtil
当前毫秒时间戳。
currentSeconds() - Static method in class com.sure.tool.date.DateUtil
当前秒级时间戳。

D

date(long) - Static method in class com.sure.tool.date.DateUtil
时间戳转 Date。
date(Calendar) - Static method in class com.sure.tool.date.DateUtil
Calendar 转 Date。
DateUnit - Enum Class in com.sure.tool.date
日期时间单位,参考 Hutool 的 DateUnit 设计。
DateUtil - Class in com.sure.tool.date
日期时间工具类,参考 Hutool 的 DateUtil 设计。
day(Date) - Static method in class com.sure.tool.date.DateUtil
获取日(1-31)。
DAY - Enum constant in enum class com.sure.tool.date.DateUnit
天
dayOfMonth(Date) - Static method in class com.sure.tool.date.DateUtil
当月第几天(1~31)。
dayOfWeek(Date) - Static method in class com.sure.tool.date.DateUtil
获取星期几(1=周日,7=周六)。
dayOfYear(Date) - Static method in class com.sure.tool.date.DateUtil
当年第几天(1~366)。
daysBetween(Date, Date) - Static method in class com.sure.tool.date.DateUtil
两个日期的自然日天数差(忽略时分秒)。
decimalFormat(double, String) - Static method in class com.sure.tool.util.NumberUtil
数字格式化,如 decimalFormat(12345.678, "#,##0.00") → "12,345.68"。
decode(String) - Static method in class com.sure.tool.codec.Ascii85Util
解码 Ascii85 字符串(容忍 <~ / ~> 包裹与 z 零块压缩)。
decode(String) - Static method in class com.sure.tool.codec.Base32Util
解码 Base32 字符串为字节数组(容忍缺失填充与空白字符)。
decode(String) - Static method in class com.sure.tool.codec.Base58Util
解码 Base58 字符串为字节数组。
decode(String) - Static method in class com.sure.tool.codec.Base62Util
解码 Base62 字符串为字节数组。
decode(String) - Static method in class com.sure.tool.codec.Base64Util
Base64 字符串解码为字节数组(兼容标准与 URL 安全两种编码)。
decode(String) - Static method in class com.sure.tool.codec.EncodeUtil
URL 解码(UTF-8),+ 视为空格。
decode(String) - Static method in class com.sure.tool.codec.MorseUtil
摩斯电码解码为原文。
decode(String) - Static method in class com.sure.tool.http.URLUtil
URL 解码(UTF-8)。
decode(String) - Static method in class com.sure.tool.util.UrlUtil
URL 解码。
decode(String, int) - Static method in class com.sure.tool.codec.CaesarUtil
凯撒密码解码(位移量取反)。
decode(String, Charset) - Static method in class com.sure.tool.codec.EncodeUtil
URL 解码。
decode(String, Charset) - Static method in class com.sure.tool.util.UrlUtil
URL 解码。
decodeHex(String) - Static method in class com.sure.tool.codec.HexUtil
十六进制字符串解码为字节数组。
decodeHex(String) - Static method in class com.sure.tool.util.HexUtil
十六进制字符串解码为字节数组(忽略空白,大小写均可)。
decodeHexStr(String) - Static method in class com.sure.tool.util.HexUtil
十六进制转字符串(UTF-8 解码)。
decodeHexStr(String, Charset) - Static method in class com.sure.tool.util.HexUtil
十六进制转字符串(指定字符集)。
decodeStr(String) - Static method in class com.sure.tool.codec.Base64Util
Base64 字符串解码为 UTF-8 字符串。
decodeStr(String, Charset) - Static method in class com.sure.tool.codec.Base64Util
Base64 字符串解码为指定字符集的字符串。
decodeToString(String) - Static method in class com.sure.tool.codec.Ascii85Util
解码 Ascii85 字符串为字符串(UTF-8)。
decodeToString(String) - Static method in class com.sure.tool.codec.Base32Util
解码 Base32 字符串为字符串(UTF-8)。
decodeToString(String) - Static method in class com.sure.tool.codec.Base58Util
解码 Base58 字符串为 UTF-8 字符串。
decodeToString(String) - Static method in class com.sure.tool.codec.Base62Util
解码 Base62 字符串为 UTF-8 字符串。
decodeToString(String, Charset) - Static method in class com.sure.tool.codec.Ascii85Util
解码 Ascii85 字符串为字符串(指定字符集)。
decodeToString(String, Charset) - Static method in class com.sure.tool.codec.Base32Util
解码 Base32 字符串为字符串(指定字符集)。
decodeToString(String, Charset) - Static method in class com.sure.tool.codec.Base58Util
解码 Base58 字符串为字符串。
decodeToString(String, Charset) - Static method in class com.sure.tool.codec.Base62Util
解码 Base62 字符串为字符串。
decrypt(byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 解密(去除 PKCS#7 填充)。
decrypt(byte[], String) - Static method in class com.sure.tool.crypto.AesUtil
AES-GCM 解密(字节)。
decrypt(byte[], String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
decrypt(byte[], Key) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 解密(OAEP-SHA256)。
decrypt(Sm2Util.Sm2KeyPair, byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 解密(C1||C3||C2)。
decryptBase64(String, String) - Static method in class com.sure.tool.crypto.AesUtil
AES 解密 Base64 密文。
decryptBase64(String, String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
decryptBase64(String, PrivateKey) - Static method in class com.sure.tool.crypto.RsaUtil
私钥解密 Base64 密文。
decryptCbc(byte[], byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-CBC 解密(去除 PKCS#7 填充)。
decryptHex(byte[], String) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 解密,输入十六进制密文。
decryptHex(String, String) - Static method in class com.sure.tool.crypto.AesUtil
AES 解密十六进制密文。
decryptHex(String, String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
decryptHex(String, PrivateKey) - Static method in class com.sure.tool.crypto.RsaUtil
私钥解密十六进制密文。
decryptStr(byte[], String) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 解密十六进制密文为字符串(UTF-8)。
deep() - Method in class com.sure.tool.bean.BeanCopier.Copier
深拷贝(嵌套 Bean / 集合 / 数组递归)。
DEEP - Enum constant in enum class com.sure.tool.bean.CopyOption
深拷贝:嵌套 Bean / 集合 / 数组递归拷贝为新对象(默认浅拷贝)。
deepClone() - Method in class com.sure.tool.json.JSONArray
深拷贝(嵌套 JSONObject/JSONArray/Map/List 均递归复制)。
deepClone() - Method in class com.sure.tool.json.JSONObject
深拷贝(嵌套 JSONObject/JSONArray/Map/List 均递归复制)。
deepCopy(Object, Class) - Static method in class com.sure.tool.bean.BeanCopier
深拷贝为新目标对象(等价于 copy(source, targetClass, CopyOption.DEEP))。
deepCopy(T) - Static method in class com.sure.tool.bean.BeanUtil
深拷贝:递归复制 Bean / Map / List / Set / 数组 / 不可变值类型。
DEFAULT_BUFFER_SIZE - Static variable in class com.sure.tool.io.IoUtil
默认缓冲区大小
DEFAULT_CHARSET - Static variable in class com.sure.tool.util.UrlUtil
默认字符集 UTF-8。
DEFAULT_CONNECT_TIMEOUT - Static variable in class com.sure.tool.http.HttpRequest
默认连接超时(毫秒)
DEFAULT_CONNECT_TIMEOUT - Static variable in class com.sure.tool.http.HttpUtil
默认连接超时(毫秒)
DEFAULT_COST - Static variable in class com.sure.tool.crypto.BCryptUtil
默认 work factor(2^10 轮)。
DEFAULT_ESCAPE - Static variable in class com.sure.tool.util.StrSubstitutor
默认转义符
DEFAULT_KEY_SIZE - Static variable in class com.sure.tool.crypto.RsaUtil
默认密钥位数
DEFAULT_PREFIX - Static variable in class com.sure.tool.util.StrSubstitutor
默认前缀
DEFAULT_READ_TIMEOUT - Static variable in class com.sure.tool.http.HttpRequest
默认读取超时(毫秒)
DEFAULT_READ_TIMEOUT - Static variable in class com.sure.tool.http.HttpUtil
默认读取超时(毫秒)
DEFAULT_SIZE - Static variable in class com.sure.tool.id.NanoIdUtil
默认长度。
DEFAULT_STRIPES - Static variable in class com.sure.tool.thread.StripedLock
默认段数。
DEFAULT_SUFFIX - Static variable in class com.sure.tool.util.StrSubstitutor
默认后缀
defaultCharset() - Static method in class com.sure.tool.util.CharsetUtil
系统默认字符集。
defaultIfEmpty(T, T) - Static method in class com.sure.tool.util.ObjectUtil
对象为空时使用默认值(空字符串、空集合、空数组等视为空)。
defaultIfNull(T, Supplier) - Static method in class com.sure.tool.lang.NullUtil
null 时由供应器提供默认值(延迟求值)。
defaultIfNull(T, T) - Static method in class com.sure.tool.lang.NullUtil
null 时返回默认值(委托 ObjectUtil.defaultIfNull(T, T))。
defaultIfNull(T, T) - Static method in class com.sure.tool.util.ObjectUtil
对象为 null 时使用默认值。
degree(V) - Method in class com.sure.tool.graph.DiGraph
度数(出度 + 入度)。
delAll(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
删除所有匹配。
delete(File) - Static method in class com.sure.tool.io.FileUtil
删除文件或目录(目录递归删除)。
delete(String) - Static method in class com.sure.tool.http.HttpRequest
DELETE 请求。
delete(String) - Static method in class com.sure.tool.http.HttpUtil
DELETE 请求(无请求体)。
delete(String, int) - Static method in class com.sure.tool.http.HttpUtil
DELETE 请求(无请求体)。
DELETE - Enum constant in enum class com.sure.tool.io.EventType
文件/目录删除
deleteJson(String, String) - Static method in class com.sure.tool.http.HttpUtil
DELETE JSON 请求。
deleteJson(String, String, int) - Static method in class com.sure.tool.http.HttpUtil
DELETE JSON 请求。
deleteQuietly(File) - Static method in class com.sure.tool.io.FileUtil
静默删除文件或空目录:删除失败不抛异常。
delFirst(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
删除第一个匹配。
depth(TreeNode) - Static method in class com.sure.tool.collection.TreeUtil
树深度(根为 1)。
desDecryptHex(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
Deprecated.
不安全算法(DES),仅兼容旧系统,新代码请使用 SecureUtil.aesDecryptHex(String, String)
desEncryptHex(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
Deprecated.
不安全算法(DES),仅兼容旧系统,新代码请使用 SecureUtil.aesEncryptHex(String, String)
DesensitizedUtil - Class in com.sure.tool.util
数据脱敏工具类,参考 Hutool 的 DesensitizedUtil 设计。
deserialize(byte[]) - Static method in class com.sure.tool.lang.SerializeUtil
字节数组反序列化为对象。
deserialize(byte[]) - Static method in class com.sure.tool.util.ObjectUtil
字节数组反序列化为对象。
destroy() - Static method in class com.sure.tool.util.Singleton
清空全部单例。
DesUtil - Class in com.sure.tool.crypto
Deprecated.
不安全算法(DES),仅兼容旧系统,新代码请使用 AesUtil
DfaUtil - Class in com.sure.tool.dfa
敏感词过滤门面:基于默认 WordTree 单例的静态方法,适合快速过滤场景。
dfs(DiGraph, V) - Static method in class com.sure.tool.graph.GraphUtil
深度优先遍历(从起点开始,按邻接表顺序)。
Dict - Class in com.sure.tool.lang
便捷字典类,参考 Hutool 的 Dict 设计。
Dict() - Constructor for class com.sure.tool.lang.Dict
 
difference(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
返回首个差异位置起的子串(参考 commons-lang StringUtils.difference)。
difference(Map, Map) - Static method in class com.sure.tool.collection.MapUtil
两个 Map 的差异分析:只在左 / 只在右 / 共有但值不同。
Difference<K,V> - Record Class in com.sure.tool.collection
两个 Map 的差异分析结果。
Difference(Map, Map, Map) - Constructor for record class com.sure.tool.collection.Difference
紧凑构造:防御性拷贝并返回不可变视图,防止外部修改与内部表示暴露。
digest(String, byte[]) - Static method in class com.sure.tool.codec.HashUtil
通用摘要计算。
digitValue(char) - Static method in class com.sure.tool.util.CharUtil
字符转数字值,支持 0-9、a-f、A-F。
DiGraph<V> - Class in com.sure.tool.graph
简单有向图(邻接表实现),顶点去重基于 Object.equals(Object)/Object.hashCode()。
DiGraph() - Constructor for class com.sure.tool.graph.DiGraph
 
DiGraph.Edge<V> - Record Class in com.sure.tool.graph
有向边(源 → 目标)。
DirListener - Interface in com.sure.tool.io
目录监听回调。
disjoint(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
两集合是否无交集。
disjunction(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
差集(属于 c1 但不属于 c2)。
DiskInfo - Class in com.sure.tool.system
磁盘(卷)信息:路径 / 总容量 / 可用空间 / 已用空间。
distinct() - Method in class com.sure.tool.fluent.FluentList
去重(保持首次出现顺序)。
distinct(Object) - Static method in class com.sure.tool.util.ArrayUtil
数组去重(保持原有顺序)。
distinct(Collection) - Static method in class com.sure.tool.collection.CollUtil
去重(保持原有顺序)。
distinct(Collection, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
按提取键去重(首现保留),返回新 List 保持顺序。
distinct(List) - Static method in class com.sure.tool.collection.ListUtil
去重并保持原有顺序(首个出现位置保留)。
distinct(T[]) - Static method in class com.sure.tool.util.ArrayUtil
数组去重(保持首次出现顺序)。
div(double, double, int) - Static method in class com.sure.tool.util.NumberUtil
除法(基于 BigDecimal,按指定小数位四舍五入)。
djb2(String) - Static method in class com.sure.tool.codec.HashUtil
DJB2 哈希(字符串)。
download(String, File) - Static method in class com.sure.tool.http.HttpUtil
下载文件。
download(String, File, int) - Static method in class com.sure.tool.http.HttpUtil
下载文件。
downloadBytes(String) - Static method in class com.sure.tool.http.HttpUtil
下载 URL 内容为字节数组。
downloadBytes(String, int) - Static method in class com.sure.tool.http.HttpUtil
下载 URL 内容为字节数组。
drawInterfere(Graphics2D) - Method in class com.sure.tool.captcha.AbstractCaptcha
干扰绘制,由子类实现。
drawInterfere(Graphics2D) - Method in class com.sure.tool.captcha.CircleCaptcha
 
drawInterfere(Graphics2D) - Method in class com.sure.tool.captcha.LineCaptcha
 
drawInterfere(Graphics2D) - Method in class com.sure.tool.captcha.ShearCaptcha
 
drawRandomCircles(Graphics2D) - Method in class com.sure.tool.captcha.AbstractCaptcha
随机干扰圆圈。
drawRandomLines(Graphics2D) - Method in class com.sure.tool.captcha.AbstractCaptcha
随机干扰线段。

E

EC - Static variable in class com.sure.tool.crypto.EcdhUtil
EC 曲线(NIST P-256 等标准曲线)
EcdhUtil - Class in com.sure.tool.crypto
椭圆曲线 Diffie-Hellman 密钥协商工具(经典 KEM 语义)。
Edge(V, V) - Constructor for record class com.sure.tool.graph.DiGraph.Edge
Creates an instance of a Edge record class.
edgeCount() - Method in class com.sure.tool.graph.DiGraph
边数量。
edges() - Method in class com.sure.tool.graph.DiGraph
全部有向边。
elementSet() - Method in class com.sure.tool.collection.Multiset
去重元素集合(视图)。
email(String) - Static method in class com.sure.tool.util.DesensitizedUtil
邮箱脱敏:保留首字符和 @ 后的域名,如 a***@example.com。
EMAIL - Static variable in class com.sure.tool.lang.PatternPool
邮箱
EmojiUtil - Class in com.sure.tool.util
Emoji 工具:与 \\uXXXX 转义互转,支持代理对(4 字节 emoji),零依赖。
empty() - Static method in class com.sure.tool.collection.IterUtil
返回空迭代器。
empty() - Static method in class com.sure.tool.lang.Option
空 Option。
empty() - Static method in class com.sure.tool.util.StreamUtil
返回空流。
empty(Class) - Static method in class com.sure.tool.util.ArrayUtil
创建指定类型的空数组。
EMPTY - Static variable in class com.sure.tool.util.StrUtil
空字符串
emptyIfNull(Collection) - Static method in class com.sure.tool.collection.CollUtil
空集合返回空列表。
emptyIfNull(Map) - Static method in class com.sure.tool.collection.MapUtil
空 Map 返回空 Map。
emptyIfNull(Set) - Static method in class com.sure.tool.collection.SetUtil
null 返回空 Set。
emptyToDefault(CharSequence, String) - Static method in class com.sure.tool.util.StrUtil
空字符串使用默认值替换。
emptyToNull(CharSequence) - Static method in class com.sure.tool.util.StrUtil
空串转 null。
emptyToNull(Object) - Static method in class com.sure.tool.util.ObjectUtil
空值转 null(空字符串、空集合、空 Map、空数组)。
encode(byte[]) - Static method in class com.sure.tool.codec.Ascii85Util
编码为 Ascii85 字符串(不带 <~ / ~> 包裹)。
encode(byte[]) - Static method in class com.sure.tool.codec.Base32Util
编码为标准 Base32 字符串(带 = 填充)。
encode(byte[]) - Static method in class com.sure.tool.codec.Base58Util
编码字节数组为 Base58 字符串。
encode(byte[]) - Static method in class com.sure.tool.codec.Base62Util
编码字节数组为 Base62 字符串。
encode(byte[]) - Static method in class com.sure.tool.codec.Base64Util
字节数组编码为 Base64 字符串。
encode(byte[], boolean) - Static method in class com.sure.tool.codec.Base32Util
编码为 Base32 字符串,可选择是否保留 = 填充。
encode(String) - Static method in class com.sure.tool.codec.Base64Util
字符串(UTF-8)编码为 Base64 字符串。
encode(String) - Static method in class com.sure.tool.codec.EncodeUtil
URL 编码(UTF-8),空格编码为 %20。
encode(String) - Static method in class com.sure.tool.codec.MorseUtil
原文编码为摩斯电码。
encode(String) - Static method in class com.sure.tool.http.URLUtil
URL 编码(UTF-8)。
encode(String) - Static method in class com.sure.tool.util.UrlUtil
URL 编码(空格编码为 +,表单风格)。
encode(String, int) - Static method in class com.sure.tool.codec.CaesarUtil
凯撒密码编码。
encode(String, Charset) - Static method in class com.sure.tool.codec.Ascii85Util
字符串按指定字符集编码为 Ascii85。
encode(String, Charset) - Static method in class com.sure.tool.codec.Base32Util
字符串按指定字符集编码为 Base32。
encode(String, Charset) - Static method in class com.sure.tool.codec.Base58Util
编码字符串为 Base58 字符串(默认 UTF-8)。
encode(String, Charset) - Static method in class com.sure.tool.codec.Base62Util
编码字符串为 Base62 字符串(默认 UTF-8)。
encode(String, Charset) - Static method in class com.sure.tool.codec.EncodeUtil
URL 编码。
encode(String, Charset) - Static method in class com.sure.tool.util.UrlUtil
URL 编码(表单风格,空格→+)。
encodeHex(byte[]) - Static method in class com.sure.tool.codec.HexUtil
字节数组编码为十六进制字符数组(小写)。
encodeHex(byte[]) - Static method in class com.sure.tool.util.HexUtil
字节数组转小写十六进制。
encodeHex(byte[], boolean) - Static method in class com.sure.tool.codec.HexUtil
字节数组编码为十六进制字符数组。
encodeHexStr(byte[]) - Static method in class com.sure.tool.codec.HexUtil
字节数组编码为十六进制字符串(小写)。
encodeHexStr(byte[], boolean) - Static method in class com.sure.tool.codec.HexUtil
字节数组编码为十六进制字符串。
encodeHexStr(String) - Static method in class com.sure.tool.util.HexUtil
字符串转十六进制(UTF-8 编码)。
encodeHexStr(String, Charset) - Static method in class com.sure.tool.util.HexUtil
字符串转十六进制(指定字符集)。
encodeHexUpper(byte[]) - Static method in class com.sure.tool.util.HexUtil
字节数组转大写十六进制。
encodePath(String) - Static method in class com.sure.tool.util.UrlUtil
URL 编码路径片段(空格→%20)。
encodeUrlSafe(byte[]) - Static method in class com.sure.tool.codec.Base64Util
URL 安全的 Base64 编码(不含填充符 =)。
encodeUrlSafe(String) - Static method in class com.sure.tool.codec.Base64Util
URL 安全的 Base64 编码(不含填充符)。
EncodeUtil - Class in com.sure.tool.codec
URL 编解码工具类,参考 Hutool 的 URLEncodeUtil 设计。
encrypt(byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 加密(PKCS#7 填充)。
encrypt(byte[], String) - Static method in class com.sure.tool.crypto.AesUtil
AES-GCM 加密(字节)。
encrypt(byte[], String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
encrypt(byte[], Key) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 加密(OAEP-SHA256)。
encrypt(BigInteger, BigInteger, byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 加密(C1||C3||C2)。
encryptBase64(String, String) - Static method in class com.sure.tool.crypto.AesUtil
AES 加密为 Base64 密文。
encryptBase64(String, String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
encryptBase64(String, PublicKey) - Static method in class com.sure.tool.crypto.RsaUtil
公钥加密为 Base64。
encryptCbc(byte[], byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-CBC 加密(PKCS#7 填充)。
encryptHex(byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 加密,密文以十六进制返回。
encryptHex(byte[], String) - Static method in class com.sure.tool.crypto.Sm4Util
SM4-ECB 加密字符串(UTF-8),密文以十六进制返回。
encryptHex(String, String) - Static method in class com.sure.tool.crypto.AesUtil
AES 加密为十六进制密文(自动携带随机 IV)。
encryptHex(String, String) - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
不安全算法(DES),仅兼容旧系统
encryptHex(String, PublicKey) - Static method in class com.sure.tool.crypto.RsaUtil
公钥加密为十六进制。
endOfDay(Date) - Static method in class com.sure.tool.date.DateUtil
当天结束时间(23:59:59.999)。
endOfHour(Date) - Static method in class com.sure.tool.date.DateUtil
当前小时结束时间。
endOfMinute(Date) - Static method in class com.sure.tool.date.DateUtil
获取某时刻所在分钟的结束(秒 59、毫秒 999)。
endOfMonth(Date) - Static method in class com.sure.tool.date.DateUtil
当月结束时间(最后一天 23:59:59.999)。
endOfQuarter(Date) - Static method in class com.sure.tool.date.DateUtil
获取季度结束时间(当季最后 1 天 23:59:59)。
endOfSecond(Date) - Static method in class com.sure.tool.date.DateUtil
获取某时刻所在秒的结束(毫秒 999)。
endOfWeek(Date) - Static method in class com.sure.tool.date.DateUtil
一周结束(周日 23:59:59.999)。
endOfYear(Date) - Static method in class com.sure.tool.date.DateUtil
年末(12 月 31 日 23:59:59.999)。
endsWith(String) - Method in class com.sure.tool.fluent.FluentString
终端:是否以指定后缀结尾。
endWith(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否以指定后缀结尾。
endWithAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
是否以任一后缀结尾。
endWithIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写是否以指定后缀结尾。
entries() - Method in class com.sure.tool.collection.MultiMap
键值对条目集合(key → 其全部值列表)。
entrySet() - Method in class com.sure.tool.collection.Multiset
元素与计数条目集合。
EnumUtil - Class in com.sure.tool.util
枚举工具类:按名称/序号/toString 转换枚举,支持忽略大小写,零依赖。
equals(char, char) - Static method in class com.sure.tool.util.CharUtil
字符是否相等。
equals(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
比较两个字符串是否相等。
equals(Object) - Method in record class com.sure.tool.collection.Difference
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.sure.tool.collection.Partition
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class com.sure.tool.dfa.FoundWord
 
equals(Object) - Method in record class com.sure.tool.graph.DiGraph.Edge
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.sure.tool.lang.Pair
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.sure.tool.lang.Triple
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.sure.tool.lang.WeightRandom.WeightObj
Indicates whether some other object is "equal to" this one.
equals(Object, Object) - Static method in class com.sure.tool.util.ObjectUtil
深度比较两个对象是否相等(数组按元素比较)。
equalsAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
判断字符串是否等于给定值中的任意一个。
equalsAnyIgnoreCase(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
忽略大小写判断字符串是否等于给定值中的任意一个。
equalsIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写比较两个字符串是否相等。
equalsIgnoreCase(String) - Method in class com.sure.tool.fluent.FluentString
终端:忽略大小写比较。
error(Object) - Static method in class com.sure.tool.lang.Console
输出错误对象并换行。
error(String, Object...) - Static method in class com.sure.tool.lang.Console
格式化错误输出并换行。
escape(String) - Static method in class com.sure.tool.util.EscapeUtil
转义 HTML 特殊字符:& < > " '。
escape(String) - Static method in class com.sure.tool.util.HtmlUtil
HTML 转义(& < > " ')。
escape(String) - Static method in class com.sure.tool.util.ReUtil
转义正则表达式特殊字符,使字符串可被字面匹配。
escape(String) - Static method in class com.sure.tool.xml.XmlUtil
XML 转义(5 个预定义实体)。
EscapeUtil - Class in com.sure.tool.util
HTML 转义工具类,参考 Hutool 的 HtmlUtil 设计。
escapeXml(String) - Static method in class com.sure.tool.util.EscapeUtil
XML 转义(& < > " ')。
eval(Object, String) - Static method in class com.sure.tool.json.JsonPath
按 JSONPath 查询并取第一个匹配值,无匹配返回 null。
eval(String) - Static method in class com.sure.tool.util.ExpressionUtil
求值无变量算术表达式,返回 double。
eval(String, Map) - Static method in class com.sure.tool.util.ExpressionUtil
求值算术表达式(支持变量替换)。
evalNumber(String, Map) - Static method in class com.sure.tool.util.ExpressionUtil
求值表达式,返回高精度 BigDecimal。
EventType - Enum Class in com.sure.tool.io
目录监听事件类型。
eventTypes() - Method in class com.sure.tool.io.WatchOptions
监听的事件类型(返回副本,外部修改不影响本选项)。
eventTypes(EventType...) - Method in class com.sure.tool.io.WatchOptions
监听的事件类型(默认 CREATE + MODIFY + DELETE)。
ExcelUtil - Class in com.sure.tool.poi
Excel 读写工具类(xlsx/xls),参考 Hutool 的 ExcelUtil 设计。
ExceptionUtil - Class in com.sure.tool.util
异常工具类:堆栈转字符串、根源异常定位等,零依赖。
exclude(String...) - Method in class com.sure.tool.bean.BeanCopier.Copier
跳过指定字段(黑名单)。
exec(String...) - Static method in class com.sure.tool.util.RuntimeUtil
执行命令,返回进程对象(标准输出与错误输出合并)。
execAsync(Runnable) - Static method in class com.sure.tool.thread.ThreadUtil
异步执行任务。
execAsync(Callable) - Static method in class com.sure.tool.thread.ThreadUtil
异步执行有返回值任务。
execForLines(String...) - Static method in class com.sure.tool.util.RuntimeUtil
执行命令并读取全部标准输出为行列表。
execForStr(String...) - Static method in class com.sure.tool.util.RuntimeUtil
执行命令并读取全部标准输出为字符串(UTF-8,去除末尾换行)。
execForStr(Charset, String...) - Static method in class com.sure.tool.util.RuntimeUtil
执行命令并读取全部标准输出为字符串(去除末尾换行)。
execute() - Method in class com.sure.tool.http.HttpRequest
执行请求。
execute(Runnable) - Static method in class com.sure.tool.thread.ThreadUtil
后台线程执行任务(不阻塞当前线程,不捕获异常)。
executor(ExecutorService) - Method in class com.sure.tool.http.HttpClientBuilder
自定义 executor。
ExecutorBuilder - Class in com.sure.tool.thread
线程池构造器,链式配置并构建 ThreadPoolExecutor,参考 Hutool 的 ExecutorBuilder 设计。
ExecutorBuilder() - Constructor for class com.sure.tool.thread.ExecutorBuilder
 
exists(File) - Static method in class com.sure.tool.io.FileUtil
文件或目录是否存在。
exists(String) - Static method in class com.sure.tool.io.FileUtil
文件或目录是否存在。
exists(String) - Static method in class com.sure.tool.io.ResourceUtil
判断资源是否存在。
exponentialSearch(long[], long) - Static method in class com.sure.tool.util.SearchUtil
指数查找:先指数步进缩小区间,再二分定位;命中返回下标,否则返回 -1。
ExpressionUtil - Class in com.sure.tool.util
算术表达式求值工具(零运行期依赖)。
extractMulti(String, CharSequence, String) - Static method in class com.sure.tool.util.ReUtil
提取多组内容并套入模板,模板中使用 {1}、{2} 引用分组。

F

factorial(int) - Static method in class com.sure.tool.util.NumberUtil
阶乘。
fail(String) - Static method in class com.sure.tool.lang.Result
失败结果(仅信息)。
fail(String, Object...) - Static method in class com.sure.tool.lang.Assert
无条件抛出断言失败异常。
fail(String, Throwable) - Static method in class com.sure.tool.lang.Result
失败结果(信息 + 异常)。
fail(Throwable) - Static method in class com.sure.tool.lang.Result
失败结果(携带异常)。
fastRandomNanoId(int) - Static method in class com.sure.tool.id.NanoIdUtil
快速生成(ThreadLocalRandom,非加密安全,适合高吞吐批量场景)。
fastSimpleUUID() - Static method in class com.sure.tool.util.IdUtil
快速 UUID(不含连字符,性能优先)。
FieldUtil - Class in com.sure.tool.bean
字段操作工具类,参考 Hutool 的 FieldUtil 设计。
FifoCache<K,V> - Class in com.sure.tool.cache
先进先出缓存:容量满时淘汰最早写入的条目,参考 Hutool 的 FIFOCache 设计。
FifoCache(int) - Constructor for class com.sure.tool.cache.FifoCache
创建 FIFO 缓存。
file(String...) - Static method in class com.sure.tool.io.FileUtil
拼接路径为 File。
FileTailer - Class in com.sure.tool.io
文件 tail -f 监控:虚拟线程增量读文件追加内容,按行回调,支持日志轮转自动重开。
FileUtil - Class in com.sure.tool.io
文件工具类,参考 Hutool 的 FileUtil 设计。
fill(T, Map) - Static method in class com.sure.tool.bean.BeanUtil
用 Map 填充 Bean 属性(值为 null 的键跳过,不覆盖已有值)。
fillAfter(String, int, char) - Static method in class com.sure.tool.util.StrUtil
后补位:字符串不足指定长度时在后面填充字符。
fillBefore(String, int, char) - Static method in class com.sure.tool.util.StrUtil
前补位:字符串不足指定长度时在前面填充字符。
filter() - Method in class com.sure.tool.io.WatchOptions
事件路径过滤器。
filter(PathFilter) - Method in class com.sure.tool.io.WatchOptions
事件路径过滤器(默认不过滤)。
filter(Iterable, Predicate) - Static method in class com.sure.tool.collection.IterUtil
过滤可迭代对象,返回新 List。
filter(Collection, Predicate) - Static method in class com.sure.tool.collection.CollStreamUtil
过滤出新 List(保持顺序)。
filter(Collection, Predicate) - Static method in class com.sure.tool.collection.CollUtil
过滤集合(返回新列表)。
filter(Predicate) - Method in class com.sure.tool.fluent.FluentList
按条件过滤。
filter(Predicate) - Method in class com.sure.tool.lang.Option
谓词过滤(不满足转空)。
filter(List, Predicate) - Static method in class com.sure.tool.collection.ListUtil
过滤:仅保留满足谓词的元素(保序)。
filter(Map, Predicate) - Static method in class com.sure.tool.collection.MapUtil
按条件过滤 Map(不修改原 Map)。
filter(Set, Predicate) - Static method in class com.sure.tool.collection.SetUtil
过滤:仅保留满足谓词的元素(保序)。
filterKeys(Predicate) - Method in class com.sure.tool.fluent.FluentMap
按键过滤。
filterToList(Iterator, Predicate) - Static method in class com.sure.tool.collection.IterUtil
过滤迭代器,返回新 List(消耗迭代器)。
filterValues(Predicate) - Method in class com.sure.tool.fluent.FluentMap
按值过滤。
findAll(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
查找所有匹配的字符串。
findAll(String, CharSequence, int) - Static method in class com.sure.tool.util.ReUtil
查找所有匹配并返回指定分组。
findNode(TreeNode, T) - Static method in class com.sure.tool.collection.TreeUtil
按节点 ID 深度优先查找。
firstEntryOrNull(Map) - Static method in class com.sure.tool.collection.SeqUtil
安全取有序 Map 的首条目。
firstKey() - Method in class com.sure.tool.collection.OrderedMap
第一个键,空 Map 返回 null。
firstKeyOrNull(Map) - Static method in class com.sure.tool.collection.SeqUtil
安全取有序 Map 的首键。
firstNonBlank(String...) - Static method in class com.sure.tool.util.StrUtil
返回第一个非空白字符串。
firstNonNull(T...) - Static method in class com.sure.tool.lang.NullUtil
取首个非 null 值(委托 ArrayUtil.firstNonNull(T...))。
firstNonNull(T...) - Static method in class com.sure.tool.util.ArrayUtil
返回第一个非 null 的元素。
firstOrNull(Collection) - Static method in class com.sure.tool.collection.SeqUtil
安全取首元素。
flatMap(Collection) - Static method in class com.sure.tool.collection.CollUtil
展平一层嵌套集合。
flatMap(Function) - Method in class com.sure.tool.lang.Option
平铺映射。
flatMap(Function) - Method in class com.sure.tool.lang.Result
平铺映射(失败短路保留原错误;mapper 返回 null 视为成功 null 值)。
flatMap(List, Function) - Static method in class com.sure.tool.collection.ListUtil
扁平映射:将每个元素展开为其子列表并依次拼接,内层 null 列表跳过。
flatten(Collection) - Static method in class com.sure.tool.collection.CollUtil
两级扁平化:将「集合的集合」展开为单层列表,内层 null 集合跳过。
flatten(List) - Static method in class com.sure.tool.collection.TreeUtil
展平森林为节点列表(深度优先)。
floor(double) - Static method in class com.sure.tool.util.NumberUtil
向下取整。
Fluent - Class in com.sure.tool.fluent
Fluent API 统一工厂入口(Fluent API 全面化门面)。
FluentList<E> - Class in com.sure.tool.fluent
链式集合构建与变换(Fluent API 全面化第二项)。
FluentMap<K,V> - Class in com.sure.tool.fluent
链式 Map 构建与变换(Fluent API 全面化第三项)。
FluentString - Class in com.sure.tool.fluent
链式字符串管道(Fluent API 全面化首项)。
fnv1a64(byte[]) - Static method in class com.sure.tool.codec.HashUtil
FNV-1a 64 位。
fnv1a64(String) - Static method in class com.sure.tool.codec.HashUtil
FNV-1a 64 位(字符串,UTF-8)。
followRedirects(boolean) - Method in class com.sure.tool.http.HttpClientBuilder
是否跟随重定向(默认 true)。
followRedirects(boolean) - Method in class com.sure.tool.http.HttpRequest
是否自动跟随重定向(默认 true)。
forEach(Iterator, Consumer) - Static method in class com.sure.tool.collection.IterUtil
遍历迭代器并执行消费操作(消耗迭代器)。
form(String, File...) - Method in class com.sure.tool.http.HttpRequest
添加文件字段(multipart/form-data),支持同一字段多个文件。
form(String, Object) - Method in class com.sure.tool.http.HttpRequest
添加表单参数(POST 发送 application/x-www-form-urlencoded,值会 URL 编码)。
form(Map) - Method in class com.sure.tool.http.HttpRequest
批量添加表单参数。
format(CharSequence, Object...) - Static method in class com.sure.tool.util.StrUtil
字符串格式化,使用一对花括号作为占位符,如 format("你好,&#123;&#125;", "世界")。
format(String, int) - Static method in class com.sure.tool.xml.XmlUtil
格式化 XML(缩进美化)。
format(LocalDate) - Static method in class com.sure.tool.date.DateUtil
格式化 LocalDate(yyyy-MM-dd)。
format(LocalDateTime) - Static method in class com.sure.tool.date.DateUtil
格式化 LocalDateTime(yyyy-MM-dd HH:mm:ss)。
format(Date) - Static method in class com.sure.tool.date.DateUtil
格式化日期时间(yyyy-MM-dd HH:mm:ss)。
format(Date, String) - Static method in class com.sure.tool.date.DateUtil
按格式格式化日期。
formatBetween(Date, Date) - Static method in class com.sure.tool.date.DateUtil
两时间差的可读文本(x天x小时x分x秒)。
formatChineseDate(Date) - Static method in class com.sure.tool.date.DateUtil
中文格式日期(2026年9月16日)。
formatChineseDateTime(Date) - Static method in class com.sure.tool.date.DateUtil
中文格式日期时间(2026年9月16日 15:30:45)。
formatDate(Date) - Static method in class com.sure.tool.date.DateUtil
格式化日期(yyyy-MM-dd)。
formatTime(Date) - Static method in class com.sure.tool.date.DateUtil
格式化时间(HH:mm:ss)。
formFiles(Map) - Method in class com.sure.tool.http.HttpRequest
批量添加文件字段(每字段一个文件)。
FoundWord - Class in com.sure.tool.dfa
敏感词命中结果:命中的词 + 在文本中的起止索引(含两端),参考 Hutool 的 FoundWord 设计。
FoundWord(String, int, int) - Constructor for class com.sure.tool.dfa.FoundWord
创建命中结果。
frequency(Collection, T) - Static method in class com.sure.tool.collection.CollUtil
统计元素在集合中出现的次数(基于 Objects.equals(Object, Object))。
from(Collection) - Static method in class com.sure.tool.fluent.FluentList
从既有集合创建列表管道(防御拷贝,原集合修改不影响管道)。
from(Map) - Static method in class com.sure.tool.fluent.FluentMap
从既有 Map 创建管道(防御拷贝,插入顺序保留,原 Map 修改不影响管道)。
fromName(Class, String) - Static method in class com.sure.tool.util.EnumUtil
按名称获取枚举(精确匹配)。
fromName(Class, String, boolean) - Static method in class com.sure.tool.util.EnumUtil
按名称获取枚举。
fromOrdinal(Class, int) - Static method in class com.sure.tool.util.EnumUtil
按序号获取枚举。
fromString(Class, String) - Static method in class com.sure.tool.util.EnumUtil
按 toString 获取枚举。
fromUnicode(String) - Static method in class com.sure.tool.util.EmojiUtil
\\uXXXX 转义还原为 emoji/字符。

G

GBK - Static variable in class com.sure.tool.util.CharsetUtil
GBK
gcd(long, long) - Static method in class com.sure.tool.util.NumberUtil
最大公约数(欧几里得算法)。
GENERAL - Static variable in class com.sure.tool.lang.PatternPool
通用单词(字母数字下划线)
generateKey() - Static method in class com.sure.tool.crypto.AesUtil
生成随机 AES 密钥(Base64 编码,32 字节 = AES-256)。
generateKey() - Static method in class com.sure.tool.crypto.DesUtil
Deprecated.
生成 DES 密钥(8 字节,Hex 返回)。
generateKey() - Static method in class com.sure.tool.crypto.Sm4Util
生成 16 字节(128 位)随机 SM4 密钥。
generateKeyPair() - Static method in class com.sure.tool.crypto.RsaUtil
生成密钥对(2048 位)。
generateKeyPair() - Static method in class com.sure.tool.crypto.Sm2Util
生成 SM2 密钥对。
generateKeyPair(int) - Static method in class com.sure.tool.crypto.RsaUtil
生成密钥对。
generateKeyPair(String) - Static method in class com.sure.tool.crypto.EcdhUtil
生成指定算法的密钥对。
generateKeyPair(String) - Static method in class com.sure.tool.crypto.MlKemUtil
生成指定参数的 ML-KEM 密钥对。
gensalt() - Static method in class com.sure.tool.crypto.BCryptUtil
生成默认 work factor(10)的 BCrypt 盐串。
gensalt(int) - Static method in class com.sure.tool.crypto.BCryptUtil
生成指定 work factor 的 BCrypt 盐串。
get() - Method in class com.sure.tool.fluent.FluentString
终端:返回当前字符串。
get() - Method in class com.sure.tool.lang.Option
获取值(空抛 NoSuchElementException)。
get() - Method in class com.sure.tool.lang.Result
获取成功值(失败抛 NoSuchElementException)。
get(byte[], int) - Static method in class com.sure.tool.util.BitUtil
获取字节数组指定位(位序按大端:index 0 为第 1 字节最高位)。
get(int) - Method in class com.sure.tool.collection.OrderedMap
按插入顺序读取第 index 个值,越界返回 null。
get(int) - Method in class com.sure.tool.fluent.FluentList
终端:按索引取元素(越界抛 IndexOutOfBoundsException)。
get(int) - Method in class com.sure.tool.thread.StripedLock
按索引直接获取段锁(越界自动取模)。
get(int, int) - Static method in class com.sure.tool.util.BitUtil
获取 int 指定位(0 为最低位)。
get(long, int) - Static method in class com.sure.tool.util.BitUtil
获取 long 指定位(0 为最低位)。
get(Class) - Static method in class com.sure.tool.util.Singleton
获取类单例(默认构造器创建)。
get(Class, Object...) - Static method in class com.sure.tool.util.Singleton
获取类单例(按参数构造器创建)。
get(Object) - Method in class com.sure.tool.collection.CaseInsensitiveMap
 
get(Object) - Method in class com.sure.tool.thread.StripedLock
按 key 获取对应段锁。
get(Object, int) - Static method in class com.sure.tool.util.ArrayUtil
获取数组中指定索引的元素。
get(Object, int, Object) - Static method in class com.sure.tool.util.ArrayUtil
获取数组中指定索引的元素,越界时返回默认值。
get(String) - Static method in class com.sure.tool.config.SettingUtil
获取原始配置值(分层查找)。
get(String) - Static method in class com.sure.tool.http.HttpRequest
GET 请求。
get(String) - Static method in class com.sure.tool.http.HttpUtil
GET 请求。
get(String) - Static method in class com.sure.tool.util.SystemUtil
获取系统属性。
get(String, CharSequence, int) - Static method in class com.sure.tool.util.ReUtil
提取第一个匹配的指定分组。
get(String, CharSequence, String) - Static method in class com.sure.tool.util.ReUtil
提取第一个匹配的指定命名分组。
get(String, String) - Static method in class com.sure.tool.util.SystemUtil
获取系统属性,不存在返回默认值。
get(String, Proxy) - Static method in class com.sure.tool.http.HttpUtil
GET 请求(走代理)。
get(String, Map) - Static method in class com.sure.tool.http.HttpUtil
GET 请求(参数拼接到 query)。
get(String, Map, int) - Static method in class com.sure.tool.http.HttpUtil
GET 请求。
get(Collection, int) - Static method in class com.sure.tool.collection.CollUtil
获取指定索引的元素(负数从末尾倒数)。
get(Collection, int, T) - Static method in class com.sure.tool.collection.CollUtil
获取集合中指定索引的元素,越界或空集合时返回默认值。
get(List, int) - Static method in class com.sure.tool.collection.ListUtil
越界安全取值:索引越界时返回 null,负数从尾部定位(-1 表示末尾元素)。
get(Map, K, V) - Static method in class com.sure.tool.collection.MapUtil
获取值,key 不存在时返回默认值。
get(K) - Method in interface com.sure.tool.cache.Cache
读取缓存值,不存在或已过期返回 null。
get(K) - Method in class com.sure.tool.cache.FifoCache
 
get(K) - Method in class com.sure.tool.cache.LfuCache
 
get(K) - Method in class com.sure.tool.cache.LruCache
 
get(K) - Method in class com.sure.tool.cache.TimedCache
读取缓存值(过期返回 null 并移除)。
get(K) - Method in class com.sure.tool.cache.WeakCache
读取缓存值;已过期或已被 GC 回收返回 null 并移除。
get(K) - Method in class com.sure.tool.collection.BiMap
按键取值。
get(K) - Method in class com.sure.tool.collection.MultiMap
获取指定键关联的所有值;键不存在时返回空不可变列表(不抛异常)。
get(K) - Method in class com.sure.tool.fluent.FluentMap
终端:按键取值(键不存在或为 null 返回 null)。
get(T[], int) - Static method in class com.sure.tool.util.ArrayUtil
安全读取数组元素,越界或 null 返回 null。
get(T[], int, T) - Static method in class com.sure.tool.util.ArrayUtil
安全读取数组元素,越界或 null 返回默认值。
getAbsolutePath(File) - Static method in class com.sure.tool.io.FileUtil
获取绝对路径。
getAge(String) - Static method in class com.sure.tool.util.IdcardUtil
计算周岁年龄。
getAge(Date) - Static method in class com.sure.tool.date.DateUtil
计算周岁年龄。
getAlgorithm() - Method in class com.sure.tool.jwt.JWT
获取算法名。
getAllGroupMap(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
获取第一个匹配的所有分组,返回带分组名的 Map(键:分组名或数字索引)。
getAllGroups(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
获取第一个匹配的所有分组。
getArgs() - Method in class com.sure.tool.system.ProcessInfo
启动参数(可为空)。
getAvailableProcessors() - Static method in class com.sure.tool.system.SystemInfo
可用处理器核数。
getBean(int, Class) - Method in class com.sure.tool.json.JSONArray
读取并转换为 Bean。
getBean(String, Class) - Method in class com.sure.tool.json.JSONObject
读取并转换为 Bean。
getBeanClass() - Method in class com.sure.tool.bean.BeanDesc
Bean 类。
getBeanDesc(Class) - Static method in class com.sure.tool.bean.BeanUtil
获取 Bean 描述(带缓存)。
getBigDecimal(int) - Method in class com.sure.tool.json.JSONArray
取 BigDecimal 值(金额场景)。
getBigDecimal(int, BigDecimal) - Method in class com.sure.tool.json.JSONArray
取 BigDecimal 值,越界或转换失败返回默认值。
getBigDecimal(String) - Method in class com.sure.tool.json.JSONObject
取 BigDecimal 值(金额场景)。
getBigDecimal(String) - Method in class com.sure.tool.lang.Dict
获取 BigDecimal 值。
getBigDecimal(String, BigDecimal) - Method in class com.sure.tool.config.Props
读取 BigDecimal,不存在或解析失败返回默认值。
getBigDecimal(String, BigDecimal) - Method in class com.sure.tool.json.JSONObject
取 BigDecimal 值,缺失或转换失败返回默认值。
getBigDecimal(String, BigDecimal) - Method in class com.sure.tool.lang.Dict
获取 BigDecimal 值,缺失或转换失败返回默认值。
getBigDecimal(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
取 BigDecimal。
getBigDecimal(Map, Object, BigDecimal) - Static method in class com.sure.tool.collection.MapUtil
取 BigDecimal(带默认值)。
getBigInteger(int) - Method in class com.sure.tool.json.JSONArray
取 BigInteger 值。
getBigInteger(int, BigInteger) - Method in class com.sure.tool.json.JSONArray
取 BigInteger 值,越界或转换失败返回默认值。
getBigInteger(String) - Method in class com.sure.tool.json.JSONObject
取 BigInteger 值。
getBigInteger(String) - Method in class com.sure.tool.lang.Dict
获取 BigInteger 值。
getBigInteger(String, BigInteger) - Method in class com.sure.tool.json.JSONObject
取 BigInteger 值,缺失或转换失败返回默认值。
getBigInteger(String, BigInteger) - Method in class com.sure.tool.lang.Dict
获取 BigInteger 值,缺失或转换失败返回默认值。
getBigInteger(Map, K) - Static method in class com.sure.tool.collection.MapUtil
从 Map 中取 BigInteger 类型的值。
getBirthDate(String) - Static method in class com.sure.tool.util.IdcardUtil
获取出生日期(yyyy-MM-dd)。
getBool(int) - Method in class com.sure.tool.json.JSONArray
读取布尔值,越界返回 null。
getBool(String) - Method in class com.sure.tool.json.JSONObject
读取布尔值,缺失返回 null。
getBool(String) - Method in class com.sure.tool.lang.Dict
获取布尔值(支持 true/false、1/0、yes/no、是/否 等)。
getBool(String) - Method in class com.sure.tool.util.Props
取 boolean(true/1/yes 视为 true,忽略大小写)。
getBool(String, boolean) - Method in class com.sure.tool.config.Props
读取 boolean,不存在返回默认值。
getBool(String, boolean) - Method in class com.sure.tool.json.JSONObject
获取布尔值,缺失或转换失败返回默认值。
getBool(String, boolean) - Method in class com.sure.tool.util.Props
取 boolean(带默认值)。
getBool(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
获取 boolean 值(缺失返回 false)。
getBool(Map, Object, boolean) - Static method in class com.sure.tool.collection.MapUtil
获取 boolean 值。
getBoolean(String) - Static method in class com.sure.tool.config.SettingUtil
获取布尔配置(分层查找)。
getBoolean(String, boolean) - Static method in class com.sure.tool.config.SettingUtil
获取布尔配置(分层查找)。
getByPath(String, String) - Static method in class com.sure.tool.json.JSONUtil
按 JSONPath 查询并取首个匹配值,无匹配返回 null。
getByte(int) - Method in class com.sure.tool.json.JSONArray
取 byte 值。
getByte(int, byte) - Method in class com.sure.tool.json.JSONArray
取 byte 值。
getByte(String) - Method in class com.sure.tool.json.JSONObject
取 byte 值。
getByte(String, byte) - Method in class com.sure.tool.json.JSONObject
取 byte 值。
getByte(Map, Object, byte) - Static method in class com.sure.tool.collection.MapUtil
取 byte(含默认值)。
getBytes(String) - Static method in class com.sure.tool.http.HttpUtil
获取响应字节。
getBytes(String, int) - Static method in class com.sure.tool.http.HttpUtil
获取响应字节。
getByXPath(String, String) - Static method in class com.sure.tool.xml.XmlUtil
使用 XPath 表达式从 XML 中取值。
getCanonicalPath(File) - Static method in class com.sure.tool.io.FileUtil
获取规范化绝对路径(解析 .
getCanonicalPath(String) - Static method in class com.sure.tool.io.FileUtil
获取规范化绝对路径。
getCapacity() - Method in class com.sure.tool.cache.LruCache
获取容量上限。
getCapacity() - Method in class com.sure.tool.cache.WeakCache
容量上限。
getCause() - Method in class com.sure.tool.lang.Result
获取失败异常(成功返回 null)。
getCell(Row, int) - Static method in class com.sure.tool.poi.PoiUtil
按索引取单元格,越界或空返回 null。
getChar(int) - Method in class com.sure.tool.json.JSONArray
取 char 值。
getChar(int, char) - Method in class com.sure.tool.json.JSONArray
取 char 值。
getChar(String) - Method in class com.sure.tool.json.JSONObject
取 char 值。
getChar(String, char) - Method in class com.sure.tool.json.JSONObject
取 char 值。
getChar(Map, Object, char) - Static method in class com.sure.tool.collection.MapUtil
取 char(含默认值)。
getCharset() - Method in class com.sure.tool.http.HttpResponse
响应字符集:从 Content-Type 解析,解析失败或无 charset 时回退 UTF-8。
getChildren() - Method in class com.sure.tool.collection.TreeNode
子节点列表。
getChineseZodiac(int) - Static method in class com.sure.tool.date.DateUtil
获取农历生肖(按公历年,1900 年为鼠年)。
getClaim(String, String, String) - Static method in class com.sure.tool.jwt.JwtUtil
获取指定 claim 值。
getClass(Object) - Static method in class com.sure.tool.util.ClassUtil
获取对象的类。
getClass(Object) - Static method in class com.sure.tool.util.ObjectUtil
获取对象的类。
getClass(Type) - Static method in class com.sure.tool.util.TypeUtil
将任意 Type 解析为运行时类。
getClassByName(String) - Static method in class com.sure.tool.util.ReflectUtil
按类名获取 Class,支持基础类型(如 int、boolean)与包装类型映射。
getClassName(Object) - Static method in class com.sure.tool.util.ObjectUtil
类名(数组含维数,如 int[] → int[])。
getClassName(Object, boolean) - Static method in class com.sure.tool.util.ClassUtil
获取对象的类名。
getCode() - Method in class com.sure.tool.captcha.AbstractCaptcha
 
getCode() - Method in interface com.sure.tool.captcha.Captcha
获取验证码文本。
getCodeBase64() - Method in class com.sure.tool.captcha.AbstractCaptcha
获取验证码图片的 Data URI(可直接用于 <img src>)。
getCommand() - Method in class com.sure.tool.system.ProcessInfo
可执行命令(可为空)。
getCommandLine() - Static method in class com.sure.tool.system.SystemInfo
当前进程命令行。
getCommonPrefix(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
多个字符串的公共前缀(参考 commons-lang StringUtils.getCommonPrefix)。
getConstantValue(Class, String) - Static method in class com.sure.tool.bean.FieldUtil
读取静态常量值。
getCookie(String) - Method in class com.sure.tool.http.HttpResponse
获取指定 Cookie 的值(来自 Set-Cookie 响应头),无则返回 null。
getCores() - Method in class com.sure.tool.system.CpuInfo
逻辑处理器核数。
getCount() - Method in class com.sure.tool.collection.Multiset.Entry
该元素出现次数。
getCpuDurationNanos() - Method in class com.sure.tool.system.ProcessInfo
累计 CPU 时长(纳秒)。
getCpuInfo() - Static method in class com.sure.tool.system.SystemInfo
CPU 快照:核数 / 平均负载 / 进程级与系统级使用率(com.sun.management 扩展)。
getDatacenterId() - Method in class com.sure.tool.lang.Snowflake
获取数据中心 ID。
getDate(int) - Method in class com.sure.tool.json.JSONArray
取日期值(支持时间戳与常见日期字符串,转换失败返回 null)。
getDate(String) - Method in class com.sure.tool.json.JSONObject
取日期值(支持时间戳与常见日期字符串,转换失败返回 null)。
getDate(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
取 Date(支持时间戳与常见日期格式)。
getDayOfMonth(Date) - Static method in class com.sure.tool.date.DateUtil
获取日(1-31)。
getDefaultAlphabet() - Static method in class com.sure.tool.id.NanoIdUtil
获取默认字母表副本(防止外部修改)。
getDefaultTimeout() - Method in class com.sure.tool.cache.WeakCache
默认 TTL(毫秒),<=0 表示不过期。
getDefaultValue(Class) - Static method in class com.sure.tool.util.ClassUtil
获取基本类型的默认值。
getDisks() - Static method in class com.sure.tool.system.SystemInfo
所有磁盘根卷快照。
getDomain(String) - Static method in class com.sure.tool.http.URLUtil
获取域名(不含端口)。
getDomain(String) - Static method in class com.sure.tool.util.UrlUtil
提取主机域名(去协议、端口、路径与查询参数)。
getDouble(int) - Method in class com.sure.tool.json.JSONArray
读取浮点数,越界或无法解析返回 null。
getDouble(String) - Static method in class com.sure.tool.config.SettingUtil
获取双精度配置(分层查找)。
getDouble(String) - Method in class com.sure.tool.json.JSONObject
读取浮点数,缺失或无法解析返回 null。
getDouble(String) - Method in class com.sure.tool.lang.Dict
获取浮点值。
getDouble(String) - Method in class com.sure.tool.util.Props
取 double。
getDouble(String, double) - Method in class com.sure.tool.config.Props
读取 double,不存在或解析失败返回默认值。
getDouble(String, double) - Static method in class com.sure.tool.config.SettingUtil
获取双精度配置(分层查找)。
getDouble(String, double) - Method in class com.sure.tool.util.Props
取 double(带默认值)。
getDouble(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
获取 double 值(缺失返回 0)。
getDouble(Map, Object, double) - Static method in class com.sure.tool.collection.MapUtil
获取 double 值。
getElement() - Method in class com.sure.tool.collection.Multiset.Entry
元素。
getEndIndex() - Method in class com.sure.tool.dfa.FoundWord
结束索引(含)。
getEnum(Map, K, Class) - Static method in class com.sure.tool.collection.MapUtil
从 Map 中取指定枚举类型的值。
getErrorMessage() - Method in class com.sure.tool.lang.Result
获取失败信息(成功返回 null)。
getExecutor() - Static method in class com.sure.tool.thread.ThreadUtil
获取共享线程池。
getExpireSecondsLeft(String, String) - Static method in class com.sure.tool.jwt.JwtUtil
获取剩余有效秒数。
getExpireTime(String, String) - Static method in class com.sure.tool.jwt.JwtUtil
获取过期时间。
getExpression() - Method in class com.sure.tool.cron.CronPattern
原始表达式。
getExt(File) - Static method in class com.sure.tool.io.FileUtil
获取文件扩展名(不含点,小写)。
getExt(String) - Static method in class com.sure.tool.io.FileUtil
获取文件扩展名(不含点)。
getField() - Method in class com.sure.tool.bean.PropDesc
字段。
getField(Class, String) - Static method in class com.sure.tool.bean.FieldUtil
按名称查找字段(含父类)。
getField(Class, String) - Static method in class com.sure.tool.util.ReflectUtil
获取类或父类中的字段(自动设置可访问)。
getFieldMap(Class) - Static method in class com.sure.tool.util.ReflectUtil
获取类及其父类的全部字段(含继承),字段名 → 字段。
getFieldNames(Class) - Static method in class com.sure.tool.bean.FieldUtil
获取字段名列表。
getFields(Class) - Static method in class com.sure.tool.bean.FieldUtil
获取类层级上的全部声明字段(子类优先,按声明顺序,重名字段去重)。
getFields(Class) - Static method in class com.sure.tool.util.ReflectUtil
获取类及其父类的全部字段。
getFieldValue(Object, String) - Static method in class com.sure.tool.util.ReflectUtil
获取对象字段值(支持静态字段,对象传 null)。
getFieldValues(Class, String) - Static method in class com.sure.tool.util.EnumUtil
获取枚举常量指定字段的值列表。
getFileSeparator() - Static method in class com.sure.tool.util.SystemUtil
文件分隔符(Windows 为 \,Linux 为 /)。
getFirst(Iterable) - Static method in class com.sure.tool.collection.IterUtil
获取可迭代对象首元素。
getFirst(Collection) - Static method in class com.sure.tool.collection.CollUtil
获取第一个元素。
getFirst(Iterator) - Static method in class com.sure.tool.collection.IterUtil
获取迭代器首元素(消耗一个元素)。
getFirstNoneNull(Iterable) - Static method in class com.sure.tool.collection.IterUtil
获取可迭代对象首个非 null 元素。
getFirstNoneNull(Iterator) - Static method in class com.sure.tool.collection.IterUtil
获取迭代器首个非 null 元素(消耗迭代器直至命中或结束)。
getFloat(int) - Method in class com.sure.tool.json.JSONArray
取 float 值。
getFloat(int, float) - Method in class com.sure.tool.json.JSONArray
取 float 值。
getFloat(String) - Method in class com.sure.tool.json.JSONObject
取 float 值。
getFloat(String, float) - Method in class com.sure.tool.json.JSONObject
取 float 值。
getFloat(Map, Object, float) - Static method in class com.sure.tool.collection.MapUtil
取 float(含默认值)。
getFragment(String) - Static method in class com.sure.tool.util.UrlUtil
提取锚点 fragment(不含 #;无锚点返回空串)。
getFreeMemory() - Static method in class com.sure.tool.system.SystemInfo
系统可用物理内存(OS MXBean 支持时)。
getFreeMemory() - Static method in class com.sure.tool.util.SystemUtil
JVM 空闲内存(字节)。
getFreeSpace() - Method in class com.sure.tool.system.DiskInfo
空闲空间(字节)。
getGanzhi(Date) - Static method in class com.sure.tool.date.DateUtil
年份天干地支(如 2026 → 丙午)。
getGender(String) - Static method in class com.sure.tool.util.IdcardUtil
获取性别(倒数第二位奇数男、偶数女)。
getGetter() - Method in class com.sure.tool.bean.PropDesc
getter 方法。
getHeader() - Method in class com.sure.tool.jwt.JWT
获取 header。
getHeapCommitted() - Method in class com.sure.tool.system.RuntimeInfo
堆已提交内存(字节)。
getHeapMax() - Method in class com.sure.tool.system.RuntimeInfo
堆最大内存(字节)。
getHeapUsed() - Method in class com.sure.tool.system.RuntimeInfo
堆已用内存(字节)。
getHeight() - Method in class com.sure.tool.captcha.AbstractCaptcha
图片高度。
getHost(String) - Static method in class com.sure.tool.http.URLUtil
获取主机(含端口,非默认端口时)。
getHost(String) - Static method in class com.sure.tool.util.UrlUtil
获取主机。
getHour(Date) - Static method in class com.sure.tool.date.DateUtil
获取小时(0-23)。
getId() - Method in class com.sure.tool.collection.TreeNode
节点 ID。
getImageBase64() - Method in class com.sure.tool.captcha.AbstractCaptcha
 
getImageBase64() - Method in interface com.sure.tool.captcha.Captcha
获取 data URI(data:image/png;base64,...)
getImageBytes() - Method in class com.sure.tool.captcha.AbstractCaptcha
 
getImageBytes() - Method in interface com.sure.tool.captcha.Captcha
获取验证码图片字节(PNG 格式)。
getInt(int) - Method in class com.sure.tool.json.JSONArray
读取整数,越界或无法解析返回 null。
getInt(String) - Static method in class com.sure.tool.config.SettingUtil
获取整型配置(分层查找)。
getInt(String) - Method in class com.sure.tool.json.JSONObject
读取整数,缺失或无法解析返回 null。
getInt(String) - Method in class com.sure.tool.lang.Dict
获取整数值(支持数字类型与字符串转换)。
getInt(String) - Method in class com.sure.tool.util.Props
取 int。
getInt(String, int) - Method in class com.sure.tool.config.Props
读取 int,不存在或解析失败返回默认值。
getInt(String, int) - Static method in class com.sure.tool.config.SettingUtil
获取整型配置(分层查找)。
getInt(String, int) - Method in class com.sure.tool.util.Props
取 int(带默认值)。
getInt(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
获取 int 值(缺失返回 0)。
getInt(Map, Object, int) - Static method in class com.sure.tool.collection.MapUtil
获取 int 值。
getInterfereCount() - Method in class com.sure.tool.captcha.AbstractCaptcha
干扰数量。
getIter(Iterable) - Static method in class com.sure.tool.collection.IterUtil
获取可迭代对象的迭代器。
getJavaHome() - Static method in class com.sure.tool.util.SystemUtil
Java 安装目录。
getJavaVersion() - Static method in class com.sure.tool.system.SystemInfo
Java 运行时版本(如 21.0.1)。
getJavaVersion() - Static method in class com.sure.tool.util.SystemUtil
Java 版本,如 "17.0.3"。
getJobCount() - Static method in class com.sure.tool.cron.CronUtil
已注册任务数。
getJson(String) - Static method in class com.sure.tool.http.HttpUtil
GET JSON 请求。
getJson(String, int) - Static method in class com.sure.tool.http.HttpUtil
GET JSON 请求。
getJSONArray(int) - Method in class com.sure.tool.json.JSONArray
读取嵌套 JSON 数组。
getJSONArray(String) - Method in class com.sure.tool.json.JSONObject
读取嵌套 JSON 数组。
getJSONObject(int) - Method in class com.sure.tool.json.JSONArray
读取嵌套 JSON 对象。
getJSONObject(String) - Method in class com.sure.tool.json.JSONObject
读取嵌套 JSON 对象,值为 Map 时自动转换。
getJvmFreeMemory() - Static method in class com.sure.tool.system.SystemInfo
JVM 堆空闲内存。
getJvmMaxMemory() - Static method in class com.sure.tool.system.SystemInfo
JVM 最大堆内存。
getJvmName() - Method in class com.sure.tool.system.RuntimeInfo
JVM 名称(如 OpenJDK 64-Bit Server VM)。
getJvmName() - Static method in class com.sure.tool.system.SystemInfo
JVM 名称(如 OpenJDK 64-Bit Server VM)。
getJvmTotalMemory() - Static method in class com.sure.tool.system.SystemInfo
JVM 堆内存总量。
getJvmUsedMemory() - Static method in class com.sure.tool.system.SystemInfo
JVM 堆已用内存(总量 - 空闲)。
getJvmVendor() - Method in class com.sure.tool.system.RuntimeInfo
JVM 厂商。
getJvmVendor() - Static method in class com.sure.tool.system.SystemInfo
JVM 供应商。
getJvmVersion() - Method in class com.sure.tool.system.RuntimeInfo
JVM 版本。
getJvmVersion() - Static method in class com.sure.tool.system.SystemInfo
JVM 版本。
getKey(V) - Method in class com.sure.tool.collection.BiMap
按值取键。
getLast(String, CharSequence, int) - Static method in class com.sure.tool.util.ReUtil
提取最后一个匹配的指定分组。
getLast(String, CharSequence, String) - Static method in class com.sure.tool.util.ReUtil
提取最后一个匹配的指定命名分组。
getLast(Collection) - Static method in class com.sure.tool.collection.CollUtil
获取最后一个元素。
getLeft() - Method in record class com.sure.tool.lang.Pair
取左值。
getLeft() - Method in record class com.sure.tool.lang.Triple
取第一个值。
getLineSeparator() - Static method in class com.sure.tool.util.SystemUtil
行分隔符。
getLiveThreadCount() - Method in class com.sure.tool.system.RuntimeInfo
当前存活线程数(含守护线程)。
getLocalDate(int) - Method in class com.sure.tool.json.JSONArray
取 LocalDate 值。
getLocalDate(String) - Method in class com.sure.tool.json.JSONObject
取 LocalDate 值。
getLocalDate(Map, K) - Static method in class com.sure.tool.collection.MapUtil
从 Map 中取 LocalDate 类型的值。
getLocalDateTime(int) - Method in class com.sure.tool.json.JSONArray
取 LocalDateTime 值。
getLocalDateTime(String) - Method in class com.sure.tool.json.JSONObject
取 LocalDateTime 值。
getLocalDateTime(Map, K) - Static method in class com.sure.tool.collection.MapUtil
从 Map 中取 LocalDateTime 类型的值。
getLocalhostStr() - Static method in class com.sure.tool.util.NetUtil
获取本机主机名。
getLocalIpv4() - Static method in class com.sure.tool.util.NetUtil
获取本机局域网 IPv4 地址(优先非回环网卡)。
getLocalMacAddress() - Static method in class com.sure.tool.util.NetUtil
获取本机 MAC 地址(格式 AA:BB:CC:DD:EE:FF,优先非回环网卡)。
getLock(String) - Static method in class com.sure.tool.thread.LockUtil
获取(或创建)按 key 区分的全局互斥锁。
getLong(int) - Method in class com.sure.tool.json.JSONArray
读取长整数,越界或无法解析返回 null。
getLong(String) - Static method in class com.sure.tool.config.SettingUtil
获取长整型配置(分层查找)。
getLong(String) - Method in class com.sure.tool.json.JSONObject
读取长整数,缺失或无法解析返回 null。
getLong(String) - Method in class com.sure.tool.lang.Dict
获取长整数值。
getLong(String) - Method in class com.sure.tool.util.Props
取 long。
getLong(String, long) - Method in class com.sure.tool.config.Props
读取 long,不存在或解析失败返回默认值。
getLong(String, long) - Static method in class com.sure.tool.config.SettingUtil
获取长整型配置(分层查找)。
getLong(String, long) - Method in class com.sure.tool.util.Props
取 long(带默认值)。
getLong(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
获取 long 值(缺失返回 0)。
getLong(Map, Object, long) - Static method in class com.sure.tool.collection.MapUtil
获取 long 值。
getLower() - Method in class com.sure.tool.collection.RangeSet.Range
区间下界。
getMaxMemory() - Static method in class com.sure.tool.util.SystemUtil
JVM 最大可用内存(字节)。
getMessage(Throwable) - Static method in class com.sure.tool.util.ExceptionUtil
获取异常的简要信息(类型 + 消息)。
getMethod(Class, String, Class...) - Static method in class com.sure.tool.util.ReflectUtil
获取指定方法。
getMethodByName(Class, String) - Static method in class com.sure.tool.util.ReflectUtil
按方法名获取方法(含继承链,参数不限)。
getMethods(Class) - Static method in class com.sure.tool.util.ReflectUtil
获取类的全部公共方法(含继承)。
getMiddle() - Method in record class com.sure.tool.lang.Triple
取第二个值。
getMillis() - Method in enum class com.sure.tool.date.DateUnit
获取该单位的毫秒数。
getMimeType(String) - Static method in class com.sure.tool.io.FileUtil
根据文件扩展名获取常用 MIME 类型(不区分大小写)。
getMonth(Date) - Static method in class com.sure.tool.date.DateUtil
获取月份(1-12)。
getMonthName(int) - Static method in class com.sure.tool.date.DateUtil
获取月份中文名(一月~十二月)。
getMonthName(Date) - Static method in class com.sure.tool.date.DateUtil
获取日期所在月份的中文名。
getName() - Method in class com.sure.tool.bean.PropDesc
属性名。
getName() - Method in class com.sure.tool.collection.TreeNode
节点名称。
getName(File) - Static method in class com.sure.tool.io.FileUtil
获取文件名。
getNextTimeAfter(Date) - Method in class com.sure.tool.cron.CronPattern
计算指定时刻之后的下一次匹配时间(不含指定时刻本身)。
getNonHeapUsed() - Method in class com.sure.tool.system.RuntimeInfo
非堆已用内存(字节)。
getObj(String) - Method in class com.sure.tool.config.Props
读取原始对象(字符串值)。
getOrElse(T) - Method in class com.sure.tool.lang.Option
取值;空返回默认值。
getOrElse(T) - Method in class com.sure.tool.lang.Result
获取成功值;失败返回默认值。
getOrElseGet(Supplier) - Method in class com.sure.tool.lang.Option
取值;空由供应器提供。
getOrElseGet(Supplier) - Method in class com.sure.tool.lang.Result
获取成功值;失败时由供应器提供。
getOrNull() - Method in class com.sure.tool.lang.Result
获取成功值;失败返回 null。
getOrPut(K, Supplier) - Method in interface com.sure.tool.cache.Cache
读取缓存;不存在或已过期时通过 loader 计算并写入。
getOsArch() - Static method in class com.sure.tool.system.SystemInfo
CPU 架构。
getOsArch() - Static method in class com.sure.tool.util.SystemUtil
操作系统架构,如 "amd64"。
getOsName() - Static method in class com.sure.tool.system.SystemInfo
操作系统名称。
getOsName() - Static method in class com.sure.tool.util.SystemUtil
操作系统名称,如 "Windows 11"。
getOsVersion() - Static method in class com.sure.tool.system.SystemInfo
操作系统版本。
getOsVersion() - Static method in class com.sure.tool.util.SystemUtil
操作系统版本。
getPackageName(Class) - Static method in class com.sure.tool.util.ClassUtil
获取包名。
getPackagePath(Class) - Static method in class com.sure.tool.util.ClassUtil
获取包路径(点号转斜杠)。
getParam(String, String) - Static method in class com.sure.tool.http.URLUtil
获取单个 query 参数值,不存在返回 null。
getParam(String, String) - Static method in class com.sure.tool.util.UrlUtil
获取单个查询参数。
getParams(String) - Static method in class com.sure.tool.http.URLUtil
解析 query 参数为 Map(键值均解码)。
getParams(String) - Static method in class com.sure.tool.util.UrlUtil
获取查询参数。
getParent(File) - Static method in class com.sure.tool.io.FileUtil
获取文件的父目录绝对路径。
getParent(String) - Static method in class com.sure.tool.io.FileUtil
获取路径的父目录路径(不含末尾分隔符)。
getParentId() - Method in class com.sure.tool.collection.TreeNode
父节点 ID。
getParentPid() - Method in class com.sure.tool.system.ProcessInfo
父进程 PID(可为空)。
getPath() - Method in class com.sure.tool.system.DiskInfo
磁盘根路径(如 /、C:\)。
getPath(String) - Static method in class com.sure.tool.http.URLUtil
获取路径(不含 query)。
getPath(String) - Static method in class com.sure.tool.util.UrlUtil
获取路径。
getPathSeparator() - Static method in class com.sure.tool.util.SystemUtil
路径分隔符。
getPayload() - Method in class com.sure.tool.jwt.JWT
获取 payload。
getPid() - Method in class com.sure.tool.system.ProcessInfo
进程 PID。
getPid() - Static method in class com.sure.tool.system.SystemInfo
当前进程 PID。
getPort(String) - Static method in class com.sure.tool.util.UrlUtil
获取端口(未指定时返回 -1)。
getPrimitive(Class) - Static method in class com.sure.tool.util.ClassUtil
包装类转基本类型。
getPrivateKey() - Method in class com.sure.tool.crypto.Sm2Util.Sm2KeyPair
 
getPrivateKeyBase64(KeyPair) - Static method in class com.sure.tool.crypto.RsaUtil
私钥转 Base64(PKCS#8)。
getProcessCount() - Static method in class com.sure.tool.system.SystemInfo
当前 JVM 可见进程数。
getProcessCpuLoad() - Method in class com.sure.tool.system.CpuInfo
本进程 CPU 使用率(0-1,采样窗口),无数据返回 -1。
getProcessCpuTime() - Method in class com.sure.tool.system.CpuInfo
本进程累计 CPU 时间(纳秒)。
getProcesses() - Static method in class com.sure.tool.system.SystemInfo
当前 JVM 可见的全部进程快照。
getProcesses(int) - Static method in class com.sure.tool.system.SystemInfo
取进程快照(按启动时间降序)。
getProcessorCount() - Static method in class com.sure.tool.thread.ThreadUtil
处理器核数。
getProp(String) - Method in class com.sure.tool.bean.BeanDesc
获取属性描述,不存在返回 null。
getProperties() - Method in class com.sure.tool.util.Props
获取底层 Properties。
getProperty(Object, String) - Static method in class com.sure.tool.bean.BeanUtil
读取属性值。
getPropNames() - Method in class com.sure.tool.bean.BeanDesc
属性名集合。
getProps() - Method in class com.sure.tool.bean.BeanDesc
全部属性描述。
getProvinceCode(String) - Static method in class com.sure.tool.util.IdcardUtil
获取省份编码(前两位)。
getPublicKeyBase64(KeyPair) - Static method in class com.sure.tool.crypto.RsaUtil
公钥转 Base64(X.509)。
getPublicKeyBytes() - Method in class com.sure.tool.crypto.Sm2Util.Sm2KeyPair
 
getPublicX() - Method in class com.sure.tool.crypto.Sm2Util.Sm2KeyPair
 
getPublicY() - Method in class com.sure.tool.crypto.Sm2Util.Sm2KeyPair
 
getQuery(String) - Static method in class com.sure.tool.http.URLUtil
获取 query 字符串(不含问号),无 query 返回 null。
getQuery(String) - Static method in class com.sure.tool.util.UrlUtil
提取查询串(不含 ?;无查询返回空串)。
getRange(int, int, int) - Static method in class com.sure.tool.util.BitUtil
提取 int 的位范围 [from, to)(from 为低位),右对齐返回。
getRange(long, int, int) - Static method in class com.sure.tool.util.BitUtil
提取 long 的位范围 [from, to)。
getRawClass() - Method in class com.sure.tool.lang.TypeReference
返回捕获泛型对应的运行时类。
getRemainingTime(K) - Method in class com.sure.tool.cache.TimedCache
获取键的剩余存活时间。
getResource(String) - Static method in class com.sure.tool.io.ResourceUtil
解析资源位置为 URL。
getRight() - Method in record class com.sure.tool.lang.Pair
取右值。
getRight() - Method in record class com.sure.tool.lang.Triple
取第三个值。
getRootCause(Throwable) - Static method in class com.sure.tool.util.ExceptionUtil
定位最根本的异常(cause 链末端)。
getRow(Sheet, int) - Static method in class com.sure.tool.poi.PoiUtil
按索引取行,越界或空返回 null。
getRuntimeInfo() - Static method in class com.sure.tool.system.SystemInfo
JVM 运行时快照:版本 / 启动 / 堆与非堆内存 / 线程数。
getScheme(String) - Static method in class com.sure.tool.util.UrlUtil
获取协议(scheme)。
getSetter() - Method in class com.sure.tool.bean.PropDesc
setter 方法。
getSheet(Workbook, int) - Static method in class com.sure.tool.poi.PoiUtil
按索引取 Sheet,越界或空返回 null。
getShort(int) - Method in class com.sure.tool.json.JSONArray
取 short 值。
getShort(int, short) - Method in class com.sure.tool.json.JSONArray
取 short 值。
getShort(String) - Method in class com.sure.tool.json.JSONObject
取 short 值。
getShort(String, short) - Method in class com.sure.tool.json.JSONObject
取 short 值。
getShort(Map, Object, short) - Static method in class com.sure.tool.collection.MapUtil
取 short(含默认值)。
getShortClassName(Class) - Static method in class com.sure.tool.util.ClassUtil
获取简单类名。
getSnowflakeNextId() - Static method in class com.sure.tool.util.IdUtil
获取下一个雪花 ID(默认工作节点,线程安全)。
getStackTrace(Throwable) - Static method in class com.sure.tool.util.ExceptionUtil
将异常堆栈转为多行字符串。
getStartIndex() - Method in class com.sure.tool.dfa.FoundWord
起始索引(含)。
getStartTime() - Method in class com.sure.tool.system.ProcessInfo
启动时间(可为空)。
getStartTime() - Method in class com.sure.tool.system.RuntimeInfo
JVM 启动时间(epoch 毫秒)。
getStartTime() - Static method in class com.sure.tool.system.SystemInfo
JVM 启动时间。
getStartTimeText() - Method in class com.sure.tool.system.ProcessInfo
启动时间格式化(本地时区),无启动时间返回空串。
getStatus() - Method in class com.sure.tool.http.HttpResponse
响应状态码。
getStatus() - Method in class com.sure.tool.system.ProcessInfo
进程状态(如 ALIVE/ZOMBIE/TERMINATED)。
getStatusCode() - Method in exception class com.sure.tool.http.HttpException
响应状态码,无响应时为 -1。
getStr(int) - Method in class com.sure.tool.json.JSONArray
读取字符串值,越界或为 null 返回 null。
getStr(String) - Method in class com.sure.tool.config.Props
读取字符串,不存在返回 null。
getStr(String) - Method in class com.sure.tool.json.JSONObject
读取字符串值,缺失或类型不符返回 null。
getStr(String) - Method in class com.sure.tool.lang.Dict
获取字符串值。
getStr(String) - Method in class com.sure.tool.util.Props
取字符串。
getStr(String, String) - Method in class com.sure.tool.config.Props
读取字符串,不存在或为空返回默认值。
getStr(String, String) - Method in class com.sure.tool.json.JSONObject
读取字符串值。
getStr(String, String) - Method in class com.sure.tool.lang.Dict
获取字符串值,不存在或为空返回默认值。
getStr(String, String) - Method in class com.sure.tool.util.Props
取字符串(带默认值)。
getStr(Map, Object) - Static method in class com.sure.tool.collection.MapUtil
获取 String 值(不存在时返回 null)。
getStr(Map, Object, String) - Static method in class com.sure.tool.collection.MapUtil
获取 String 值。
getStream(String) - Static method in class com.sure.tool.io.ResourceUtil
打开资源输入流,调用方负责关闭。
getString(String) - Static method in class com.sure.tool.config.SettingUtil
获取字符串配置(分层查找,无默认值)。
getString(String, String) - Static method in class com.sure.tool.config.SettingUtil
获取字符串配置(分层查找)。
getSystemCpuLoad() - Method in class com.sure.tool.system.CpuInfo
系统整体 CPU 使用率(0-1),无数据返回 -1。
getSystemLoadAverage() - Method in class com.sure.tool.system.CpuInfo
系统最近 1 分钟平均负载(Unix),Windows 返回 -1。
getSystemLoadAverage() - Static method in class com.sure.tool.system.SystemInfo
系统平均负载(Unix 系),Windows 上不可用。
getThreadCount() - Method in class com.sure.tool.system.RuntimeInfo
已启动线程总数。
getTime() - Method in class com.sure.tool.lang.StopWatch
当前累计耗时(毫秒),与 StopWatch.getTotalTimeMillis() 一致。
getTmpDir() - Static method in class com.sure.tool.io.FileUtil
系统临时目录。
getTmpDirPath() - Static method in class com.sure.tool.io.FileUtil
系统临时目录路径。
getTotalMemory() - Static method in class com.sure.tool.system.SystemInfo
系统物理内存总量(OS MXBean 支持时)。
getTotalMemory() - Static method in class com.sure.tool.util.SystemUtil
JVM 总内存(字节)。
getTotalSpace() - Method in class com.sure.tool.system.DiskInfo
总容量(字节)。
getTotalThreadCount() - Static method in class com.sure.tool.util.SystemUtil
获取当前 JVM 活动线程数。
getTotalTimeMillis() - Method in class com.sure.tool.lang.StopWatch
累计耗时(毫秒)。
getTotalTimeNanos() - Method in class com.sure.tool.lang.StopWatch
累计耗时(纳秒)。
getTotalTimeSeconds() - Method in class com.sure.tool.lang.StopWatch
累计耗时(秒)。
getType() - Method in class com.sure.tool.bean.PropDesc
属性类型。
getType() - Method in class com.sure.tool.lang.TypeReference
返回捕获的泛型类型。
getType(TypeReference) - Static method in class com.sure.tool.util.TypeUtil
取类型引用捕获的泛型类型。
getTypeArgument(Type, int) - Static method in class com.sure.tool.util.TypeUtil
获取参数化类型第 index 个泛型实参对应的运行时类。
getTypeArguments(Class) - Static method in class com.sure.tool.util.ReflectUtil
解析类泛型父类的类型参数(TypeVariable → 实际 Class)。
getTypeArguments(Type) - Static method in class com.sure.tool.util.TypeUtil
获取参数化类型的全部泛型实参运行时类(不可变列表)。
getUpper() - Method in class com.sure.tool.collection.RangeSet.Range
区间上界。
getUptime() - Method in class com.sure.tool.system.RuntimeInfo
JVM 已运行时长(毫秒)。
getUptime() - Static method in class com.sure.tool.system.SystemInfo
JVM 已运行时长。
getUrl() - Method in class com.sure.tool.http.HttpResponse
最终请求 URL(跟随重定向后)。
getUsableLocalPort() - Static method in class com.sure.tool.util.NetUtil
随机分配一个本机当前可用端口(0-65535)。
getUsableSpace() - Method in class com.sure.tool.system.DiskInfo
当前用户可用空间(字节)。
getUsageRate() - Method in class com.sure.tool.system.DiskInfo
使用率(0-1)。
getUsedSpace() - Method in class com.sure.tool.system.DiskInfo
已用空间(字节)= 总容量 - 可用空间。
getUser() - Method in class com.sure.tool.system.ProcessInfo
启动用户(可为空)。
getUserDir() - Static method in class com.sure.tool.util.SystemUtil
当前工作目录。
getUserHome() - Static method in class com.sure.tool.util.SystemUtil
用户主目录。
getUserHomePath() - Static method in class com.sure.tool.io.FileUtil
用户主目录路径。
getUserName() - Static method in class com.sure.tool.util.SystemUtil
当前用户名。
getWeekOfMonth(Date) - Static method in class com.sure.tool.date.DateUtil
日期在当月中的第几周。
getWeekOfYear(Date) - Static method in class com.sure.tool.date.DateUtil
获取一年中的第几周。
getWidth() - Method in class com.sure.tool.captcha.AbstractCaptcha
图片宽度。
getWord() - Method in class com.sure.tool.dfa.FoundWord
命中的敏感词。
getWordCount() - Method in class com.sure.tool.dfa.WordTree
敏感词总数。
getWorkerId() - Method in class com.sure.tool.lang.Snowflake
获取工作机器 ID。
getYear(Date) - Static method in class com.sure.tool.date.DateUtil
获取年份。
getZodiac(Date) - Static method in class com.sure.tool.date.DateUtil
获取星座。
GraphUtil - Class in com.sure.tool.graph
有向图算法工具:拓扑排序 / 环检测 / DFS / BFS / 可达性 / 无权最短路径。
gray(BufferedImage) - Static method in class com.sure.tool.image.ImageUtil
转为灰度图。
groupBy(Collection, Function...) - Static method in class com.sure.tool.collection.CollUtil
多键链式分组(对齐 Guava Multimaps.index)。
groupBy(Collection, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
按键分组:Map<键, List<元素>>,保持首次出现顺序。
groupBy(Collection, Function, Supplier) - Static method in class com.sure.tool.collection.CollStreamUtil
按键分组到自定义容器。
groupBy(Collection, Function, Function) - Static method in class com.sure.tool.collection.CollUtil
双键嵌套分组(对齐 Guava Multimaps.index 多层语义)。
groupBy2(Collection, Function, Function) - Static method in class com.sure.tool.collection.CollUtil
按两级键进行嵌套分组:先按 keyMapper1 分组,组内再按 keyMapper2 分组(均保序)。
groupByKey(Collection, Function) - Static method in class com.sure.tool.collection.CollUtil
按 key 分组。
groupByKeyValue(Collection, Function, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
按键聚合值:Map<键, 值>,同键后者覆盖前者。
gzip(byte[]) - Static method in class com.sure.tool.io.GzipUtil
压缩字节数组。
gzip(String) - Static method in class com.sure.tool.io.GzipUtil
压缩字符串为 GZIP 字节(UTF-8)。
gzip(String, Charset) - Static method in class com.sure.tool.io.GzipUtil
压缩字符串为 GZIP 字节(指定字符集)。
gzipFile(Path, Path) - Static method in class com.sure.tool.io.GzipUtil
压缩文件为 GZIP 文件。
GzipUtil - Class in com.sure.tool.io
GZIP 压缩工具类:字符串/字节数组/文件压缩与解压,基于 JDK 内置 GZIP 实现,零依赖。

H

hasBlank(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
多个字符串中是否存在空白。
hasChildren() - Method in class com.sure.tool.collection.TreeNode
是否有子节点。
hasContent() - Method in class com.sure.tool.collection.StrJoiner
是否有内容。
hasCycle(DiGraph) - Static method in class com.sure.tool.graph.GraphUtil
环检测(Kahn 计数法:能完成全量拓扑排序则无环)。
hasEmpty(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
多个字符串中是否存在空串(null 或长度为 0)。
hasField(Class, String) - Static method in class com.sure.tool.util.ReflectUtil
判断类(含父类)是否存在指定字段。
hasField(Class, String, boolean) - Static method in class com.sure.tool.util.ReflectUtil
判断类(含父类)是否存在指定字段。
hash(String) - Static method in class com.sure.tool.crypto.BCryptUtil
使用默认 work factor(10)对密码做 BCrypt 哈希。
hash(String, int) - Static method in class com.sure.tool.crypto.BCryptUtil
使用指定 work factor 对密码做 BCrypt 哈希。
hashCode() - Method in record class com.sure.tool.collection.Difference
Returns a hash code value for this object.
hashCode() - Method in record class com.sure.tool.collection.Partition
Returns a hash code value for this object.
hashCode() - Method in class com.sure.tool.dfa.FoundWord
 
hashCode() - Method in record class com.sure.tool.graph.DiGraph.Edge
Returns a hash code value for this object.
hashCode() - Method in record class com.sure.tool.lang.Pair
Returns a hash code value for this object.
hashCode() - Method in record class com.sure.tool.lang.Triple
Returns a hash code value for this object.
hashCode() - Method in record class com.sure.tool.lang.WeightRandom.WeightObj
Returns a hash code value for this object.
hashCode(Object) - Static method in class com.sure.tool.util.ObjectUtil
获取对象的 hashCode。
hashFunctions() - Method in class com.sure.tool.collection.BloomFilterUtil
哈希函数个数(k)。
HashUtil - Class in com.sure.tool.codec
哈希工具类,参考 Hutool 的 DigestUtil / HashUtil 设计。
hasNext() - Method in class com.sure.tool.io.IoUtil.LineIterator
 
hasNull(Iterable) - Static method in class com.sure.tool.collection.IterUtil
判断可迭代对象是否包含 null 元素。
hasNull(Iterator) - Static method in class com.sure.tool.collection.IterUtil
判断迭代器是否包含 null 元素(消耗迭代器)。
head(String) - Static method in class com.sure.tool.http.HttpUtil
HEAD 请求,返回响应头。
head(String, int) - Static method in class com.sure.tool.http.HttpUtil
HEAD 请求,返回响应头。
header(String) - Method in class com.sure.tool.http.CookieStore
构建指定主机的 Cookie 请求头(自动剔除已过期项),无可用 Cookie 时返回 null。
header(String) - Method in class com.sure.tool.http.HttpResponse
指定响应头的第一个值(大小写不敏感),不存在返回 null。
header(String, Object) - Method in class com.sure.tool.http.HttpRequest
添加请求头(同名覆盖)。
header(Map) - Method in class com.sure.tool.http.HttpRequest
批量添加请求头。
headers() - Method in class com.sure.tool.http.HttpResponse
全部响应头(大小写保持原始,值为不可变 List)。
headerValues(String) - Method in class com.sure.tool.http.HttpResponse
指定响应头的全部值(大小写不敏感),不存在返回空 List。
HexUtil - Class in com.sure.tool.codec
十六进制编解码工具类,参考 Hutool 的 HexUtil 设计。
HexUtil - Class in com.sure.tool.util
十六进制编解码工具:字节与十六进制字符串互转,零依赖。
hide(CharSequence, int, int, char) - Static method in class com.sure.tool.util.StrUtil
掩码:将 [fromInclude, toExclude) 区间字符替换为掩码符。
hide(String) - Static method in class com.sure.tool.util.BankCardUtil
银行卡号掩码:保留前 4 位与后 4 位,中间以 * 填充。
hide(String) - Static method in class com.sure.tool.util.CreditCodeUtil
掩码:隐藏第 3~14 位(行政区划+主体标识码),保留首 2 位与末 4 位。
hkdf(byte[], byte[], byte[], int) - Static method in class com.sure.tool.crypto.KdfUtil
HKDF extract-then-expand:从输入密钥材料派生指定长度的字节材料(默认 HKDF-SHA256)。
hkdf(byte[], byte[], byte[], int, String) - Static method in class com.sure.tool.crypto.KdfUtil
HKDF extract-then-expand:指定哈希算法的重载版本。
HKDF_SHA256 - Static variable in class com.sure.tool.crypto.KdfUtil
HKDF-SHA256 算法名
HKDF_SHA384 - Static variable in class com.sure.tool.crypto.KdfUtil
HKDF-SHA384 算法名
HKDF_SHA512 - Static variable in class com.sure.tool.crypto.KdfUtil
HKDF-SHA512 算法名
hkdfExpand(SecretKey, byte[], int, String) - Static method in class com.sure.tool.crypto.KdfUtil
HKDF expand-only:基于已提取的伪随机密钥(PRK)进行扩展(默认 HKDF-SHA256)。
hmac(String, byte[], byte[]) - Static method in class com.sure.tool.crypto.HmacUtil
通用 HMAC 计算。
hmacMd5Hex(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-MD5 十六进制。
hmacSha1(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
HMAC-SHA1 十六进制。
hmacSha1Base64(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-SHA1 Base64。
hmacSha1Hex(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-SHA1 十六进制。
hmacSha256(String, String) - Static method in class com.sure.tool.crypto.SecureUtil
HMAC-SHA256 十六进制。
hmacSha256Base64(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-SHA256 Base64。
hmacSha256Hex(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-SHA256 十六进制(最常用)。
hmacSha384Base64(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HmacSHA384 Base64 摘要。
hmacSha384Hex(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HmacSHA384 十六进制摘要。
hmacSha512Base64(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HmacSHA512 Base64 摘要。
hmacSha512Hex(String, String) - Static method in class com.sure.tool.crypto.HmacUtil
HMAC-SHA512 十六进制。
HmacUtil - Class in com.sure.tool.crypto
HMAC 消息认证码工具类(MD5/SHA-1/SHA-256/SHA-512),参考 Hutool 的 HMac 设计。
hour(Date) - Static method in class com.sure.tool.date.DateUtil
小时(0~23)。
HOUR - Enum constant in enum class com.sure.tool.date.DateUnit
时
HtmlUtil - Class in com.sure.tool.util
HTML 工具类:转义/反转义、去标签、文本清洗,零依赖。
HttpClientBuilder - Class in com.sure.tool.http
JDK HttpClient 构建器:连接池(keep-alive 复用)、虚拟线程 executor、代理、超时与 TLS 版本。
HttpException - Exception Class in com.sure.tool.http
HTTP 请求异常,携带响应状态码。
HttpException(String) - Constructor for exception class com.sure.tool.http.HttpException
创建异常(无状态码)。
HttpException(String, int) - Constructor for exception class com.sure.tool.http.HttpException
创建异常。
HttpException(String, Throwable) - Constructor for exception class com.sure.tool.http.HttpException
创建异常。
HttpRequest - Class in com.sure.tool.http
HTTP 请求(链式构建):URL/请求头/query/表单/body/超时/重定向,基于 HttpURLConnection 的零依赖封装, 参考 Hutool 的 HttpRequest 设计。
HttpResponse - Class in com.sure.tool.http
HTTP 响应:状态码、响应头、响应体(已完整读取并缓存,连接已释放),参考 Hutool 的 HttpResponse 设计。
HttpUtil - Class in com.sure.tool.http
HTTP 请求工具类,基于 HttpURLConnection 的零依赖封装,参考 Hutool 的 HttpUtil 设计。

I

ID_CARD_15 - Static variable in class com.sure.tool.lang.PatternPool
15 位身份证
ID_CARD_18 - Static variable in class com.sure.tool.lang.PatternPool
18 位身份证
idCardNum(String) - Static method in class com.sure.tool.util.DesensitizedUtil
身份证号脱敏:保留前 3 位和后 4 位,如 110101********1234。
IdcardUtil - Class in com.sure.tool.util
身份证号码工具类(中国大陆 15/18 位),参考 Hutool 的 IdcardUtil 设计。
identical(String, String) - Static method in class com.sure.tool.text.StrSimilarity
完全相同返回 1.0,否则返回 StrSimilarity.similarity(String, String) 相似度分数。
identityToString(Object) - Static method in class com.sure.tool.util.ObjectUtil
获取对象的身份标识字符串:类名@十六进制哈希。
IdUtil - Class in com.sure.tool.util
ID 生成工具类,参考 Hutool 的 IdUtil 设计。
ifPresent(Consumer) - Method in class com.sure.tool.lang.Option
有值时消费(终止式)。
IGNORE_NULL - Enum constant in enum class com.sure.tool.bean.CopyOption
源属性值为 null 时跳过,不覆盖目标属性(默认覆盖)。
IGNORE_READONLY - Enum constant in enum class com.sure.tool.bean.CopyOption
目标属性只读时跳过(默认抛 CopyException 提示漏拷)。
ignoreNull() - Method in class com.sure.tool.bean.BeanCopier.Copier
源属性值为 null 时跳过。
ignoreReadonly() - Method in class com.sure.tool.bean.BeanCopier.Copier
目标属性只读时跳过(默认抛 CopyException)。
ImageUtil - Class in com.sure.tool.image
图像工具类:基于 JDK ImageIO 的读写、缩放、裁剪、灰度、旋转、格式转换,零依赖。
include(String...) - Method in class com.sure.tool.bean.BeanCopier.Copier
仅拷贝指定字段(白名单)。
inDegree(V) - Method in class com.sure.tool.graph.DiGraph
入度。
indexOf(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
查找子串首次出现位置。
indexOf(Object, Object) - Static method in class com.sure.tool.util.ArrayUtil
查找元素在数组中的索引。
indexOf(List, Object) - Static method in class com.sure.tool.collection.CollUtil
在列表中查找元素下标。
indexOfAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
返回任一给定子串在原字符串中最早出现的位置。
indexOfIgnoreCase(CharSequence, CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
忽略大小写查找子串位置。
insert(Object, int, Object...) - Static method in class com.sure.tool.util.ArrayUtil
指定位置插入元素(返回新数组)。
INSTANCE - Static variable in class com.sure.tool.util.VersionComparator
共享实例(无状态,线程安全)
interpolationSearch(long[], long) - Static method in class com.sure.tool.util.SearchUtil
插值查找(适用于近似均匀分布的升序数组);命中返回下标,否则返回 -1。
intersection(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
交集(去重)。
intersection(List, List) - Static method in class com.sure.tool.collection.ListUtil
交集(保序去重):按左列表出现顺序。
intersection(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
交集(保序,按左集合出现顺序)。
intervalMs() - Method in class com.sure.tool.util.TimeInterval
距起点毫秒数(不重置)。
intervalNs() - Method in class com.sure.tool.util.TimeInterval
距起点纳秒数(不重置)。
intervalSecond() - Method in class com.sure.tool.util.TimeInterval
距起点秒数(不重置,保留毫秒精度)。
intToBytes(int) - Static method in class com.sure.tool.util.BytesUtil
int 转 4 字节(大端)。
inverse(Map) - Static method in class com.sure.tool.collection.MapUtil
键值互换(适用于 BiMap 场景;重复值后者覆盖前者)。
invoke(Object, String, Class[], Object...) - Static method in class com.sure.tool.util.ReflectUtil
调用对象方法(显式指定参数类型,用于重载精确匹配)。
invoke(Object, String, Object...) - Static method in class com.sure.tool.util.ReflectUtil
调用对象方法。
invokeAll(List) - Static method in class com.sure.tool.thread.ThreadUtil
用虚拟线程并发执行有返回值任务并返回结果(按入参顺序)。
invokeAll(List, Duration) - Static method in class com.sure.tool.thread.ThreadUtil
并行执行全部任务并在指定时限内返回结果(限时版本)。
invokeConstructor(Class, Object...) - Static method in class com.sure.tool.util.ReflectUtil
实例化对象。
invokeStatic(Class, String, Object...) - Static method in class com.sure.tool.util.ReflectUtil
调用静态方法。
IoUtil - Class in com.sure.tool.io
IO 流工具类,参考 Hutool 的 IoUtil 设计。
IoUtil.LineIterator - Class in com.sure.tool.io
懒加载行迭代器:IoUtil.LineIterator.next() 时才读取下一行,可关闭底层流。
ipv4(String) - Static method in class com.sure.tool.util.DesensitizedUtil
IP 地址脱敏:保留前两段,如 192.168.*.*。
IPV4 - Static variable in class com.sure.tool.lang.PatternPool
IPv4 地址
ipv4ToLong(String) - Static method in class com.sure.tool.util.NetUtil
IPv4 地址转 long(大端)。
ipv6(String) - Static method in class com.sure.tool.util.DesensitizedUtil
IPv6 地址脱敏:保留首段与末段,中间以 **** 替代。
isAllBlank(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
多个字符串是否全部为空白。
isAllEmpty(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
判断字符串数组中是否全部为空。
isAllEmpty(Collection...) - Static method in class com.sure.tool.collection.CollUtil
判断多个集合是否全部为空(null 或空集合视为空)。
isAllNotBlank(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
判断字符串数组中是否全部非空白。
isAllNotNull(Object...) - Static method in class com.sure.tool.util.ObjectUtil
是否全部非 null。
isAllNotNull(Collection...) - Static method in class com.sure.tool.collection.CollUtil
判断多个集合是否全部非空(非 null 且非空集合)。
isAllNull(Iterable) - Static method in class com.sure.tool.collection.IterUtil
判断可迭代对象是否全部为 null(空集合返回 false)。
isAllNull(Object...) - Static method in class com.sure.tool.lang.NullUtil
是否全部为 null。
isAllNull(Object...) - Static method in class com.sure.tool.util.ObjectUtil
是否全部为 null。
isAllNull(Iterator) - Static method in class com.sure.tool.collection.IterUtil
判断迭代器是否全部为 null(空迭代器返回 false)。
isAlpha(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否为纯字母(仅含字母字符)。
isAlphanumeric(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否仅含字母或数字。
isAnnotation(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为注解。
isAnyNull(Object...) - Static method in class com.sure.tool.lang.NullUtil
是否任一为 null。
isArray(Object) - Static method in class com.sure.tool.util.ArrayUtil
对象是否为数组。
isAscii85(String) - Static method in class com.sure.tool.codec.Ascii85Util
校验字符串是否为合法 Ascii85(仅字符 33–117 与 z,可带 <~ / ~> 包裹)。
isAsciiPrintable(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否全为可打印 ASCII 字符(码位 32–126,含空格)。
isAssignable(Class, Class) - Static method in class com.sure.tool.util.ClassUtil
目标类是否能接收来源类实例(含基本类型/包装类型互转)。
isBase32(String) - Static method in class com.sure.tool.codec.Base32Util
校验字符串是否为合法 Base32(仅字母 A-Z、数字 2-7 与尾部 = 填充)。
isBase58(CharSequence) - Static method in class com.sure.tool.codec.Base58Util
判断字符串是否为合法的 Base58 文本。
isBase62(CharSequence) - Static method in class com.sure.tool.codec.Base62Util
判断字符串是否为合法的 Base62 文本。
isBase64(String) - Static method in class com.sure.tool.codec.Base64Util
判断字符串是否为合法的标准 Base64(标准字符集 + 长度对齐)。
isBasicType(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为基本类型(基本类型、包装类型、String、Number、Date 等)。
isBasicType(Class) - Static method in class com.sure.tool.util.ObjectUtil
是否基本类型或其包装类(含 String、BigDecimal 等常用值类型)。
isBasicType(Object) - Static method in class com.sure.tool.util.ObjectUtil
是否基本类型或其包装类(含 String、BigDecimal 等常用值类型)。
isBean(Class) - Static method in class com.sure.tool.bean.BeanUtil
判断是否为可操作 Bean(非基础类型、非容器、非日期等)。
isBirthday(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验是否为生日(yyyyMMdd 八位,含闰年 2 月校验)。
isBlank() - Method in class com.sure.tool.fluent.FluentString
终端:是否为空白(空串或全空白)。
isBlank(CharSequence) - Static method in class com.sure.tool.util.StrUtil
字符串是否为空白:null、空串或全为空白字符。
isBlankChar(char) - Static method in class com.sure.tool.util.CharUtil
是否为空白字符(空格、制表符、换行、回车、BOM 等)。
isCausedBy(Throwable, Class) - Static method in class com.sure.tool.util.ExceptionUtil
是否由指定类型异常导致(沿 cause 链查找)。
isChinese(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为纯中文。
isClosed() - Method in class com.sure.tool.thread.Actor
是否已关闭。
isCreditCode(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验统一社会信用代码。
isDate(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验日期字符串(yyyy-MM-dd,含闰年 2 月校验)。
isDecimal(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验是否为小数(含正负号、指数可选)。
isDirectory(File) - Static method in class com.sure.tool.io.FileUtil
是否为目录。
isDirEmpty(File) - Static method in class com.sure.tool.io.FileUtil
目录是否为空(不存在或不是目录返回 false)。
isDouble(String) - Static method in class com.sure.tool.util.NumberUtil
字符串是否为浮点数(含小数或指数形式)。
isEmail(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法邮箱。
isEmoji(char) - Static method in class com.sure.tool.util.CharUtil
判断字符是否为 Emoji(BMP 内常见 Emoji 区段)。
isEmoji(int) - Static method in class com.sure.tool.util.CharUtil
判断码点是否为 Emoji(支持补充平面 Emoji,如 U+1F600)。
isEmoji(String) - Static method in class com.sure.tool.util.EmojiUtil
判断字符串是否仅由 Emoji 组成(空字符串视为 false)。
isEmpty() - Method in interface com.sure.tool.cache.Cache
是否为空。
isEmpty() - Method in class com.sure.tool.cache.FifoCache
 
isEmpty() - Method in class com.sure.tool.cache.LfuCache
 
isEmpty() - Method in class com.sure.tool.cache.LruCache
 
isEmpty() - Method in class com.sure.tool.cache.TimedCache
 
isEmpty() - Method in class com.sure.tool.cache.WeakCache
是否为空。
isEmpty() - Method in class com.sure.tool.collection.BiMap
是否为空。
isEmpty() - Method in class com.sure.tool.collection.MultiMap
是否为空。
isEmpty() - Method in class com.sure.tool.collection.Multiset
是否为空。
isEmpty() - Method in class com.sure.tool.collection.RangeSet
是否为空。
isEmpty() - Method in class com.sure.tool.fluent.FluentList
终端:是否为空。
isEmpty() - Method in class com.sure.tool.fluent.FluentMap
终端:是否为空。
isEmpty() - Method in class com.sure.tool.fluent.FluentString
终端:是否为空串。
isEmpty() - Method in class com.sure.tool.http.CookieStore
是否为空。
isEmpty() - Method in class com.sure.tool.lang.Option
是否为空。
isEmpty(CharSequence) - Static method in class com.sure.tool.util.StrUtil
字符串是否为空:null 或长度为 0。
isEmpty(Iterable) - Static method in class com.sure.tool.collection.CollUtil
Iterable 是否为空。
isEmpty(Iterable) - Static method in class com.sure.tool.collection.IterUtil
判断可迭代对象是否为空。
isEmpty(Object) - Static method in class com.sure.tool.collection.CollUtil
数组是否为空。
isEmpty(Object) - Static method in class com.sure.tool.util.ArrayUtil
数组是否为空。
isEmpty(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象是否为空:null、空字符串、空集合、空 Map、空数组、空 Optional。
isEmpty(Collection) - Static method in class com.sure.tool.collection.CollUtil
集合是否为空。
isEmpty(Enumeration) - Static method in class com.sure.tool.collection.CollUtil
枚举是否为空。
isEmpty(Iterator) - Static method in class com.sure.tool.collection.CollUtil
迭代器是否为空。
isEmpty(Iterator) - Static method in class com.sure.tool.collection.IterUtil
判断迭代器是否为空(不消耗元素)。
isEmpty(List) - Static method in class com.sure.tool.collection.ListUtil
列表是否为空。
isEmpty(Map) - Static method in class com.sure.tool.collection.CollUtil
Map 是否为空。
isEmpty(Map) - Static method in class com.sure.tool.collection.MapUtil
Map 是否为空。
isEnum(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为枚举。
isEqual(String, String) - Static method in class com.sure.tool.util.VersionUtil
判断两个版本号是否相等(忽略构建元数据与前导零)。
isEquals(double, double, double) - Static method in class com.sure.tool.util.NumberUtil
两个 double 在指定误差范围内是否相等。
isEven(long) - Static method in class com.sure.tool.util.NumberUtil
是否为偶数。
isExpired(String, String) - Static method in class com.sure.tool.jwt.JwtUtil
判断 token 是否已过期。
isFailure() - Method in class com.sure.tool.lang.Result
是否失败。
isFalse(boolean, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言表达式为假。
isFalse(Boolean) - Static method in class com.sure.tool.util.BooleanUtil
是否为 false。
isFile(File) - Static method in class com.sure.tool.io.FileUtil
是否为文件。
isFileSeparator(char) - Static method in class com.sure.tool.util.CharUtil
是否为文件路径分隔符('/' 或 '\\')。
isGeneral(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为通用单词(字母数字下划线)。
isGeneralWithChinese(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验是否为通用字符(汉字、字母、数字、下划线)。
isGreaterThan(String, String) - Static method in class com.sure.tool.util.VersionUtil
判断 version1 是否大于 version2。
isGreaterThanOrEqual(String, String) - Static method in class com.sure.tool.util.VersionUtil
判断 version1 是否大于或等于 version2。
isHexChar(char) - Static method in class com.sure.tool.util.CharUtil
是否为十六进制字符(0-9、a-f、A-F)。
isHexNumber(String) - Static method in class com.sure.tool.codec.HexUtil
是否为十六进制数字字符串(支持 0x / 0X 前缀)。
isHexNumber(String) - Static method in class com.sure.tool.util.HexUtil
判断字符串是否为十六进制数(可含 0x/0X 前缀,忽略空白)。
isHttp(String) - Static method in class com.sure.tool.util.UrlUtil
是否为 HTTP 或 HTTPS 协议。
isHttps(String) - Static method in class com.sure.tool.util.UrlUtil
判断是否为 https 协议。
isHttpUrl(String) - Static method in class com.sure.tool.http.URLUtil
是否 http/https 链接。
isIdCard(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法身份证号码(15/18 位)。
isIn(Date, Date, Date) - Static method in class com.sure.tool.date.DateUtil
是否在时间区间内(含边界)。
isInCidr(String, String) - Static method in class com.sure.tool.util.NetUtil
判断 IPv4 是否位于 CIDR 网段内(对齐标准 CIDR 语义)。
isInnerIP(String) - Static method in class com.sure.tool.util.NetUtil
判断 IP 是否为内网地址(10/172.16-31/192.168/127/169.254/0 段)。
isInstanceOf(Class, Object, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言对象是指定类型实例。
isInteger(String) - Static method in class com.sure.tool.util.NumberUtil
字符串是否为整数。
isInterface(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为接口。
isIp(String) - Static method in class com.sure.tool.util.NetUtil
校验是否为合法 IP 地址(IPv4 或 IPv6)。
isIpv4(String) - Static method in class com.sure.tool.util.NetUtil
校验是否为合法 IPv4 地址。
isIpv4(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法 IPv4 地址。
isIpv6(String) - Static method in class com.sure.tool.util.NetUtil
校验是否为合法 IPv6 地址。
isIpv6(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验 IPv6 地址(含 IPv4 映射的简化校验)。
isJson(String) - Static method in class com.sure.tool.json.JSONUtil
是否为 JSON 对象或数组(以 { 或 [ 开头)。
isJsonArray(String) - Static method in class com.sure.tool.json.JSONUtil
判断字符串是否为 JSON 数组(以 [ 开头)。
isJsonObj(String) - Static method in class com.sure.tool.json.JSONUtil
判断字符串是否为 JSON 对象(以 { 开头)。
isLeapYear(int) - Static method in class com.sure.tool.date.DateUtil
是否为闰年。
isLessThan(String, String) - Static method in class com.sure.tool.util.VersionUtil
判断 version1 是否小于 version2。
isLessThanOrEqual(String, String) - Static method in class com.sure.tool.util.VersionUtil
判断 version1 是否小于或等于 version2。
isLetter(char) - Static method in class com.sure.tool.util.CharUtil
是否为英文字母或 Unicode 字母。
isLetterOrNumber(char) - Static method in class com.sure.tool.util.CharUtil
是否为字母或数字。
isLinux() - Static method in class com.sure.tool.system.SystemInfo
是否 Linux。
isLong(String) - Static method in class com.sure.tool.util.NumberUtil
是否为 long 字符串。
isLowerCase(char) - Static method in class com.sure.tool.util.CharUtil
是否为小写字母。
isLowerCase(String) - Static method in class com.sure.tool.util.StrUtil
判断是否全部为小写字母(忽略非字母字符)。
isLowerCase(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验字符串是否全部为小写字母(允许含数字)。
isMac() - Static method in class com.sure.tool.system.SystemInfo
是否 macOS。
isMac(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验 MAC 地址(xx:xx:xx:xx:xx:xx 或 xx-xx-xx-xx-xx-xx)。
isMatch(String) - Static method in class com.sure.tool.dfa.DfaUtil
文本是否完全等于某个敏感词(默认词库)。
isMatch(String) - Method in class com.sure.tool.dfa.WordTree
文本是否完全等于某个敏感词(整词匹配,不涉及停用词)。
isMatch(String, CharSequence) - Static method in class com.sure.tool.util.ReUtil
是否匹配正则(部分匹配)。
isMatch(String, String) - Static method in class com.sure.tool.util.ValidatorUtil
值是否匹配指定正则。
isMatch(Pattern, String) - Static method in class com.sure.tool.util.ValidatorUtil
值是否匹配指定模式。
isMobile(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法手机号(中国大陆)。
isMoney(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法金额(正数,最多两位小数)。
isNewer(File, File) - Static method in class com.sure.tool.io.FileUtil
判断文件是否比参考文件新(最后修改时间晚)。
isNonNull(Object) - Static method in class com.sure.tool.lang.NullUtil
是否非 null。
isNormalClass(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为普通类(非接口、非注解、非枚举、非基本类型、非数组、非抽象类)。
isNotBlank(CharSequence) - Static method in class com.sure.tool.util.StrUtil
字符串是否非空白。
isNotEmpty(CharSequence) - Static method in class com.sure.tool.util.StrUtil
字符串是否非空。
isNotEmpty(Iterable) - Static method in class com.sure.tool.collection.IterUtil
判断可迭代对象是否非空。
isNotEmpty(Object) - Static method in class com.sure.tool.util.ArrayUtil
数组是否非空。
isNotEmpty(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象是否非空。
isNotEmpty(Collection) - Static method in class com.sure.tool.collection.CollUtil
集合是否非空。
isNotEmpty(Iterator) - Static method in class com.sure.tool.collection.IterUtil
判断迭代器是否非空(不消耗元素)。
isNotEmpty(List) - Static method in class com.sure.tool.collection.ListUtil
列表是否非空。
isNotEmpty(Map) - Static method in class com.sure.tool.collection.CollUtil
Map 是否非空。
isNotEmpty(Map) - Static method in class com.sure.tool.collection.MapUtil
Map 是否非空。
isNotNull(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象是否非 null。
isNotNull(T, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言对象非 null。
isNull(Object) - Static method in class com.sure.tool.lang.NullUtil
是否为 null。
isNull(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象是否为 null。
isNull(Object, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言对象为 null。
isNumber(char) - Static method in class com.sure.tool.util.CharUtil
是否为数字字符(0-9)。
isNumber(String) - Static method in class com.sure.tool.util.NumberUtil
字符串是否为数字(支持小数、负数、科学计数法)。
isNumeric(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否为数字字符串(允许正负号、小数点)。
isNumericSpace(CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否仅含数字或空格。
ISO_8859_1 - Static variable in class com.sure.tool.util.CharsetUtil
ISO-8859-1
ISO_DATETIME_PATTERN - Static variable in class com.sure.tool.date.DateUtil
ISO 日期时间格式:yyyy-MM-dd'T'HH:mm:ss
isOdd(long) - Static method in class com.sure.tool.util.NumberUtil
是否为奇数。
isOk() - Method in class com.sure.tool.http.HttpResponse
是否 2xx 成功。
isOlder(File, File) - Static method in class com.sure.tool.io.FileUtil
判断文件是否比参考文件旧(最后修改时间早)。
isOverlap(Date, Date, Date, Date) - Static method in class com.sure.tool.date.DateUtil
判断两个时间段是否重叠(含边界相接,start < end 为前置条件)。
isPlateNumber(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法车牌号(含新能源)。
isPostalCode(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法邮政编码(中国大陆,6 位数字)。
isPresent() - Method in class com.sure.tool.lang.Option
是否有值。
isPrime(int) - Static method in class com.sure.tool.util.NumberUtil
素数判断(质数)。
isPrimitiveWrapper(Class) - Static method in class com.sure.tool.util.ClassUtil
是否为基本类型包装类。
isPublic(Field) - Static method in class com.sure.tool.bean.FieldUtil
字段是否 public。
isReachable(DiGraph, V, V) - Static method in class com.sure.tool.graph.GraphUtil
可达性判断(BFS,源可到目标则 true)。
isReadable() - Method in class com.sure.tool.bean.PropDesc
是否可读(存在 getter 或可访问字段)。
isRunning() - Method in class com.sure.tool.io.FileTailer
是否正在跟踪。
isRunning() - Method in class com.sure.tool.io.WatchDir
是否正在监听。
isRunning() - Method in class com.sure.tool.lang.StopWatch
是否正在计时。
isSameDay(Date, Date) - Static method in class com.sure.tool.date.DateUtil
是否为同一天。
isSameMonth(Date, Date) - Static method in class com.sure.tool.date.DateUtil
判断两个日期是否同一个月。
isSameOrigin(String, String) - Static method in class com.sure.tool.util.UrlUtil
判断两个 URL 是否同源(协议 + 主机 + 端口一致,忽略默认端口差异)。
isSameWeek(Date, Date) - Static method in class com.sure.tool.date.DateUtil
判断两个日期是否在同一周(ISO 周定义:周一为一周首日)。
isSameYear(Date, Date) - Static method in class com.sure.tool.date.DateUtil
判断两个日期是否同年。
isSorted(T[]) - Static method in class com.sure.tool.util.ArrayUtil
判断数组是否升序(自然顺序)。
isSorted(T[], boolean) - Static method in class com.sure.tool.util.ArrayUtil
判断数组是否有序。
isSubset(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
前者是否为后者子集(含相等)。
isSuccess() - Method in class com.sure.tool.lang.Result
是否成功。
isSuperset(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
前者是否为后者超集(含相等)。
isSupported(String) - Static method in class com.sure.tool.util.CharsetUtil
字符集是否被支持。
isSymlink(File) - Static method in class com.sure.tool.io.FileUtil
判断文件是否为符号链接。
isSymlink(String) - Static method in class com.sure.tool.io.FileUtil
判断路径是否为符号链接。
isTime(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验是否为时间格式(HH:mm:ss)。
isToday(Date) - Static method in class com.sure.tool.date.DateUtil
是否今天。
isTrue(boolean) - Static method in class com.sure.tool.lang.Assert
断言表达式为真。
isTrue(boolean, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言表达式为真。
isTrue(Boolean) - Static method in class com.sure.tool.util.BooleanUtil
是否为 true。
isUnix() - Static method in class com.sure.tool.system.SystemInfo
是否 Unix 系(Linux/macOS/BSD 等)。
isUnknown(Type) - Static method in class com.sure.tool.util.TypeUtil
判断类型是否为无边界类型变量(<T> 而未声明上界)。
isUpperCase(char) - Static method in class com.sure.tool.util.CharUtil
是否为大写字母。
isUpperCase(String) - Static method in class com.sure.tool.util.StrUtil
判断是否全部为大写字母(忽略非字母字符)。
isUpperCase(String) - Static method in class com.sure.tool.util.ValidatorUtil
校验字符串是否全部为大写字母(允许含数字)。
isUrl(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法 URL(http/https/ftp)。
isUsableLocalPort(int) - Static method in class com.sure.tool.util.NetUtil
本机指定端口当前是否可用(可成功绑定)。
isUuid(String) - Static method in class com.sure.tool.util.ValidatorUtil
是否为 UUID(含连字符)。
isValid(String) - Static method in class com.sure.tool.cron.CronPattern
校验表达式是否合法。
isValid(String) - Static method in class com.sure.tool.cron.CronUtil
校验 Cron 表达式是否合法。
isValid(String) - Static method in class com.sure.tool.crypto.BCryptUtil
校验哈希串是否为合法 BCrypt 格式。
isValid(String) - Static method in class com.sure.tool.id.UlidUtil
校验是否为合法 ULID。
isValid(String) - Static method in class com.sure.tool.util.BankCardUtil
Luhn 算法校验银行卡号是否合法。
isValidCard(String) - Static method in class com.sure.tool.util.IdcardUtil
校验身份证号码是否合法(支持 15/18 位)。
isValidCard15(String) - Static method in class com.sure.tool.util.IdcardUtil
校验 15 位身份证(仅校验出生日期合法性,15 位无校验码)。
isValidCard18(String) - Static method in class com.sure.tool.util.IdcardUtil
校验 18 位身份证(含校验码校验)。
isValidCreditCode(String) - Static method in class com.sure.tool.util.CreditCodeUtil
校验统一社会信用代码是否合法(GB 32100-2015)。
isValidIfNumber(Object) - Static method in class com.sure.tool.util.ObjectUtil
判断对象是否为有效数字值(null、空字符串或非数字返回 false)。
isValidPort(int) - Static method in class com.sure.tool.util.NetUtil
是否为合法端口号(1-65535)。
isValidPort(int) - Static method in class com.sure.tool.util.ValidatorUtil
是否为合法端口号(1-65535)。
isValidUrl(String) - Static method in class com.sure.tool.util.UrlUtil
校验是否为合法 http/https URL。
isVirtual() - Static method in class com.sure.tool.thread.ThreadUtil
判断当前线程是否为虚拟线程。
isVirtual(Thread) - Static method in class com.sure.tool.thread.ThreadUtil
判断线程是否为虚拟线程。
isWeekend(Date) - Static method in class com.sure.tool.date.DateUtil
是否为周末(周六/周日)。
isWindows() - Static method in class com.sure.tool.system.SystemInfo
是否 Windows。
isWrap(CharSequence, String, String) - Static method in class com.sure.tool.util.StrUtil
判断字符串是否被指定前后缀包裹。
isWritable() - Method in class com.sure.tool.bean.PropDesc
是否可写(存在 setter 或可访问字段)。
isXlsx(String) - Static method in class com.sure.tool.poi.PoiUtil
是否 xlsx 文件(按扩展名判断)。
isYesterday(Date) - Static method in class com.sure.tool.date.DateUtil
是否昨天。
item() - Method in record class com.sure.tool.lang.WeightRandom.WeightObj
Returns the value of the item record component.
items() - Method in class com.sure.tool.lang.WeightRandom
获取全部权重项(副本)。
iterator() - Method in class com.sure.tool.collection.Multiset
迭代器:按计数展开元素(如 a x2、b x1 → a、a、b)。
IterUtil - Class in com.sure.tool.collection
迭代器工具类,参考 Hutool 的 IterUtil 设计。

J

jaccard(String, String) - Static method in class com.sure.tool.text.StrSimilarity
Jaccard 相似度(字符集合交集/并集),0~1。
join(CharSequence, Iterable) - Static method in class com.sure.tool.util.StrUtil
使用分隔符拼接可迭代集合。
join(CharSequence, Object...) - Static method in class com.sure.tool.util.StrUtil
使用分隔符拼接对象数组。
join(Object, CharSequence) - Static method in class com.sure.tool.util.ArrayUtil
使用分隔符拼接数组。
join(String) - Method in class com.sure.tool.fluent.FluentList
终端:以分隔符拼接。
join(String) - Method in class com.sure.tool.json.JSONArray
将数组元素用分隔符拼接。
join(Collection, CharSequence) - Static method in class com.sure.tool.collection.CollUtil
拼接集合元素。
join(Collection, Function, String) - Static method in class com.sure.tool.collection.CollStreamUtil
拼接元素:按提取函数取值后以分隔符连接,null 值跳过。
join(Iterator, CharSequence) - Static method in class com.sure.tool.collection.IterUtil
使用分隔符拼接迭代器元素(null 元素输出 "null")。
join(Map, CharSequence, CharSequence) - Static method in class com.sure.tool.collection.MapUtil
拼接 Map 为字符串,如 a=1,b=2。
join(Set, CharSequence) - Static method in class com.sure.tool.collection.SetUtil
元素拼接为字符串。
joinAll(Duration, Callable...) - Static method in class com.sure.tool.thread.AsyncUtil
限时并行聚合(全部完成后返回,任一失败取消其余)。
joinQuietly(Thread) - Static method in class com.sure.tool.thread.ThreadUtil
等待线程结束,忽略中断(中断标志保持原样)。
JSONArray - Class in com.sure.tool.json
JSON 数组,继承 ArrayList,提供类型化读取,参考 Hutool 的 JSONArray 设计。
JSONArray() - Constructor for class com.sure.tool.json.JSONArray
创建空 JSON 数组。
JSONArray(Object...) - Constructor for class com.sure.tool.json.JSONArray
从可变参数创建 JSON 数组。
JSONArray(String) - Constructor for class com.sure.tool.json.JSONArray
解析 JSON 字符串创建 JSON 数组。
JSONArray(Collection) - Constructor for class com.sure.tool.json.JSONArray
从集合创建 JSON 数组。
JSONException - Exception Class in com.sure.tool.json
JSON 解析或序列化异常。
JSONException(String) - Constructor for exception class com.sure.tool.json.JSONException
创建异常。
JSONException(String, Throwable) - Constructor for exception class com.sure.tool.json.JSONException
创建异常。
JsonHandler - Interface in com.sure.tool.json
JSON 流式解析事件回调。
JSONObject - Class in com.sure.tool.json
JSON 对象,继承 LinkedHashMap 保证顺序,提供链式设置与类型化读取,参考 Hutool 的 JSONObject 设计。
JSONObject() - Constructor for class com.sure.tool.json.JSONObject
创建空 JSON 对象。
JSONObject(Object) - Constructor for class com.sure.tool.json.JSONObject
从 Bean 创建 JSON 对象(不忽略 null 值)。
JSONObject(Object, boolean) - Constructor for class com.sure.tool.json.JSONObject
从 Bean 创建 JSON 对象。
JSONObject(String) - Constructor for class com.sure.tool.json.JSONObject
解析 JSON 字符串创建 JSON 对象。
JSONObject(Map) - Constructor for class com.sure.tool.json.JSONObject
从 Map 创建 JSON 对象。
JsonPath - Class in com.sure.tool.json
JSONPath 查询求值器(零第三方依赖),支持常用语法子集: 根:$ 对象属性:$.a.b、$['a']['b'] 数组索引:$.list[0] 通配:$.list[*]、$.* 递归下降:$..price 过滤器:$.store.book[?(@.price < 10)],支持比较 == != < > <= >=、逻辑 && || ! 与存在性判断
JsonPath.FilterExpr - Class in com.sure.tool.json
过滤器表达式(编译后不可变)。
JSONUtil - Class in com.sure.tool.json
JSON 解析与序列化工具类,零第三方依赖的自研实现(RFC 8259 子集),参考 Hutool 的 JSONUtil 设计。
JWT - Class in com.sure.tool.jwt
JWT 令牌:链式构建与解析校验,支持 HS256/HS384/HS512/RS256,参考 Hutool 的 JWT 设计。
JWTException - Exception Class in com.sure.tool.jwt
JWT 异常:签发或校验失败时抛出。
JWTException(String) - Constructor for exception class com.sure.tool.jwt.JWTException
创建异常。
JWTException(String, Throwable) - Constructor for exception class com.sure.tool.jwt.JWTException
创建异常。
JwtUtil - Class in com.sure.tool.jwt
JWT 工具门面:一键签发与校验,参考 Hutool 的 JWTUtil 设计。

K

KdfUtil - Class in com.sure.tool.crypto
密钥派生工具,基于 JDK 25 正式特性 JEP 510(Key Derivation Function API)。
keyCount() - Method in class com.sure.tool.collection.MultiMap
键的数量(去重)。
keys() - Method in class com.sure.tool.collection.MultiMap
全部键集合(保持插入顺序)。
keys() - Static method in class com.sure.tool.config.SettingUtil
返回当前配置快照的全部键。
keys() - Method in class com.sure.tool.fluent.FluentMap
终端:返回不可变键集合(保插入顺序)。

L

lastEntryOrNull(Map) - Static method in class com.sure.tool.collection.SeqUtil
安全取有序 Map 的尾条目。
lastIndexOf(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
查找子串末次出现位置。
lastIndexOf(Object, Object) - Static method in class com.sure.tool.util.ArrayUtil
末次出现位置。
lastIndexOf(List, Object) - Static method in class com.sure.tool.collection.CollUtil
在列表中查找元素最后出现的下标。
lastIndexOfAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
返回任一给定子串在原字符串中最后出现的位置(以子串结尾为参照)。
lastKey() - Method in class com.sure.tool.collection.OrderedMap
最后一个键,空 Map 返回 null。
lastKeyOrNull(Map) - Static method in class com.sure.tool.collection.SeqUtil
安全取有序 Map 的尾键。
lastModified(File) - Static method in class com.sure.tool.io.FileUtil
文件最后修改时间(毫秒)。
lastModifiedTime(File) - Static method in class com.sure.tool.io.FileUtil
最后修改时间。
lastNonNull(T...) - Static method in class com.sure.tool.lang.NullUtil
取最后一个非 null 值。
lastOrNull(Collection) - Static method in class com.sure.tool.collection.SeqUtil
安全取尾元素。
lcm(long, long) - Static method in class com.sure.tool.util.NumberUtil
最小公倍数。
left() - Method in record class com.sure.tool.lang.Pair
Returns the value of the left record component.
left() - Method in record class com.sure.tool.lang.Triple
Returns the value of the left record component.
length() - Method in class com.sure.tool.fluent.FluentString
终端:字符串长度。
length(Object) - Static method in class com.sure.tool.util.ArrayUtil
获取数组长度。
length(Object) - Static method in class com.sure.tool.util.ObjectUtil
获取对象长度:数组/CharSequence/Collection/Map,其它类型返回 1,null 返回 0。
levenshtein(String, String) - Static method in class com.sure.tool.text.StrSimilarity
Levenshtein 编辑距离(插入/删除/替换各计 1)。
LfuCache<K,V> - Class in com.sure.tool.cache
最不经常使用缓存:容量满时淘汰访问频率最低的条目(频率相同淘汰最早写入),参考 Hutool 的 LFUCache 设计。
LfuCache(int) - Constructor for class com.sure.tool.cache.LfuCache
创建 LFU 缓存。
limit(int) - Method in class com.sure.tool.fluent.FluentList
限制为前 maxSize 个元素。
LineCaptcha - Class in com.sure.tool.captcha
线段干扰验证码,参考 Hutool 的 LineCaptcha 设计。
LineCaptcha(int, int, int, int) - Constructor for class com.sure.tool.captcha.LineCaptcha
创建线段干扰验证码。
lineIterator(InputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
按行读取的懒加载迭代器(字节流版),使用后应关闭返回的 IoUtil.LineIterator。
lineIterator(Reader) - Static method in class com.sure.tool.io.IoUtil
按行读取的懒加载迭代器(字符流版),使用后应关闭返回的 IoUtil.LineIterator。
list() - Static method in class com.sure.tool.fluent.Fluent
创建空列表管道。
listFileNames(String) - Static method in class com.sure.tool.io.FileUtil
列出目录下的文件名(仅文件)。
listOf(E...) - Static method in class com.sure.tool.fluent.Fluent
以若干元素创建列表管道。
listToMap(Collection, Function) - Static method in class com.sure.tool.collection.CollUtil
List 转 Map(key 由函数提取,重复 key 后值覆盖)。
ListUtil - Class in com.sure.tool.collection
列表工具类,参考 Hutool 的 ListUtil 设计。
load(File) - Method in class com.sure.tool.config.Props
从文件加载(UTF-8)。
load(File) - Static method in class com.sure.tool.config.SettingUtil
从文件加载配置(UTF-8),整体替换当前快照。
load(File) - Method in class com.sure.tool.util.Props
加载文件(UTF-8)。
load(InputStream) - Method in class com.sure.tool.config.Props
以 UTF-8 覆盖重载:Properties.load(InputStream) 默认 ISO-8859-1。
load(InputStream) - Static method in class com.sure.tool.config.SettingUtil
从输入流加载配置(UTF-8),整体替换当前快照。
load(InputStream) - Method in class com.sure.tool.util.Props
加载输入流(UTF-8)。
load(InputStream, Charset) - Method in class com.sure.tool.util.Props
加载输入流(指定字符集,避免中文乱码)。
load(String) - Method in class com.sure.tool.config.Props
从 classpath 相对路径加载(UTF-8)。
load(String) - Static method in class com.sure.tool.config.SettingUtil
从文件加载配置(UTF-8),整体替换当前快照。
load(URL) - Static method in class com.sure.tool.config.SettingUtil
从 URL 加载配置(UTF-8),整体替换当前快照。
loadClass(String) - Static method in class com.sure.tool.util.ClassUtil
加载类(默认初始化)。
loadClass(String, boolean) - Static method in class com.sure.tool.util.ClassUtil
加载类,依次使用线程上下文类加载器和当前类加载器。
localIpv4s() - Static method in class com.sure.tool.util.NetUtil
获取本机全部 IPv4 地址(含回环,按枚举顺序)。
lockCount() - Method in class com.sure.tool.thread.StripedLock
返回段锁总数。
LockUtil - Class in com.sure.tool.thread
锁工具类:按 key 获取全局读写锁 + 函数式读写执行,参考 Hutool 的 LockUtil 设计。
log(Object) - Static method in class com.sure.tool.lang.Console
输出对象并换行。
log(String, Object...) - Static method in class com.sure.tool.lang.Console
格式化输出并换行(一对花括号占位符风格)。
longToBytes(long) - Static method in class com.sure.tool.util.BytesUtil
long 转 8 字节(大端)。
longToIpv4(long) - Static method in class com.sure.tool.util.NetUtil
long 转 IPv4 地址。
loopFiles(File) - Static method in class com.sure.tool.io.FileUtil
递归列出目录下全部文件。
loopFiles(String) - Static method in class com.sure.tool.io.FileUtil
递归列出目录下全部文件。
lowerBound(List, T) - Static method in class com.sure.tool.util.SearchUtil
第一个不小于 key 的下标(插入点下界)。
lowerBound(List, T, Comparator) - Static method in class com.sure.tool.util.SearchUtil
按比较器求第一个不小于 key 的下标。
lowerCase() - Method in class com.sure.tool.fluent.FluentString
转小写(默认 Locale.ROOT)。
lowerFirst(CharSequence) - Static method in class com.sure.tool.util.StrUtil
首字母小写。
LruCache<K,V> - Class in com.sure.tool.cache
最近最少使用缓存:容量满时淘汰最久未访问的条目,参考 Hutool 的 LRUCache 设计。
LruCache(int) - Constructor for class com.sure.tool.cache.LruCache
创建 LRU 缓存。
ls(File) - Static method in class com.sure.tool.io.FileUtil
列出目录下的直接子项。

M

MAC_ADDRESS - Static variable in class com.sure.tool.lang.PatternPool
MAC 地址
mainName(File) - Static method in class com.sure.tool.io.FileUtil
获取主文件名(不含扩展名)。
mainName(String) - Static method in class com.sure.tool.io.FileUtil
获取主文件名(不含扩展名)。
map() - Static method in class com.sure.tool.fluent.Fluent
创建空 Map 管道。
map(Collection, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
映射出新 List(保持顺序,null 映射结果跳过)。
map(Collection, Function) - Static method in class com.sure.tool.collection.CollUtil
映射集合元素(返回新列表)。
map(Function) - Method in class com.sure.tool.fluent.FluentList
元素映射(类型可变化)。
map(Function) - Method in class com.sure.tool.lang.Option
映射(空短路)。
map(Function) - Method in class com.sure.tool.lang.Result
映射成功值(失败短路保留原错误)。
map(List, Function) - Static method in class com.sure.tool.collection.ListUtil
映射:对每个元素应用函数生成新列表。
map(Set, Function) - Static method in class com.sure.tool.collection.SetUtil
映射:对每个元素应用函数生成新 Set(保序,结果自动去重)。
MapBuilder() - Constructor for class com.sure.tool.collection.MapUtil.MapBuilder
 
mapOf(K, V) - Static method in class com.sure.tool.fluent.Fluent
创建含单个键值对的 Map 管道。
mapToBean(Map, Class) - Static method in class com.sure.tool.bean.BeanUtil
Map 转 Bean(自动实例化并写入属性,带类型转换)。
mapToBean(Map, Class, boolean) - Static method in class com.sure.tool.bean.BeanUtil
Map 转 Bean,可指定是否忽略转换异常(出错属性跳过)。
MapUtil - Class in com.sure.tool.collection
Map 工具类,参考 Hutool 的 MapUtil 设计。
MapUtil.MapBuilder<K,V> - Class in com.sure.tool.collection
Map 链式构建器。
mapValues(Function) - Method in class com.sure.tool.fluent.FluentMap
值映射(键保持不变)。
mask(String, int, int) - Static method in class com.sure.tool.util.DesensitizedUtil
通用脱敏:将指定区间替换为 *。
match(String) - Static method in class com.sure.tool.dfa.DfaUtil
匹配文本中的全部敏感词(默认词库,含起止索引)。
match(String) - Method in class com.sure.tool.dfa.WordTree
匹配文本中的全部敏感词(含起止索引)。
match(String, CharSequence, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言字符串匹配正则。
match(String, Date) - Static method in class com.sure.tool.cron.CronUtil
判断表达式是否匹配指定时间。
match(Date) - Method in class com.sure.tool.cron.CronPattern
时刻是否匹配。
matchAll(String) - Static method in class com.sure.tool.dfa.DfaUtil
匹配文本中的全部敏感词(默认词库,去重保序)。
matchAll(String) - Method in class com.sure.tool.dfa.WordTree
匹配文本中的全部敏感词(去重保序,不含位置)。
matched() - Method in record class com.sure.tool.collection.Partition
匹配元素列表的不可变视图。
max(double[]) - Static method in class com.sure.tool.util.ArrayUtil
double 数组最大值。
max(int[]) - Static method in class com.sure.tool.util.ArrayUtil
int 数组最大值。
max(long[]) - Static method in class com.sure.tool.util.ArrayUtil
long 数组最大值。
max(Number...) - Static method in class com.sure.tool.util.NumberUtil
求最大值(null 元素忽略,全为 null 返回 null)。
max(Collection) - Static method in class com.sure.tool.collection.CollUtil
最大值(Comparable 集合,null 安全)。
max(Comparator, T...) - Static method in class com.sure.tool.util.CompareUtil
取最大值(空安全,比较器可空)。
max(List) - Static method in class com.sure.tool.collection.ListUtil
自然序最大值(空列表抛 NoSuchElementException)。
max(List, Comparator) - Static method in class com.sure.tool.collection.ListUtil
按比较器取最大值(空列表抛 NoSuchElementException)。
max(T[]) - Static method in class com.sure.tool.util.ArrayUtil
对象数组最大值。
MAX_COST - Static variable in class com.sure.tool.crypto.BCryptUtil
最大 work factor。
MAX_PASSWORD_BYTES - Static variable in class com.sure.tool.crypto.BCryptUtil
密码最大字节数(OpenBSD 规范,不含追加的终止字节)。
maxBy(Collection, Function) - Static method in class com.sure.tool.collection.CollUtil
按提取函数取最大值。
maxCount(Collection) - Static method in class com.sure.tool.collection.CollUtil
返回集合中出现次数最多的元素(众数);并列时取先出现的元素。
maxLength(String, int) - Static method in class com.sure.tool.util.StrUtil
限制字符串最大长度,超出截断并追加省略号。
md5(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 MD5 摘要(原始字节)。
md5(byte[]) - Static method in class com.sure.tool.crypto.SecureUtil
MD5 摘要(32 位小写十六进制)。
md5(String) - Static method in class com.sure.tool.crypto.SecureUtil
MD5 摘要(32 位小写十六进制)。
md5Hex(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 MD5 摘要(小写十六进制)。
md5Hex(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 MD5 摘要(小写十六进制)。
merge(Map, Map) - Static method in class com.sure.tool.collection.MapUtil
合并两个 Map(后者覆盖前者同名键)。
mergeAll(Map, Map, BinaryOperator) - Static method in class com.sure.tool.collection.MapUtil
合并源 Map 到目标 Map(带冲突合并策略);源与目标为同一对象时安全。
method(String) - Method in class com.sure.tool.http.HttpRequest
修改 HTTP 方法(自动转大写)。
middle() - Method in record class com.sure.tool.lang.Triple
Returns the value of the middle record component.
mightContain(String) - Method in class com.sure.tool.collection.BloomFilterUtil
判断是否可能存在。
min(double[]) - Static method in class com.sure.tool.util.ArrayUtil
double 数组最小值。
min(int[]) - Static method in class com.sure.tool.util.ArrayUtil
int 数组最小值。
min(long[]) - Static method in class com.sure.tool.util.ArrayUtil
long 数组最小值。
min(Number...) - Static method in class com.sure.tool.util.NumberUtil
求最小值(null 元素忽略,全为 null 返回 null)。
min(Collection) - Static method in class com.sure.tool.collection.CollUtil
最小值(Comparable 集合,null 安全)。
min(Comparator, T...) - Static method in class com.sure.tool.util.CompareUtil
取最小值(空安全,比较器可空)。
min(List) - Static method in class com.sure.tool.collection.ListUtil
自然序最小值(空列表抛 NoSuchElementException)。
min(List, Comparator) - Static method in class com.sure.tool.collection.ListUtil
按比较器取最小值(空列表抛 NoSuchElementException)。
min(T[]) - Static method in class com.sure.tool.util.ArrayUtil
对象数组最小值。
MIN_COST - Static variable in class com.sure.tool.crypto.BCryptUtil
最小 work factor。
MIN_KEY_SIZE - Static variable in class com.sure.tool.crypto.RsaUtil
允许的最小密钥位数(低于此值直接拒绝,弱密钥)
minBy(Collection, Function) - Static method in class com.sure.tool.collection.CollUtil
按提取函数取最小值。
minute(Date) - Static method in class com.sure.tool.date.DateUtil
分钟(0~59)。
MINUTE - Enum constant in enum class com.sure.tool.date.DateUnit
分
mkdir(File) - Static method in class com.sure.tool.io.FileUtil
创建目录(含父目录)。
ML_KEM_1024 - Static variable in class com.sure.tool.crypto.MlKemUtil
ML-KEM-1024(Kyber-1024 后量子标准参数)
ML_KEM_512 - Static variable in class com.sure.tool.crypto.MlKemUtil
ML-KEM-512(Kyber-512 后量子标准参数)
ML_KEM_768 - Static variable in class com.sure.tool.crypto.MlKemUtil
ML-KEM-768(Kyber-768 后量子标准参数,推荐)
MlKemUtil - Class in com.sure.tool.crypto
后量子密钥工具,基于 JDK 25 正式特性 JEP 496(Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism,ML-KEM / Kyber)。
MOBILE - Static variable in class com.sure.tool.lang.PatternPool
手机号(中国大陆)
mobilePhone(String) - Static method in class com.sure.tool.util.DesensitizedUtil
手机号脱敏:13812345678 → 138****5678。
MODIFY - Enum constant in enum class com.sure.tool.io.EventType
文件/目录内容修改
MONEY - Static variable in class com.sure.tool.lang.PatternPool
金额(正数,最多两位小数)
MoneyUtil - Class in com.sure.tool.util
金额工具类:人民币金额转中文大写(财务报销/合同常用),零依赖。
monotonicUlid() - Static method in class com.sure.tool.id.UlidUtil
生成单调递增 ULID:同一毫秒内连续调用保证字典序递增。
month(Date) - Static method in class com.sure.tool.date.DateUtil
获取月份(1-12)。
MorseUtil - Class in com.sure.tool.codec
摩斯电码编解码工具。
move(File, File) - Static method in class com.sure.tool.io.FileUtil
移动文件或目录。
move(List, int, int) - Static method in class com.sure.tool.collection.ListUtil
元素移动到新下标(其余元素顺移,与 List.move 语义一致)。
MS - Enum constant in enum class com.sure.tool.date.DateUnit
毫秒
mul(double, double) - Static method in class com.sure.tool.util.NumberUtil
乘法(基于 BigDecimal)。
MultiMap<K,V> - Class in com.sure.tool.collection
多值映射:一个键关联多个值(有序、保持插入顺序),对标 Guava Multimap 与 commons-collections4 MultiValuedMap 的常用子集,零依赖。
MultiMap() - Constructor for class com.sure.tool.collection.MultiMap
 
Multiset<T> - Class in com.sure.tool.collection
计数集合(Multiset):记录每个元素出现的次数,对标 Guava Multiset 与 commons-collections4 Bag 的常用子集,零依赖。
Multiset() - Constructor for class com.sure.tool.collection.Multiset
 
Multiset.Entry<T> - Class in com.sure.tool.collection
元素与计数条目。
murmur3_32(byte[]) - Static method in class com.sure.tool.codec.HashUtil
MurmurHash3 x86 32 位。
murmur3_32(String) - Static method in class com.sure.tool.codec.HashUtil
MurmurHash3 x86 32 位(字符串,UTF-8)。

N

NamedThreadFactory(String, boolean) - Constructor for class com.sure.tool.thread.ThreadUtil.NamedThreadFactory
创建线程工厂。
NanoIdUtil - Class in com.sure.tool.id
Nano ID 生成器:URL 安全的紧凑随机 ID(默认 21 字符),参考 ai.nanolay.NanoId 设计。
negate(boolean) - Static method in class com.sure.tool.util.BooleanUtil
取反。
NetUtil - Class in com.sure.tool.util
网络工具类,参考 Hutool 的 NetUtil 设计。
newArrayList(T...) - Static method in class com.sure.tool.collection.CollUtil
创建 ArrayList。
newConcurrentHashMap() - Static method in class com.sure.tool.collection.MapUtil
创建 ConcurrentHashMap。
newConcurrentHashSet(T...) - Static method in class com.sure.tool.collection.CollUtil
创建线程安全的 Set(基于 ConcurrentHashMap),并填充元素。
newExecutor(int) - Static method in class com.sure.tool.thread.ThreadUtil
创建命名固定大小线程池(守护线程,前缀 sure-)。
newExecutor(int, String) - Static method in class com.sure.tool.thread.ThreadUtil
创建命名固定大小线程池(守护线程,前缀 sure-{prefix}-)。
newFifoCache(int) - Static method in class com.sure.tool.cache.CacheUtil
创建 FIFO 缓存。
newHashMap() - Static method in class com.sure.tool.collection.MapUtil
创建 HashMap。
newHashMap(int) - Static method in class com.sure.tool.collection.MapUtil
创建带初始容量的 HashMap。
newHashSet(T...) - Static method in class com.sure.tool.collection.CollUtil
创建 HashSet。
newHashSet(T...) - Static method in class com.sure.tool.collection.SetUtil
创建 HashSet。
newInstance(Class, Object...) - Static method in class com.sure.tool.util.ClassUtil
实例化对象。
newInstance(String, Object...) - Static method in class com.sure.tool.util.ClassUtil
按类名实例化对象。
newLfuCache(int) - Static method in class com.sure.tool.cache.CacheUtil
创建 LFU 缓存。
newLinkedHashMap() - Static method in class com.sure.tool.collection.MapUtil
创建 LinkedHashMap。
newLinkedHashSet(T...) - Static method in class com.sure.tool.collection.CollUtil
创建 LinkedHashSet。
newLinkedHashSet(T...) - Static method in class com.sure.tool.collection.SetUtil
创建 LinkedHashSet(保插入序)。
newLruCache(int) - Static method in class com.sure.tool.cache.CacheUtil
创建 LRU 缓存。
newScheduledExecutor(int, String) - Static method in class com.sure.tool.thread.ThreadUtil
创建命名调度线程池(守护线程,前缀 sure-{prefix}-)。
newThread(Runnable) - Method in class com.sure.tool.thread.ThreadUtil.NamedThreadFactory
 
newThread(Runnable, String) - Static method in class com.sure.tool.thread.ThreadUtil
创建命名线程。
newThread(Runnable, String, boolean) - Static method in class com.sure.tool.thread.ThreadUtil
创建命名线程。
newTimedCache(long) - Static method in class com.sure.tool.cache.CacheUtil
创建定时过期缓存。
newTreeMap() - Static method in class com.sure.tool.collection.MapUtil
创建 TreeMap。
newTreeSet(Comparator, T...) - Static method in class com.sure.tool.collection.CollUtil
创建带比较器的有序 Set(TreeSet),并填充元素。
newTreeSet(T...) - Static method in class com.sure.tool.collection.SetUtil
创建 TreeSet(自然序)。
newVirtualThread(Runnable, String) - Static method in class com.sure.tool.thread.ThreadUtil
创建虚拟线程(未启动)。
newWeakCache() - Static method in class com.sure.tool.cache.CacheUtil
创建弱引用缓存(值可被 GC 回收,自动清理)。
newWeakCache(int, long) - Static method in class com.sure.tool.cache.CacheUtil
创建弱引用缓存。
next() - Method in class com.sure.tool.io.IoUtil.LineIterator
 
next() - Method in class com.sure.tool.lang.WeightRandom
按权重随机取一个元素;无元素返回 null。
nextId() - Method in class com.sure.tool.lang.Snowflake
生成下一个 ID。
nextIdStr() - Method in class com.sure.tool.lang.Snowflake
生成下一个 ID(字符串形式)。
nextTimeAfter(String, Date) - Static method in class com.sure.tool.cron.CronUtil
计算表达式在指定时间之后的下一次执行时间。
NORM_DATE_PATTERN - Static variable in class com.sure.tool.date.DateUtil
标准日期格式:yyyy-MM-dd
NORM_DATETIME_PATTERN - Static variable in class com.sure.tool.date.DateUtil
标准日期时间格式:yyyy-MM-dd HH:mm:ss
NORM_TIME_PATTERN - Static variable in class com.sure.tool.date.DateUtil
标准时间格式:HH:mm:ss
normalize(String) - Static method in class com.sure.tool.io.FileUtil
规范化路径:统一斜杠、去除 ./ 与多余的 ../。
normalize(String) - Static method in class com.sure.tool.util.UrlUtil
URL 规范化:缺协议补全 http://、去除末尾斜杠(保留根路径)。
normalizePath(String) - Static method in class com.sure.tool.util.UrlUtil
路径规范化:解析 . 与 ..、合并连续斜杠(RFC 3986 §5.2.4)。
normalizeSpace(CharSequence) - Static method in class com.sure.tool.util.StrUtil
空白规范化:首尾去空白,内部连续空白(含换行制表)压缩为单个空格。
notBlank() - Method in class com.sure.tool.fluent.FluentString
链中校验点:当前值为空白(null 语义由创建时拒绝)抛 IAE。
notBlank(T, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言字符串非空白。
notEmpty(Collection, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言集合非空。
notEmpty(Map, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言 Map 非空。
notEmpty(T[], String, Object...) - Static method in class com.sure.tool.lang.Assert
断言数组非空。
notEmpty(T, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言字符串非空(null 或空串均失败)。
notEqual(Object, Object) - Static method in class com.sure.tool.util.ObjectUtil
对象是否不相等。
notNull(T, String, Object...) - Static method in class com.sure.tool.lang.Assert
断言对象非 null。
now() - Static method in class com.sure.tool.date.DateUtil
当前时间。
nullSafeToString(Object) - Static method in class com.sure.tool.lang.NullUtil
null 安全转字符串(null 返回空串,不抛 NPE)。
nullToEmpty(CharSequence) - Static method in class com.sure.tool.util.StrUtil
null 转空串。
nullToEmpty(Stream) - Static method in class com.sure.tool.util.StreamUtil
空安全:null 流转换为空流。
nullToEmpty(T[], Class) - Static method in class com.sure.tool.util.ArrayUtil
null 数组转换为指定类型的空数组。
NullUtil - Class in com.sure.tool.lang
统一 null 门面:判断 / 取值 / 安全调用 / 展示。
NumberUtil - Class in com.sure.tool.util
数字工具类,参考 Hutool 的 NumberUtil 设计。

O

objectId() - Static method in class com.sure.tool.util.IdUtil
生成 MongoDB 风格的 24 位十六进制 ObjectId(时间戳 + 随机数 + 自增计数)。
ObjectUtil - Class in com.sure.tool.util
对象工具类,参考 Hutool 的 ObjectUtil 设计。
of() - Static method in class com.sure.tool.fluent.FluentList
创建空列表管道。
of() - Static method in class com.sure.tool.fluent.FluentMap
创建空 Map 管道。
of(E...) - Static method in class com.sure.tool.fluent.FluentList
以指定元素创建列表管道。
of(Iterable) - Static method in class com.sure.tool.util.StreamUtil
迭代器转流(null 安全)。
of(Object) - Static method in class com.sure.tool.bean.BeanCopier
链式拷贝入口。
of(Object...) - Static method in class com.sure.tool.collection.MapUtil
从成对参数构建 Map,如 of("a", 1, "b", 2)。
of(Object...) - Static method in class com.sure.tool.lang.Dict
创建字典并快速填充键值对(键值交替)。
of(String) - Static method in class com.sure.tool.collection.StrJoiner
创建拼接器(仅分隔符)。
of(String) - Static method in class com.sure.tool.cron.CronPattern
解析 Cron 表达式。
of(String) - Static method in class com.sure.tool.fluent.Fluent
创建字符串管道(Fluent.string(String) 别名)。
of(String) - Static method in class com.sure.tool.jwt.JWT
解析既有 token(header/payload 立即可读,校验须设置密钥后调 JWT.verify())。
of(String, String) - Static method in class com.sure.tool.http.HttpRequest
任意方法请求(JDK HttpURLConnection 仅支持 GET/POST/PUT/DELETE/HEAD/OPTIONS/TRACE 等标准方法, 传入 PATCH 等 JDK 不支持的方法将在 HttpRequest.execute() 时抛 HttpException)。
of(String, String, String) - Static method in class com.sure.tool.collection.StrJoiner
创建拼接器。
of(Collection) - Static method in class com.sure.tool.fluent.Fluent
从既有集合创建列表管道(防御拷贝)。
of(Collection) - Static method in class com.sure.tool.util.StreamUtil
集合转流(null 安全)。
of(Optional) - Static method in class com.sure.tool.util.StreamUtil
Optional 转流:有值则单元素流,否则空流(Java 9 Stream.ofNullable 语义)。
of(K, V) - Static method in class com.sure.tool.fluent.FluentMap
创建含单个键值对的 Map 管道。
of(L, M, R) - Static method in record class com.sure.tool.lang.Triple
静态工厂。
of(L, R) - Static method in record class com.sure.tool.lang.Pair
静态工厂。
of(T) - Static method in class com.sure.tool.lang.Option
非空值包装(null 抛 NPE,语义与 Optional.of 一致)。
of(T...) - Static method in class com.sure.tool.collection.SetUtil
创建不可变 Set(去重保序,LinkedHashSet 拷贝后包装为不可变;null 元素保留)。
of(T...) - Static method in class com.sure.tool.util.StreamUtil
变参或数组转流(null 安全)。
offer(E) - Method in class com.sure.tool.collection.BoundedPriorityQueue
入队;队满时若新元素比队首更优则替换队首。
offset(Date, int, int) - Static method in class com.sure.tool.date.DateUtil
日期偏移。
offsetDay(Date, int) - Static method in class com.sure.tool.date.DateUtil
天偏移。
offsetHour(Date, int) - Static method in class com.sure.tool.date.DateUtil
小时偏移。
offsetMinute(Date, int) - Static method in class com.sure.tool.date.DateUtil
分钟偏移。
offsetMonth(Date, int) - Static method in class com.sure.tool.date.DateUtil
按月偏移。
offsetQuarter(Date, int) - Static method in class com.sure.tool.date.DateUtil
偏移季度。
offsetSecond(Date, int) - Static method in class com.sure.tool.date.DateUtil
按秒偏移。
offsetWeek(Date, int) - Static method in class com.sure.tool.date.DateUtil
按周偏移。
offsetYear(Date, int) - Static method in class com.sure.tool.date.DateUtil
按年偏移。
ofNullable(T) - Static method in class com.sure.tool.lang.Option
可空包装。
ok(T) - Static method in class com.sure.tool.lang.Result
成功结果。
onBoolean(boolean) - Method in interface com.sure.tool.json.JsonHandler
布尔值。
onEmpty(Runnable) - Method in class com.sure.tool.lang.Option
空时执行(链式可用)。
onEndArray() - Method in interface com.sure.tool.json.JsonHandler
数组结束。
onEndObject() - Method in interface com.sure.tool.json.JsonHandler
对象结束。
onEvent(EventType, Path) - Method in interface com.sure.tool.io.DirListener
目录事件回调(虚拟线程执行)。
onFailure(Consumer) - Method in class com.sure.tool.lang.Result
失败时回调(链式可用,返回自身)。
onKey(String) - Method in interface com.sure.tool.json.JsonHandler
对象键(仅当键为字符串时触发)。
onlyLeft() - Method in record class com.sure.tool.collection.Difference
只在左 Map 出现的键值对(不可变视图)。
onlyRight() - Method in record class com.sure.tool.collection.Difference
只在右 Map 出现的键值对(不可变视图)。
onNull() - Method in interface com.sure.tool.json.JsonHandler
null 值。
onNumber(String) - Method in interface com.sure.tool.json.JsonHandler
数字值(保留原始字面量,由调用方决定精度)。
onRotate() - Method in class com.sure.tool.io.TailerOptions
轮转回调。
onRotate(Runnable) - Method in class com.sure.tool.io.TailerOptions
检测到文件轮转(被替换/重建)后的回调。
onStartArray() - Method in interface com.sure.tool.json.JsonHandler
数组开始。
onStartObject() - Method in interface com.sure.tool.json.JsonHandler
对象开始。
onString(String) - Method in interface com.sure.tool.json.JsonHandler
字符串值。
onSuccess(Consumer) - Method in class com.sure.tool.lang.Result
成功时回调(链式可用,返回自身)。
openInputStream(File) - Static method in class com.sure.tool.io.FileUtil
打开文件输入流(IOException 包装为 UncheckedIOException)。
openOutputStream(File) - Static method in class com.sure.tool.io.FileUtil
打开文件输出流(覆盖写,IOException 包装为 UncheckedIOException)。
Option<T> - Class in com.sure.tool.lang
JDK Optional 超集门面:补高频便捷方法(Option.getOrElse(T)、 Option.onEmpty(Runnable)、Option.orElse(Option)),保持链式 Fluent 体验。
or(boolean...) - Static method in class com.sure.tool.util.BooleanUtil
多个布尔值求或。
OrderedMap<K,V> - Class in com.sure.tool.collection
保持插入顺序的 Map 增强,继承 LinkedHashMap,提供首尾元素快捷访问与按索引操作。
OrderedMap() - Constructor for class com.sure.tool.collection.OrderedMap
创建空 Map。
OrderedMap(int) - Constructor for class com.sure.tool.collection.OrderedMap
创建带初始容量的 Map。
OrderedMap(Map) - Constructor for class com.sure.tool.collection.OrderedMap
从既有 Map 创建。
orElse(Option) - Method in class com.sure.tool.lang.Option
空时取另一个 Option。
outDegree(V) - Method in class com.sure.tool.graph.DiGraph
出度。
OVERFLOW - Enum constant in enum class com.sure.tool.io.EventType
事件丢失(WatchService 溢出)

P

padAfter(CharSequence, int, char) - Static method in class com.sure.tool.util.StrUtil
字符串后补齐至指定长度。
padLeft(int, char) - Method in class com.sure.tool.fluent.FluentString
左侧补齐到指定长度。
padPre(CharSequence, int, char) - Static method in class com.sure.tool.util.StrUtil
字符串前补齐至指定长度。
padRight(int, char) - Method in class com.sure.tool.fluent.FluentString
右侧补齐到指定长度。
page(int, int, List) - Static method in class com.sure.tool.collection.ListUtil
分页截取:返回第 pageIndex 页(从 0 开始)的 pageSize 条数据。
page(List, int, int) - Static method in class com.sure.tool.collection.CollUtil
分页(页码从 1 开始),越界时返回空列表。
Pair<L,R> - Record Class in com.sure.tool.lang
有序二元组,不可变,JDK record 实现。
Pair(L, R) - Constructor for record class com.sure.tool.lang.Pair
Creates an instance of a Pair record class.
pairwise(Collection) - Static method in class com.sure.tool.collection.CollUtil
相邻配对:返回相邻元素的二元组列表,长度为 size-1;少于 2 个元素时返回空列表。
parallel(Runnable...) - Static method in class com.sure.tool.thread.ThreadUtil
用虚拟线程并发执行全部任务并等待完成;任一任务抛异常则聚合抛出。
parallel(Duration, Callable...) - Static method in class com.sure.tool.thread.StructuredTaskUtil
限时并发执行全部任务(varargs 便捷重载):在指定时间内全部成功则按输入顺序返回结果; 超时或任一任务失败均取消未完成任务并抛出 RuntimeException。
parallel(Collection) - Static method in class com.sure.tool.thread.StructuredTaskUtil
并发执行全部任务,全部成功后按输入顺序返回结果;任一任务失败则取消其余任务, 并抛出 RuntimeException(携带任务异常)。
parallel(Collection, Duration) - Static method in class com.sure.tool.thread.StructuredTaskUtil
限时并发执行全部任务:在指定时间内全部成功则按输入顺序返回结果; 超时或任一任务失败均取消未完成任务并抛出 RuntimeException。
parallel(Callable...) - Static method in class com.sure.tool.thread.StructuredTaskUtil
并发执行全部任务,全部成功后按输入顺序返回结果;任一任务失败则取消其余任务, 并抛出 RuntimeException(携带任务异常)。
parse(InputStream, JsonHandler) - Static method in class com.sure.tool.json.StreamJsonParser
从输入流解析 JSON(UTF-8)。
parse(Reader, JsonHandler) - Static method in class com.sure.tool.json.StreamJsonParser
从 Reader 解析 JSON。
parse(String) - Static method in class com.sure.tool.cron.CronUtil
解析 Cron 表达式。
parse(String) - Static method in class com.sure.tool.date.DateUtil
自动识别解析日期,支持: yyyy-MM-dd HH:mm:ss yyyy-MM-dd HH:mm:ss yyyy-MM-dd'T'HH:mm:ss
parse(String) - Static method in class com.sure.tool.json.JSONArray
解析 JSON 字符串。
parse(String) - Static method in class com.sure.tool.json.JSONObject
解析 JSON 字符串。
parse(String) - Static method in class com.sure.tool.json.JSONUtil
解析 JSON 字符串为 Java 对象(对象为 JSONObject,数组为 JSONArray,其余为 String/Number/Boolean/null)。
parse(String, String) - Static method in class com.sure.tool.date.DateUtil
按格式解析日期。
parseArray(String) - Static method in class com.sure.tool.json.JSONUtil
解析 JSON 数组。
parseByte(String, byte) - Static method in class com.sure.tool.util.NumberUtil
字符串转 byte,解析失败返回默认值。
parseDouble(String) - Static method in class com.sure.tool.util.NumberUtil
字符串转 double,解析失败抛出 NumberFormatException。
parseDouble(String, double) - Static method in class com.sure.tool.util.NumberUtil
字符串转 double,解析失败返回默认值。
parseFloat(String, float) - Static method in class com.sure.tool.util.NumberUtil
字符串转 float,解析失败返回默认值。
parseInt(String) - Static method in class com.sure.tool.util.NumberUtil
字符串转 int,解析失败抛出 NumberFormatException。
parseInt(String, int) - Static method in class com.sure.tool.util.NumberUtil
字符串转 int,解析失败返回默认值。
parseLocalDate(String) - Static method in class com.sure.tool.date.DateUtil
解析 ISO 日期字符串(yyyy-MM-dd)为 LocalDate。
parseLocalDateTime(String) - Static method in class com.sure.tool.date.DateUtil
解析常见日期时间字符串为 LocalDateTime(自动探测格式)。
parseLocalDateTime(String, String) - Static method in class com.sure.tool.date.DateUtil
按指定格式解析日期时间字符串为 LocalDateTime。
parseLong(String) - Static method in class com.sure.tool.util.NumberUtil
字符串转 long,解析失败抛出 NumberFormatException。
parseLong(String, long) - Static method in class com.sure.tool.util.NumberUtil
字符串转 long,解析失败返回默认值。
parseNumber(String) - Static method in class com.sure.tool.util.NumberUtil
解析字符串为数字类型(Integer/Long/BigDecimal)。
parseObj(String) - Static method in class com.sure.tool.json.JSONUtil
解析 JSON 对象。
parsePrivateKey(String) - Static method in class com.sure.tool.crypto.RsaUtil
Base64 解析私钥。
parsePublicKey(String) - Static method in class com.sure.tool.crypto.RsaUtil
Base64 解析公钥。
parseShort(String, short) - Static method in class com.sure.tool.util.NumberUtil
字符串转 short,解析失败返回默认值。
parseStream(InputStream, JsonHandler) - Static method in class com.sure.tool.json.JSONUtil
流式解析 JSON(UTF-8),按事件回调消费,不将整份文档载入内存。
parseToken(String, String) - Static method in class com.sure.tool.jwt.JwtUtil
校验并解析 token,失败抛 JWTException。
parseToList(String) - Static method in class com.sure.tool.json.StreamJsonParser
便捷方法:解析 JSON 字符串,收集所有顶层值(内部使用)。
parseXml(String) - Static method in class com.sure.tool.xml.XmlUtil
解析 XML 为 Map(根元素名作为键)。
parseXmlToBean(String, Class) - Static method in class com.sure.tool.xml.XmlUtil
解析 XML 为 Bean。
partition(List, int) - Static method in class com.sure.tool.collection.ListUtil
列表切分:按固定大小切分为多个子列表。
Partition<T> - Record Class in com.sure.tool.collection
集合二分结果:按谓词将集合分为「匹配」与「不匹配」两部分,均保持输入顺序。
Partition(List, List) - Constructor for record class com.sure.tool.collection.Partition
紧凑构造:参数为 null 时按空列表处理,非空时做防御性拷贝。
partitionBy(Collection, Predicate) - Static method in class com.sure.tool.collection.CollUtil
按谓词将集合分为「匹配」与「不匹配」两部分(均保序),等价于一次性完成 filter 与其补集。
partValue(int, int...) - Static method in class com.sure.tool.util.NumberUtil
整数按权重分配(总和不变,余数按权重余数依次+1)。
password(String) - Static method in class com.sure.tool.util.DesensitizedUtil
密码脱敏:统一显示为 ******。
patchJson(String, String) - Static method in class com.sure.tool.http.HttpUtil
PATCH JSON 请求。
patchJson(String, String, int) - Static method in class com.sure.tool.http.HttpUtil
PATCH JSON 请求(基于 JDK HttpClient,HttpURLConnection 不支持 PATCH)。
pathEquals(String, String) - Static method in class com.sure.tool.io.FileUtil
比较两个路径是否指向同一位置(规范化后比较,忽略 . / .. 与尾分隔符差异)。
PathFilter - Interface in com.sure.tool.io
目录事件路径过滤器(后缀/前缀/正则均可自定义实现)。
PatternPool - Class in com.sure.tool.lang
常用正则表达式模式池,参考 Hutool 的 PatternPool 设计。
peek(Consumer) - Method in class com.sure.tool.lang.Option
有值时消费(链式可用)。
pendingCount() - Method in class com.sure.tool.thread.Actor
当前待处理消息数(诊断/监控用途)。
percent(double, int) - Static method in class com.sure.tool.util.NumberUtil
转为百分比字符串(如 0.3456 -> "34.56%")。
permutations(List) - Static method in class com.sure.tool.collection.ListUtil
全排列(对齐 Guava Collections2.permutations)。
PLATE_NUMBER - Static variable in class com.sure.tool.lang.PatternPool
车牌号(含新能源,7-8 位)
PoiUtil - Class in com.sure.tool.poi
POI 通用门面:工作簿/行/单元格的容错访问与类型感知取值,参考 Hutool 的 PoiUtil 设计。
pollInterval() - Method in class com.sure.tool.io.TailerOptions
轮询间隔。
pollInterval(Duration) - Method in class com.sure.tool.io.TailerOptions
轮询间隔(默认 1 秒)。
pool(HttpClientBuilder) - Method in class com.sure.tool.http.HttpRequest
便捷注入:通过 HttpClientBuilder 构建带连接池的 JDK HttpClient。
post(String) - Static method in class com.sure.tool.http.HttpRequest
POST 请求。
post(String, String, String) - Static method in class com.sure.tool.http.HttpUtil
POST 原始内容请求。
post(String, Map) - Static method in class com.sure.tool.http.HttpUtil
POST 表单请求(application/x-www-form-urlencoded)。
post(String, Map, int) - Static method in class com.sure.tool.http.HttpUtil
POST 表单请求。
post(String, Map, Proxy) - Static method in class com.sure.tool.http.HttpUtil
POST 表单请求(走代理)。
POSTAL_CODE - Static variable in class com.sure.tool.lang.PatternPool
邮政编码(中国大陆)
postJson(String, String) - Static method in class com.sure.tool.http.HttpUtil
POST JSON 请求。
postJson(String, String, int) - Static method in class com.sure.tool.http.HttpUtil
POST JSON 请求。
postJson(String, String, Proxy) - Static method in class com.sure.tool.http.HttpUtil
POST JSON 请求(走代理)。
pow(long, int) - Static method in class com.sure.tool.util.NumberUtil
幂运算。
powerSet(Set) - Static method in class com.sure.tool.collection.SetUtil
幂集:所有子集(含空集),元素序保持,共 2^n 个。
predecessors(V) - Method in class com.sure.tool.graph.DiGraph
前驱顶点集合(入边来源)。
pretty() - Method in class com.sure.tool.util.TimeInterval
可读耗时文本(如 12.3 秒 / 345 毫秒)。
prettyPrint() - Method in class com.sure.tool.lang.StopWatch
格式化累计耗时(秒,保留三位小数)。
print(Object) - Static method in class com.sure.tool.lang.Console
输出对象,不换行。
privateKeyFromBase64(String, String) - Static method in class com.sure.tool.crypto.MlKemUtil
从 PKCS8 Base64 字符串还原私钥。
privateKeyToBase64(PrivateKey) - Static method in class com.sure.tool.crypto.MlKemUtil
将私钥编码为 PKCS8 Base64 字符串。
ProcessInfo - Class in com.sure.tool.system
进程信息(基于 ProcessHandle):PID / 命令 / 参数 / 启动时间 / CPU 时长 / 状态 / 父进程。
PropDesc - Class in com.sure.tool.bean
Bean 属性描述,包含属性名、类型、getter/setter 与字段,参考 Hutool 的 PropDesc 设计。
PropDesc(String, Class, Method, Method, Field) - Constructor for class com.sure.tool.bean.PropDesc
创建属性描述。
Props - Class in com.sure.tool.config
Properties 配置增强,参考 Hutool 的 Props 设计。
Props - Class in com.sure.tool.util
Properties 配置文件增强工具:UTF-8 加载、强类型读取、默认值,零依赖。
Props() - Constructor for class com.sure.tool.config.Props
空配置。
Props() - Constructor for class com.sure.tool.util.Props
构造空配置。
Props(File) - Constructor for class com.sure.tool.config.Props
从文件加载。
Props(File) - Constructor for class com.sure.tool.util.Props
从文件加载(UTF-8)。
Props(InputStream) - Constructor for class com.sure.tool.util.Props
从输入流加载(UTF-8)。
Props(String) - Constructor for class com.sure.tool.config.Props
从 classpath 相对路径加载。
Props(String) - Constructor for class com.sure.tool.util.Props
从路径加载(UTF-8)。
proxy(String, int) - Method in class com.sure.tool.http.HttpClientBuilder
HTTP 代理。
proxy(String, int) - Method in class com.sure.tool.http.HttpRequest
设置代理(主机 + 端口,HTTP 代理)。
proxy(Proxy) - Method in class com.sure.tool.http.HttpClientBuilder
任意 HTTP 代理。
proxy(Proxy) - Method in class com.sure.tool.http.HttpRequest
设置代理(任意 Proxy,支持 HTTP/SOCKS)。
prune() - Method in class com.sure.tool.cache.TimedCache
主动清理全部过期条目。
publicKeyFromBase64(String, String) - Static method in class com.sure.tool.crypto.MlKemUtil
从 X.509 Base64 字符串还原公钥。
publicKeyToBase64(PublicKey) - Static method in class com.sure.tool.crypto.MlKemUtil
将公钥编码为 X.509 Base64 字符串。
put(Class, T) - Static method in class com.sure.tool.util.Singleton
手动放入单例(覆盖已有实例)。
put(String) - Method in class com.sure.tool.collection.BloomFilterUtil
加入一个字符串。
put(String) - Static method in class com.sure.tool.http.HttpRequest
PUT 请求。
put(String, Map) - Static method in class com.sure.tool.http.HttpUtil
PUT 表单请求。
put(String, Map, int) - Static method in class com.sure.tool.http.HttpUtil
PUT 表单请求。
put(K, V) - Method in interface com.sure.tool.cache.Cache
写入缓存。
put(K, V) - Method in class com.sure.tool.cache.FifoCache
 
put(K, V) - Method in class com.sure.tool.cache.LfuCache
 
put(K, V) - Method in class com.sure.tool.cache.LruCache
 
put(K, V) - Method in class com.sure.tool.cache.TimedCache
写入缓存(使用默认 TTL)。
put(K, V) - Method in class com.sure.tool.cache.WeakCache
写入缓存(使用默认 TTL)。
put(K, V) - Method in class com.sure.tool.collection.BiMap
写入映射(覆盖旧键/旧值对应的反向映射)。
put(K, V) - Method in class com.sure.tool.collection.CaseInsensitiveMap
 
put(K, V) - Method in class com.sure.tool.collection.MapUtil.MapBuilder
添加键值。
put(K, V) - Method in class com.sure.tool.collection.MultiMap
添加一个值到指定键,键不存在时自动创建列表。
put(K, V) - Method in class com.sure.tool.fluent.FluentMap
插入或覆盖键值对。
put(K, V, long) - Method in class com.sure.tool.cache.TimedCache
写入缓存并指定 TTL。
put(K, V, long) - Method in class com.sure.tool.cache.WeakCache
写入缓存并指定 TTL。
putAll(Map) - Method in class com.sure.tool.collection.CaseInsensitiveMap
 
putAll(Map) - Method in class com.sure.tool.collection.MapUtil.MapBuilder
批量添加键值。
putAll(Map) - Method in class com.sure.tool.collection.BiMap
批量写入。
putAll(K, Collection) - Method in class com.sure.tool.collection.MultiMap
批量添加多个值到指定键。
putIfAbsent(K, V) - Method in class com.sure.tool.fluent.FluentMap
键不存在时插入(已存在则保持不变)。
putJson(String, String) - Static method in class com.sure.tool.http.HttpUtil
PUT JSON 请求。
putJson(String, String, int) - Static method in class com.sure.tool.http.HttpUtil
PUT JSON 请求。

Q

query(String, Object) - Method in class com.sure.tool.http.HttpRequest
添加 query 参数(GET 拼接 URL,值会 URL 编码)。
query(String, String) - Static method in class com.sure.tool.json.JSONUtil
按 JSONPath 查询,返回所有匹配值。
query(Map) - Method in class com.sure.tool.http.HttpRequest
批量添加 query 参数。
quote(String) - Static method in class com.sure.tool.util.ReUtil
将正则表达式中的特殊字符转义(返回 \Q...\E 形式)。

R

RadixUtil - Class in com.sure.tool.util
进制转换工具:2~36 进制与十进制互转、任意进制间转换,零依赖。
randomBigDecimal(BigDecimal, BigDecimal) - Static method in class com.sure.tool.util.RandomUtil
生成 [start, end] 区间内的随机 BigDecimal(含端点)。
randomBoolean() - Static method in class com.sure.tool.util.RandomUtil
随机布尔值。
randomBytes(int) - Static method in class com.sure.tool.util.RandomUtil
随机字节数组。
randomChinese(int) - Static method in class com.sure.tool.util.RandomUtil
生成随机中文字符串(CJK 统一表意文字基本区)。
randomCode(int) - Method in class com.sure.tool.captcha.AbstractCaptcha
随机字符个数。
randomColor(int, int) - Method in class com.sure.tool.captcha.AbstractCaptcha
随机颜色。
randomDay(LocalDate, LocalDate) - Static method in class com.sure.tool.util.RandomUtil
生成 [start, end] 区间内的随机日期。
randomDay(Date, Date) - Static method in class com.sure.tool.util.RandomUtil
生成 [start, end] 区间内的随机日期。
randomDouble() - Static method in class com.sure.tool.util.RandomUtil
随机 double,范围 [0, 1)。
randomDouble(double, double) - Static method in class com.sure.tool.util.RandomUtil
随机 double,范围 [min, max)。
randomDouble(double, double, int) - Static method in class com.sure.tool.util.RandomUtil
随机 double,范围 [min, max),保留指定小数位。
randomEle(List) - Static method in class com.sure.tool.util.RandomUtil
从集合中随机取一个元素。
randomEle(T[]) - Static method in class com.sure.tool.util.RandomUtil
从数组中随机取一个元素。
randomEleSet(Collection, int) - Static method in class com.sure.tool.util.RandomUtil
随机取 count 个不重复元素。
randomEleWeighted(Collection) - Static method in class com.sure.tool.util.RandomUtil
按权重随机取一个元素。
randomInt() - Static method in class com.sure.tool.util.RandomUtil
随机 int。
randomInt(int) - Static method in class com.sure.tool.util.RandomUtil
随机 int,范围 [0, limit)。
randomInt(int, int) - Static method in class com.sure.tool.util.RandomUtil
随机 int,范围 [min, max)。
randomItem(Collection) - Static method in class com.sure.tool.collection.CollUtil
从集合中随机取一个元素。
randomItems(Collection, int) - Static method in class com.sure.tool.collection.CollUtil
从集合中随机取指定数量的元素(不重复)。
randomLetter(int) - Static method in class com.sure.tool.util.RandomUtil
生成随机小写字母字符串。
randomLong() - Static method in class com.sure.tool.util.RandomUtil
随机 long。
randomLong(long, long) - Static method in class com.sure.tool.util.RandomUtil
随机 long,范围 [min, max)。
randomNanoId() - Static method in class com.sure.tool.id.NanoIdUtil
生成默认 21 字符的 Nano ID。
randomNanoId(int) - Static method in class com.sure.tool.id.NanoIdUtil
生成指定长度的 Nano ID(默认字母表)。
randomNanoId(int, char[]) - Static method in class com.sure.tool.id.NanoIdUtil
使用自定义字母表生成 Nano ID。
randomNanoId(int, char[], Random) - Static method in class com.sure.tool.id.NanoIdUtil
使用指定随机源生成 Nano ID。
randomNumbers(int) - Static method in class com.sure.tool.util.RandomUtil
随机数字字符串。
randomSecret(int) - Static method in class com.sure.tool.crypto.SecureUtil
生成随机密钥(Base64 编码)。
randomString(int) - Static method in class com.sure.tool.util.RandomUtil
随机字符串(字母 + 数字)。
randomString(int, char[]) - Static method in class com.sure.tool.util.RandomUtil
从指定字符集生成随机字符串。
randomString(String, int) - Static method in class com.sure.tool.util.RandomUtil
从指定字符集中随机字符串。
RandomUtil - Class in com.sure.tool.util
随机工具类,参考 Hutool 的 RandomUtil 设计。
randomUUID() - Static method in class com.sure.tool.util.IdUtil
随机 UUID(含连字符)。
randomUUID() - Static method in class com.sure.tool.util.RandomUtil
随机 UUID(含连字符)。
range(int, int) - Static method in class com.sure.tool.util.NumberUtil
生成整数序列 [start, end)。
range(int, int, int) - Static method in class com.sure.tool.util.NumberUtil
生成整数序列 [start, end)(指定步长)。
range(long, long, long) - Static method in class com.sure.tool.util.NumberUtil
生成长整型序列 [start, end)(指定步长)。
range(List, T, T) - Static method in class com.sure.tool.util.SearchUtil
范围查询:返回下标 [lowerBound(from), lowerBound(to)) 的不可变子列表。
ranges() - Method in class com.sure.tool.collection.RangeSet
合并后的全部区间(只读,按下界升序)。
RangeSet<T> - Class in com.sure.tool.collection
区间集合(RangeSet):维护一组互不重叠的区间,添加时自动合并重叠与首尾相接区间, 对标 Guava RangeSet 的常用子集,零依赖。
RangeSet() - Constructor for class com.sure.tool.collection.RangeSet
 
RangeSet.Range<T> - Class in com.sure.tool.collection
左闭右开区间 [lower, upper)。
rangeToList(Date, Date, DateUnit) - Static method in class com.sure.tool.date.DateUtil
生成日期区间列表(含头含尾,按指定单位步进)。
RateLimiter - Class in com.sure.tool.thread
令牌桶限流器:按固定速率补充令牌,突发容量由桶大小决定,线程安全,零依赖。
RateLimiter(double) - Constructor for class com.sure.tool.thread.RateLimiter
构造限流器。
RateLimiter(double, double) - Constructor for class com.sure.tool.thread.RateLimiter
构造限流器。
read(File) - Static method in class com.sure.tool.collection.CsvUtil
读取 CSV 文件(UTF-8)。
read(File) - Static method in class com.sure.tool.poi.ExcelUtil
读取 Excel 第一个工作表(每行为单元格值列表)。
read(File, int) - Static method in class com.sure.tool.poi.ExcelUtil
读取指定工作表。
read(File, int, int) - Static method in class com.sure.tool.poi.ExcelUtil
从指定行(含)开始读取工作表。
read(File, Charset) - Static method in class com.sure.tool.collection.CsvUtil
读取 CSV 文件(指定字符集)。
read(InputStream, Charset) - Static method in class com.sure.tool.collection.CsvUtil
读取 CSV 输入流。
read(InputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
按指定字符集读取输入流为字符串。
read(String) - Static method in class com.sure.tool.collection.CsvUtil
解析 CSV 字符串。
read(Path) - Static method in class com.sure.tool.image.ImageUtil
读取图像文件。
read(Path) - Static method in class com.sure.tool.lang.SerializeUtil
从文件反序列化。
read(ReentrantReadWriteLock, Supplier) - Static method in class com.sure.tool.thread.LockUtil
在读锁保护下执行并返回值。
readableFileSize(long) - Static method in class com.sure.tool.io.FileUtil
文件大小可读化:1024 → 1 KB,1536 → 1.5 KB。
readBytes(File) - Static method in class com.sure.tool.io.FileUtil
读取文件全部字节。
readBytes(InputStream) - Static method in class com.sure.tool.io.IoUtil
读取输入流全部字节。
readBytes(String) - Static method in class com.sure.tool.io.ResourceUtil
读取资源全部字节。
readCell(Cell) - Static method in class com.sure.tool.poi.PoiUtil
类型感知读取单元格:字符串去空白、日期格式化为字符串、整数去小数点、公式取缓存值、空白返回空串。
readFromStart() - Method in class com.sure.tool.io.TailerOptions
跳过的历史行数。
readFromStart(int) - Method in class com.sure.tool.io.TailerOptions
从文件头开始读并跳过前 N 行后再跟踪;lines <= 0 表示从文件尾部开始(等同行 tail -f)。
readFully(InputStream, byte[], int, int) - Static method in class com.sure.tool.io.IoUtil
精确读取指定长度的字节:必须读满 len 字节,否则抛 IOException。
readLines(File, Charset) - Static method in class com.sure.tool.io.FileUtil
按指定字符集读取文件为行列表。
readLines(InputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
按指定字符集读取输入流为行列表。
readLines(InputStream, Charset, Collection) - Static method in class com.sure.tool.io.IoUtil
追加式读取流内容并按行写入目标集合(适合大文件分块处理,避免一次性 OOM)。
readLines(String) - Static method in class com.sure.tool.io.FileUtil
按行读取文件(UTF-8),路径便捷重载。
readParagraphs(File) - Static method in class com.sure.tool.poi.WordUtil
读取 docx 段落文本。
readSheetNames(File) - Static method in class com.sure.tool.poi.ExcelUtil
工作表名称列表。
readString(File, Charset) - Static method in class com.sure.tool.io.FileUtil
按指定字符集读取文件为字符串。
readString(String, Charset) - Static method in class com.sure.tool.io.ResourceUtil
读取资源为字符串。
readTables(File) - Static method in class com.sure.tool.poi.WordUtil
读取 docx 所有表格(表格 → 行 → 单元格)。
readText(File) - Static method in class com.sure.tool.poi.WordUtil
读取 docx 全文(段落 + 表格文本)。
readTimeout(int) - Method in class com.sure.tool.http.HttpRequest
设置读取超时(毫秒)。
readUtf8(InputStream) - Static method in class com.sure.tool.io.IoUtil
按 UTF-8 读取输入流为字符串。
readUtf8Lines(File) - Static method in class com.sure.tool.io.FileUtil
按 UTF-8 读取文件为行列表。
readUtf8Lines(InputStream) - Static method in class com.sure.tool.io.IoUtil
按 UTF-8 读取输入流为行列表。
readUtf8String(File) - Static method in class com.sure.tool.io.FileUtil
按 UTF-8 读取文件为字符串。
readUtf8String(String) - Static method in class com.sure.tool.io.ResourceUtil
读取资源为 UTF-8 字符串。
readWithHeader(File) - Static method in class com.sure.tool.poi.ExcelUtil
读取第一个工作表,第一行作为表头,返回 Map 列表。
readWithHeader(File, int) - Static method in class com.sure.tool.poi.ExcelUtil
读取指定工作表,第一行作为表头,返回 Map 列表。
readXml(String) - Static method in class com.sure.tool.xml.XmlUtil
读取 XML 文件并解析为 Map。
recover(Function) - Method in class com.sure.tool.lang.Result
失败恢复:将失败转换为成功值(成功原样返回)。
recursive() - Method in class com.sure.tool.io.WatchOptions
是否递归监听。
recursive(boolean) - Method in class com.sure.tool.io.WatchOptions
是否递归监听子目录(默认 true;新目录创建后自动注册)。
ReflectUtil - Class in com.sure.tool.util
反射工具类,参考 Hutool 的 ReflectUtil 设计。
remove(Class) - Static method in class com.sure.tool.util.Singleton
移除指定类单例。
remove(Object) - Method in class com.sure.tool.collection.CaseInsensitiveMap
 
remove(Object, Object) - Static method in class com.sure.tool.util.ArrayUtil
移除首个匹配元素(返回新数组)。
remove(K) - Method in interface com.sure.tool.cache.Cache
移除缓存项。
remove(K) - Method in class com.sure.tool.cache.FifoCache
 
remove(K) - Method in class com.sure.tool.cache.LfuCache
 
remove(K) - Method in class com.sure.tool.cache.LruCache
 
remove(K) - Method in class com.sure.tool.cache.TimedCache
 
remove(K) - Method in class com.sure.tool.cache.WeakCache
移除缓存项。
remove(K) - Method in class com.sure.tool.collection.BiMap
按键移除。
remove(K) - Method in class com.sure.tool.fluent.FluentMap
移除指定键(不存在则原样返回)。
remove(K, V) - Method in class com.sure.tool.collection.MultiMap
移除指定键下的单个值。
remove(T) - Method in class com.sure.tool.collection.Multiset
移除一个元素,计数 -1(计数归零时删除元素)。
remove(T, int) - Method in class com.sure.tool.collection.Multiset
批量移除元素。
remove(T, T) - Method in class com.sure.tool.collection.RangeSet
移除左闭右开区间 [lower, upper)(与已有区间求差集,可能拆出 0~2 个子区间)。
removeAll(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
移除所有指定子串。
removeAll(Collection, Iterable) - Static method in class com.sure.tool.collection.CollUtil
原地差集:从 target 中移除 source 出现的全部元素(重复元素全部移除,语义对齐 CollUtil.subtract(Collection, Collection))。
removeAll(K) - Method in class com.sure.tool.collection.MultiMap
移除指定键下的所有值。
removeAllEmojis(String) - Static method in class com.sure.tool.util.EmojiUtil
移除文本中所有 Emoji。
removeAny(Collection, T...) - Static method in class com.sure.tool.collection.CollUtil
移除集合中的指定元素。
removeEdge(V, V) - Method in class com.sure.tool.graph.DiGraph
移除有向边。
removeEmpty(Collection) - Static method in class com.sure.tool.collection.CollUtil
移除集合中的 null 与空元素(空字符串/空集合/空 Map)。
removeFirst() - Method in class com.sure.tool.collection.OrderedMap
移除并返回第一个键值对,空 Map 返回 null。
removeLast() - Method in class com.sure.tool.collection.OrderedMap
移除并返回最后一个键值对,空 Map 返回 null。
removeNull(Collection) - Static method in class com.sure.tool.collection.CollUtil
移除集合中的 null 元素,返回新列表。
removePrefix(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除字符串开头的指定前缀。
removePrefix(String, String) - Static method in class com.sure.tool.util.StrUtil
去除指定前缀(无前缀则原样返回)。
removePrefixIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写去除字符串开头的指定前缀。
removeProtocol(String) - Static method in class com.sure.tool.util.UrlUtil
剥离协议前缀。
removeSuffix(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除字符串结尾的指定后缀。
removeSuffix(String, String) - Static method in class com.sure.tool.util.StrUtil
去除指定后缀(无后缀则原样返回)。
removeSuffixIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写去除字符串结尾的指定后缀。
removeSurrounding(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
当字符串以给定前后缀同时包裹时,一次性剥去首尾(前后缀相同字符串)。
removeSurrounding(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
当字符串以给定前后缀同时包裹时,一次性剥去首尾。
removeSurroundingIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写:当字符串以给定前后缀同时包裹时,一次性剥去首尾(前后缀相同字符串)。
removeSurroundingIgnoreCase(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写:当字符串以给定前后缀同时包裹时,一次性剥去首尾。
removeTag(String, String) - Static method in class com.sure.tool.util.HtmlUtil
去除指定标签(保留其他标签)。
removeVertex(V) - Method in class com.sure.tool.graph.DiGraph
移除顶点及其全部关联边。
removeWhitespace(CharSequence) - Static method in class com.sure.tool.util.StrUtil
移除字符串中的全部空白字符。
repeat(int) - Method in class com.sure.tool.fluent.FluentString
重复当前字符串 count 次。
repeat(int, SyncFinisher.Worker) - Method in class com.sure.tool.thread.SyncFinisher
重复添加同一任务多次。
repeat(CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
重复字符串指定次数。
replace(CharSequence, int, int, CharSequence) - Static method in class com.sure.tool.util.StrUtil
替换字符串中指定区间(含 begin,不含 end)的内容。
replace(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
替换字符串中的全部指定子串。
replace(String, char) - Static method in class com.sure.tool.dfa.DfaUtil
敏感词替换为指定字符(重叠词同样覆盖)。
replace(String, String) - Static method in class com.sure.tool.dfa.DfaUtil
将文本中的敏感词替换为指定字符串。
replace(String, String) - Method in class com.sure.tool.fluent.FluentString
字面替换(非正则)。
replace(String, Map) - Method in class com.sure.tool.util.StrSubstitutor
执行模板变量替换。
replace(String, Map, String, String) - Static method in class com.sure.tool.util.StrSubstitutor
一行式替换(自定义定界符,默认转义符 $)。
replaceAll(CharSequence, String, String) - Static method in class com.sure.tool.util.ReUtil
替换所有匹配,模板中可使用 $1、$2 引用分组。
replaceAll(String, String) - Method in class com.sure.tool.fluent.FluentString
正则替换。
replaceIgnoreCase(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写替换所有匹配子串。
replaceOnce(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
仅替换第一次出现的搜索子串。
reset() - Method in class com.sure.tool.lang.StopWatch
重置计时器。
resize(T[], int) - Static method in class com.sure.tool.util.ArrayUtil
调整数组长度(扩容补 null,缩容截断)。
ResourceUtil - Class in com.sure.tool.io
资源读取工具,统一支持 classpath、文件系统与 HTTP(S) 资源。
restart() - Method in class com.sure.tool.util.TimeInterval
重新开始计时(重置起点为当前时刻)。
Result<T> - Class in com.sure.tool.lang
显式错误传播的两态结果门面(成功值 / 失败信息)。
Results - Class in com.sure.tool.lang
Result 的 Fluent 组合子门面:批量聚合(全部成功 / 首个成功)。
retainAll(Collection, Iterable) - Static method in class com.sure.tool.collection.CollUtil
原地交集:仅保留 target 中同时存在于 source 的元素(保 target 原有顺序)。
retry(Callable, int, Duration) - Static method in class com.sure.tool.util.RetryUtil
固定间隔重试,直到成功或达到最大次数。
retry(Callable, int, Duration, boolean) - Static method in class com.sure.tool.util.RetryUtil
固定间隔重试,直到成功或达到最大次数。
retryUntil(Callable, Predicate, int, Duration) - Static method in class com.sure.tool.util.RetryUtil
重试直到结果满足条件。
RetryUtil - Class in com.sure.tool.util
重试工具类:按固定间隔重试指定次数,支持结果条件与异常判定,零依赖。
ReUtil - Class in com.sure.tool.util
正则工具类,参考 Hutool 的 ReUtil 设计。
reverse() - Method in class com.sure.tool.fluent.FluentList
反转顺序。
reverse() - Method in class com.sure.tool.fluent.FluentString
反转字符串。
reverse(byte[]) - Static method in class com.sure.tool.util.BytesUtil
反转字节数组(返回新数组)。
reverse(CharSequence) - Static method in class com.sure.tool.util.StrUtil
反转字符串。
reverse(Object) - Static method in class com.sure.tool.util.ArrayUtil
反转数组。
reverse(List) - Static method in class com.sure.tool.collection.CollUtil
反转列表(原地反转)。
reverse(List) - Static method in class com.sure.tool.collection.ListUtil
反转列表(原地)。
reverse(Map) - Static method in class com.sure.tool.collection.MapUtil
key/value 反转(值相同会互相覆盖)。
reverse(Set) - Static method in class com.sure.tool.collection.SetUtil
反序新 Set(逆序拷贝)。
reversed(Collection) - Static method in class com.sure.tool.collection.SeqUtil
倒序返回集合副本(快照,非视图)。
reverseNew(List) - Static method in class com.sure.tool.collection.ListUtil
反转列表(返回新列表,不影响原列表)。
right() - Method in record class com.sure.tool.lang.Pair
Returns the value of the right record component.
right() - Method in record class com.sure.tool.lang.Triple
Returns the value of the right record component.
rot13(String) - Static method in class com.sure.tool.codec.RotUtil
ROT-13 编码/解码(自身互逆)。
rot47(String) - Static method in class com.sure.tool.codec.RotUtil
ROT-47 编码/解码(自身互逆)。
rotate(BufferedImage, int) - Static method in class com.sure.tool.image.ImageUtil
旋转图像(90 度整数倍)。
rotate(CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
循环移位:正数右移、负数左移(参考 commons-lang StringUtils.rotate)。
rotate(List, int) - Static method in class com.sure.tool.collection.CollUtil
旋转列表元素(正数为右旋,负数为左旋)。
RotUtil - Class in com.sure.tool.codec
ROT 轮转密码工具。
round(double, int) - Static method in class com.sure.tool.util.NumberUtil
四舍五入保留指定小数位。
round(String, int) - Static method in class com.sure.tool.util.NumberUtil
字符串数值四舍五入保留指定小数位。
round(Date, int) - Static method in class com.sure.tool.date.DateUtil
四舍五入到指定 Calendar 字段。
rsaDecryptBase64(String, PrivateKey) - Static method in class com.sure.tool.crypto.SecureUtil
RSA 私钥解密 Base64 密文。
rsaEncryptBase64(String, PublicKey) - Static method in class com.sure.tool.crypto.SecureUtil
RSA 公钥加密为 Base64。
rsaGenerateKeyPair() - Static method in class com.sure.tool.crypto.SecureUtil
生成 RSA 密钥对(2048 位)。
rsaSign(String, PrivateKey) - Static method in class com.sure.tool.crypto.SecureUtil
RSA 签名(Base64)。
RsaUtil - Class in com.sure.tool.crypto
RSA 加解密工具类(RSA/ECB/OAEPWithSHA-256AndMGF1Padding),无状态静态方法、线程安全,参考 Hutool 的 RSA 设计。
rsaVerify(String, PublicKey, String) - Static method in class com.sure.tool.crypto.SecureUtil
RSA 验签(Base64)。
runAsync(Runnable) - Static method in class com.sure.tool.thread.AsyncUtil
虚拟线程异步执行(fire-and-forget)。
runAsync(Runnable, Executor) - Static method in class com.sure.tool.thread.AsyncUtil
指定执行器异步执行(fire-and-forget)。
runLocked(Object, Runnable) - Method in class com.sure.tool.thread.StripedLock
在 key 对应段锁保护下执行动作(锁内执行,不可重入嵌套使用)。
runLocked(Object, Supplier) - Method in class com.sure.tool.thread.StripedLock
在 key 对应段锁保护下执行并返回值。
runRead(ReentrantReadWriteLock, Runnable) - Static method in class com.sure.tool.thread.LockUtil
在读锁保护下执行。
RuntimeInfo - Class in com.sure.tool.system
JVM 运行时信息:版本 / 启动与运行时长 / 堆与非堆内存 / 线程数,参考 Hutool 的 RuntimeInfo 设计。
RuntimeUtil - Class in com.sure.tool.util
运行时命令执行工具类,参考 Hutool 的 RuntimeUtil 设计。
runWrite(ReentrantReadWriteLock, Runnable) - Static method in class com.sure.tool.thread.LockUtil
在写锁保护下执行。

S

sample(List, int) - Static method in class com.sure.tool.collection.ListUtil
随机取样:返回不重复的 count 个元素(保原顺序的随机子集);count 不小于列表大小时返回全量洗牌副本。
scale(BufferedImage, int, int) - Static method in class com.sure.tool.image.ImageUtil
缩放图像(保持宽高比,按目标宽度计算高度;quality 高质量插值)。
scanPackage(String) - Static method in class com.sure.tool.util.ClassScanner
扫描指定包及其子包下的全部类(不含内部类 / 匿名类)。
scanPackage(String, Predicate) - Static method in class com.sure.tool.util.ClassScanner
按谓词过滤扫描指定包及其子包下的类。
scanPackageByAnnotation(String, Class) - Static method in class com.sure.tool.util.ClassScanner
扫描指定包下标注了指定注解的类(含子包)。
scanPackageBySuper(String, Class) - Static method in class com.sure.tool.util.ClassScanner
扫描指定包下指定父类 / 接口的实现类(含子包)。
schedule(String, Runnable) - Static method in class com.sure.tool.cron.CronUtil
注册定时任务(调度器未启动时注册,CronUtil.start() 后生效)。
SearchUtil - Class in com.sure.tool.util
有序数组/列表查找工具:上下界、范围查询、二分、插值与指数查找。
season(Date) - Static method in class com.sure.tool.date.DateUtil
季度(1~4)。
second(Date) - Static method in class com.sure.tool.date.DateUtil
秒(0~59)。
SECOND - Enum constant in enum class com.sure.tool.date.DateUnit
秒
SecureUtil - Class in com.sure.tool.crypto
安全工具门面:哈希、AES/DES/RSA/HMAC 一键加解密、随机密钥,参考 Hutool 的 SecureUtil 设计。
select(Object, String) - Static method in class com.sure.tool.json.JsonPath
按 JSONPath 查询,返回所有匹配值(无匹配时为空列表)。
send(T) - Method in class com.sure.tool.thread.Actor
异步投递一条消息(非阻塞)。
sequence(List) - Static method in class com.sure.tool.lang.Results
列表聚合(allOf 别名):全部成功聚合,任一失败携带首个错误。
SeqUtil - Class in com.sure.tool.collection
Sequenced 集合工具类(JDK 21 SequencedCollection / SequencedMap)。
serialize(Serializable) - Static method in class com.sure.tool.lang.SerializeUtil
对象序列化为字节数组。
serialize(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象序列化为字节数组。
SerializeUtil - Class in com.sure.tool.lang
JDK 序列化工具类:对象与字节互转、文件读写,零依赖。
set(int, int) - Static method in class com.sure.tool.util.BitUtil
设置 int 指定位为 1。
set(long, int) - Static method in class com.sure.tool.util.BitUtil
设置 long 指定位为 1。
set(String, Object) - Method in class com.sure.tool.json.JSONObject
链式设置值。
set(String, Object) - Method in class com.sure.tool.lang.Dict
设置键值对并返回自身(支持链式调用)。
set(String, Object) - Method in class com.sure.tool.util.Props
设置键值。
setAccessible(Field) - Static method in class com.sure.tool.util.ReflectUtil
设置字段可访问并返回原字段。
setAlgorithm(String) - Method in class com.sure.tool.jwt.JWT
设置签名算法。
setAll(Map) - Method in class com.sure.tool.json.JSONObject
批量设置(链式)。
setCellValue(Cell, Object) - Static method in class com.sure.tool.poi.PoiUtil
写入单元格值(String/Number/Boolean/Date 类型自动映射)。
setCorePoolSize(int) - Method in class com.sure.tool.thread.ExecutorBuilder
设置核心线程数。
setCount(T, int) - Method in class com.sure.tool.collection.Multiset
设置元素计数(0 表示移除该元素)。
setDaemon(boolean) - Method in class com.sure.tool.thread.ExecutorBuilder
设置线程是否守护。
setExpiresAt(Date) - Method in class com.sure.tool.jwt.JWT
设置过期时间(写入 exp,Unix 秒)。
setFieldValue(Object, String, Object) - Static method in class com.sure.tool.util.ReflectUtil
设置对象字段值(支持静态字段,对象传 null)。
setId(T) - Method in class com.sure.tool.collection.TreeNode
设置 ID。
setIssuedAt(Date) - Method in class com.sure.tool.jwt.JWT
设置签发时间(写入 iat,Unix 秒)。
setKeepAliveTime(long, TimeUnit) - Method in class com.sure.tool.thread.ExecutorBuilder
设置空闲线程存活时间。
setKey(byte[]) - Method in class com.sure.tool.jwt.JWT
设置 HMAC 密钥。
setKey(String) - Method in class com.sure.tool.jwt.JWT
设置 HMAC 密钥(字符串按 UTF-8 编码)。
setKeyPair(KeyPair) - Method in class com.sure.tool.jwt.JWT
设置 RSA 密钥对(签名用私钥、校验用公钥)。
setMaxPoolSize(int) - Method in class com.sure.tool.thread.ExecutorBuilder
设置最大线程数。
setName(String) - Method in class com.sure.tool.collection.TreeNode
设置名称。
setNotBefore(Date) - Method in class com.sure.tool.jwt.JWT
设置生效时间(写入 nbf,Unix 秒)。
setParentId(T) - Method in class com.sure.tool.collection.TreeNode
设置父节点 ID。
setPayload(String, Object) - Method in class com.sure.tool.jwt.JWT
添加 payload claim。
setPayload(Map) - Method in class com.sure.tool.jwt.JWT
批量添加 payload claims。
setProperty(Object, String, Object) - Static method in class com.sure.tool.bean.BeanUtil
写入属性值(带类型转换)。
setQueueCapacity(int) - Method in class com.sure.tool.thread.ExecutorBuilder
设置任务队列容量(>0 时使用有界队列,否则无界)。
setRejectedHandler(RejectedExecutionHandler) - Method in class com.sure.tool.thread.ExecutorBuilder
设置拒绝策略。
setThreadNamePrefix(String) - Method in class com.sure.tool.thread.ExecutorBuilder
设置线程名前缀。
SettingUtil - Class in com.sure.tool.config
分层配置读取工具类,参考 Hutool Setting 设计。
SetUtil - Class in com.sure.tool.collection
Set 工具类,参考 Guava Sets 与 Hutool 的 SetUtil 设计。
sha1(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-1 摘要(原始字节)。
sha1(byte[]) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-1 摘要(40 位小写十六进制)。
sha1(String) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-1 摘要(40 位小写十六进制)。
sha1Hex(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-1 摘要(小写十六进制)。
sha1Hex(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 SHA-1 摘要(小写十六进制)。
sha256(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-256 摘要(原始字节)。
sha256(byte[]) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-256 摘要(64 位小写十六进制)。
sha256(String) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-256 摘要(64 位小写十六进制)。
sha256Hex(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-256 摘要(小写十六进制)。
sha256Hex(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 SHA-256 摘要(小写十六进制)。
sha384(String) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-384 摘要(十六进制小写)。
sha512(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-512 摘要(原始字节)。
sha512(byte[]) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-512 摘要。
sha512(String) - Static method in class com.sure.tool.crypto.SecureUtil
SHA-512 摘要。
sha512Hex(byte[]) - Static method in class com.sure.tool.codec.HashUtil
计算字节数组的 SHA-512 摘要(小写十六进制)。
sha512Hex(String) - Static method in class com.sure.tool.codec.HashUtil
计算字符串(UTF-8)的 SHA-512 摘要(小写十六进制)。
ShearCaptcha - Class in com.sure.tool.captcha
扭曲(错切)验证码,参考 Hutool 的 ShearCaptcha 设计。
ShearCaptcha(int, int, int, int) - Constructor for class com.sure.tool.captcha.ShearCaptcha
创建扭曲验证码。
shortestPath(DiGraph, V, V) - Static method in class com.sure.tool.graph.GraphUtil
无权图最短路径(BFS),返回路径顶点序列(含起点与终点)。
shortToBytes(short) - Static method in class com.sure.tool.util.BytesUtil
short 转 2 字节(大端)。
shuffle(List) - Static method in class com.sure.tool.collection.CollUtil
就地洗牌(Fisher-Yates),返回原列表以便链式调用。
shuffle(List, Random) - Static method in class com.sure.tool.collection.ListUtil
原地洗牌(Fisher-Yates,可注入随机源)。
shuffleCopy(List, Random) - Static method in class com.sure.tool.collection.ListUtil
洗牌副本:返回洗牌后的新列表,原列表不变。
shutdownQuietly(ExecutorService) - Static method in class com.sure.tool.thread.ThreadUtil
安静关闭线程池(最多等待 30 秒)。
sign() - Method in class com.sure.tool.jwt.JWT
签发并返回 token。
sign(Sm2Util.Sm2KeyPair, byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 签名(r||s,64 字节)。
sign(Sm2Util.Sm2KeyPair, byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 签名(r||s,64 字节)。
sign(String, PrivateKey) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 签名(SHA256withRSA,Base64 输出)。
signBytes(String, PrivateKey) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 签名,返回原始字节。
signHex(String, PrivateKey) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 签名(SHA256withRSA,Hex 输出)。
similarity(String, String) - Static method in class com.sure.tool.text.StrSimilarity
相似度(1 - 编辑距离 / 最大长度),0~1,1 表示完全相同。
simpleUUID() - Static method in class com.sure.tool.util.IdUtil
随机 UUID(不含连字符)。
simpleUUID() - Static method in class com.sure.tool.util.RandomUtil
随机 UUID(不含连字符)。
Singleton - Class in com.sure.tool.util
单例池工具:按类持有全局唯一实例,线程安全,零依赖。
size() - Method in interface com.sure.tool.cache.Cache
缓存项数量。
size() - Method in class com.sure.tool.cache.FifoCache
 
size() - Method in class com.sure.tool.cache.LfuCache
 
size() - Method in class com.sure.tool.cache.LruCache
 
size() - Method in class com.sure.tool.cache.TimedCache
 
size() - Method in class com.sure.tool.cache.WeakCache
缓存项数量(含待清理的已回收项,实际读取时自动收敛)。
size() - Method in class com.sure.tool.collection.BiMap
映射数量。
size() - Method in class com.sure.tool.collection.MultiMap
全部值的总数(含重复)。
size() - Method in class com.sure.tool.collection.Multiset
含重复计数的总元素数。
size() - Method in class com.sure.tool.fluent.FluentMap
终端:键值对数量。
size() - Method in class com.sure.tool.lang.WeightRandom
当前项数量。
size(BufferedImage) - Static method in class com.sure.tool.image.ImageUtil
图像尺寸信息(宽 x 高)。
size(File) - Static method in class com.sure.tool.io.FileUtil
计算文件或目录大小(字节)。
size(Iterable) - Static method in class com.sure.tool.collection.IterUtil
统计可迭代对象元素个数。
size(String) - Static method in class com.sure.tool.io.FileUtil
文件大小(字节),路径便捷重载。
size(Collection) - Static method in class com.sure.tool.collection.CollUtil
集合大小。
size(Iterator) - Static method in class com.sure.tool.collection.IterUtil
统计迭代器元素个数(消耗迭代器)。
size(Set) - Static method in class com.sure.tool.collection.SetUtil
安全取大小(null 返回 0)。
sizeFormat(long) - Static method in class com.sure.tool.io.FileUtil
文件大小格式化:B / KB / MB / GB / TB(二进制单位,保留 1 位小数;不足 1KB 显示整数字节)。
skip(int) - Method in class com.sure.tool.fluent.FluentList
跳过前 n 个元素。
skipFully(InputStream, long) - Static method in class com.sure.tool.io.IoUtil
精确跳过指定字节数:不足则抛 IOException。
sleep(long) - Static method in class com.sure.tool.thread.ThreadUtil
休眠(毫秒),中断时恢复中断标志并抛运行时异常。
sleep(long, TimeUnit) - Static method in class com.sure.tool.thread.ThreadUtil
休眠(指定时间单位),中断时恢复中断标志并抛运行时异常。
sleep(Duration) - Static method in class com.sure.tool.thread.ThreadUtil
休眠(指定时长),中断时恢复中断标志并抛运行时异常。
sleepInterruptibly(Duration) - Static method in class com.sure.tool.thread.ThreadUtil
可中断睡眠:InterruptedException 直接抛出(区别于 ThreadUtil.sleep(Duration) 的静默恢复中断位),适合需要感知中断的取消协作场景。
slice(byte[], int, int) - Static method in class com.sure.tool.util.BytesUtil
切片(含 from 不含 to)。
sm2Decrypt(Sm2Util.Sm2KeyPair, byte[]) - Static method in class com.sure.tool.crypto.SmUtil
SM2 解密。
sm2Encrypt(BigInteger, BigInteger, byte[]) - Static method in class com.sure.tool.crypto.SmUtil
SM2 加密(C1||C3||C2)。
sm2KeyPair() - Static method in class com.sure.tool.crypto.SmUtil
生成 SM2 密钥对。
sm2Sign(Sm2Util.Sm2KeyPair, byte[]) - Static method in class com.sure.tool.crypto.SmUtil
SM2 签名(r||s,64 字节)。
Sm2Util - Class in com.sure.tool.crypto
国密 SM2 椭圆曲线公钥密码算法工具类(纯 JDK 实现,零第三方依赖)。
Sm2Util.Sm2KeyPair - Class in com.sure.tool.crypto
SM2 密钥对(私钥 d 与公钥点 P = dG)。
sm2Verify(BigInteger, BigInteger, byte[], byte[]) - Static method in class com.sure.tool.crypto.SmUtil
SM2 验签。
sm3(byte[]) - Static method in class com.sure.tool.crypto.Sm3Util
计算 SM3 摘要。
sm3(byte[]) - Static method in class com.sure.tool.crypto.SmUtil
SM3 摘要。
sm3Base64(byte[]) - Static method in class com.sure.tool.crypto.Sm3Util
计算字节数组的 SM3 摘要(Base64)。
sm3Base64(String) - Static method in class com.sure.tool.crypto.Sm3Util
计算字符串 UTF-8 编码的 SM3 摘要(Base64)。
sm3Hex(byte[]) - Static method in class com.sure.tool.crypto.Sm3Util
计算 SM3 摘要(十六进制小写)。
sm3Hex(String) - Static method in class com.sure.tool.crypto.Sm3Util
计算字符串 UTF-8 编码的 SM3 摘要(十六进制小写)。
sm3Hex(String) - Static method in class com.sure.tool.crypto.SmUtil
SM3 摘要(十六进制)。
Sm3Util - Class in com.sure.tool.crypto
国密 SM3 杂凑算法工具类(纯 JDK 实现,零第三方依赖)。
sm4DecryptStr(byte[], String) - Static method in class com.sure.tool.crypto.SmUtil
SM4-ECB 解密(十六进制)。
sm4EncryptHex(byte[], String) - Static method in class com.sure.tool.crypto.SmUtil
SM4-ECB 加密(十六进制)。
sm4Key() - Static method in class com.sure.tool.crypto.SmUtil
SM4 生成密钥。
Sm4Util - Class in com.sure.tool.crypto
国密 SM4 分组密码算法工具类(纯 JDK 实现,零第三方依赖)。
SmUtil - Class in com.sure.tool.crypto
国密算法统一入口(SM2 / SM3 / SM4)。
Snowflake - Class in com.sure.tool.lang
雪花算法 ID 生成器,参考 Hutool 的 Snowflake 设计。
Snowflake(long, long) - Constructor for class com.sure.tool.lang.Snowflake
构造雪花 ID 生成器。
Snowflake(long, long, long) - Constructor for class com.sure.tool.lang.Snowflake
构造雪花 ID 生成器(自定义起始时间戳)。
sort(Collection, Comparator) - Static method in class com.sure.tool.collection.CollUtil
排序(返回新列表)。
sort(Map, boolean) - Static method in class com.sure.tool.collection.MapUtil
按 key 排序(key 需可比),返回 LinkedHashMap。
sortByKey(Map) - Static method in class com.sure.tool.collection.MapUtil
按键升序排序 Map(便捷版,委托 MapUtil.sort(Map, boolean))。
sortByProperty(Collection, String) - Static method in class com.sure.tool.collection.CollUtil
按属性升序排序。
sortByProperty(Collection, String, boolean) - Static method in class com.sure.tool.collection.CollUtil
 
sortByPropertyDesc(Collection, String) - Static method in class com.sure.tool.collection.CollUtil
按属性降序排序。
sortByValue(Map, boolean) - Static method in class com.sure.tool.collection.MapUtil
按值排序(值需可比),返回有序 LinkedHashMap。
sortByValueDesc(Map) - Static method in class com.sure.tool.collection.MapUtil
按值降序排序(返回 LinkedHashMap 保持顺序)。
sorted() - Method in class com.sure.tool.fluent.FluentList
自然顺序排序(元素需实现 Comparable,否则 ClassCastException)。
sorted(Comparator) - Method in class com.sure.tool.fluent.FluentList
按指定比较器排序。
source() - Method in record class com.sure.tool.graph.DiGraph.Edge
Returns the value of the source record component.
SPACE - Static variable in class com.sure.tool.util.StrUtil
空格
span() - Method in class com.sure.tool.collection.RangeSet
覆盖全集的最小区间(从最小下界到最大上界);集合为空返回 null。
split(CharSequence, char) - Static method in class com.sure.tool.util.StrSplitter
按字符分割,不去空白、不忽略空段。
split(CharSequence, char) - Static method in class com.sure.tool.util.StrUtil
按单个字符分割字符串。
split(CharSequence, char, int, boolean, boolean) - Static method in class com.sure.tool.util.StrSplitter
按字符分割。
split(CharSequence, String) - Static method in class com.sure.tool.util.StrUtil
按字符串分割(分隔符中的正则特殊字符会被转义)。
split(CharSequence, String, boolean) - Static method in class com.sure.tool.util.StrSplitter
按字符串分隔符分割。
split(List, int) - Static method in class com.sure.tool.collection.CollUtil
按固定大小切分为多组。
splitByLength(CharSequence, int) - Static method in class com.sure.tool.util.StrSplitter
按长度均分,最后一段可为余数长度。
splitPath(CharSequence) - Static method in class com.sure.tool.util.StrSplitter
按路径分隔符(/ 与 \\)分割。
splitPath(CharSequence, int) - Static method in class com.sure.tool.util.StrSplitter
按路径分隔符分割。
splitPreserveAllTokens(CharSequence, char) - Static method in class com.sure.tool.util.StrUtil
按分隔字符分割并保留全部空 token(连续分隔符、首尾分隔符产生的空串均保留)。
splitToArray(CharSequence, char) - Static method in class com.sure.tool.util.StrSplitter
按字符分割为数组。
splitToDoubleArray(String) - Static method in class com.sure.tool.util.StrUtil
分隔为 double 数组(空白分隔),非法元素按 0 处理。
splitToIntArray(String) - Static method in class com.sure.tool.util.StrUtil
分隔为 int 数组(空白分隔),非法元素按 0 处理。
splitToLongArray(String) - Static method in class com.sure.tool.util.StrUtil
分隔为 long 数组(空白分隔),非法元素按 0 处理。
splitTrim(String, String) - Static method in class com.sure.tool.util.StrUtil
按分隔符拆分并去除每个元素首尾空白(保留空元素)。
start() - Static method in class com.sure.tool.cron.CronUtil
启动调度(幂等)。
start() - Method in class com.sure.tool.lang.StopWatch
开始计时(已在计时中则忽略)。
start() - Method in class com.sure.tool.thread.SyncFinisher
启动并发执行。
start() - Static method in class com.sure.tool.util.TimeInterval
构造并开始计时。
start(Path, Consumer) - Static method in class com.sure.tool.io.FileTailer
从文件尾部开始跟踪。
start(Path, Consumer, TailerOptions) - Static method in class com.sure.tool.io.FileTailer
按选项跟踪文件。
start(Consumer) - Static method in class com.sure.tool.thread.Actor
启动一个无界邮箱 Actor,消息在独立虚拟线程上被顺序消费。
start(Consumer, int) - Static method in class com.sure.tool.thread.Actor
启动一个邮箱容量受限的 Actor(容量 ≤ 0 视为无界)。
start(Consumer, int, Consumer) - Static method in class com.sure.tool.thread.Actor
启动一个带错误回调的 Actor(容量 ≤ 0 视为无界)。
startsWith(String) - Method in class com.sure.tool.fluent.FluentString
终端:是否以指定前缀开头。
startVirtualThread(Runnable) - Static method in class com.sure.tool.thread.ThreadUtil
启动一个虚拟线程执行任务(JDK 21+)。
startWith(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
是否以指定前缀开头。
startWithAny(CharSequence, CharSequence...) - Static method in class com.sure.tool.util.StrUtil
是否以任一前缀开头。
startWithIgnoreCase(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
忽略大小写是否以指定前缀开头。
stop() - Static method in class com.sure.tool.cron.CronUtil
停止调度并清空任务(幂等)。
stop() - Method in class com.sure.tool.io.FileTailer
停止跟踪(幂等)。
stop() - Method in class com.sure.tool.io.WatchDir
停止监听(幂等)。
stop() - Method in class com.sure.tool.lang.StopWatch
停止计时并累计耗时(未在计时中则忽略)。
stop() - Method in class com.sure.tool.thread.SyncFinisher
停止并释放线程池(复用前需重新调用 SyncFinisher.start())。
stopOnDelete() - Method in class com.sure.tool.io.TailerOptions
是否在文件被删除时停止。
stopOnDelete(boolean) - Method in class com.sure.tool.io.TailerOptions
文件被删除时是否停止;默认 false 表示等待文件重建后自动重开。
StopWatch - Class in com.sure.tool.lang
秒表计时器,参考 Hutool 的 StopWatch 设计。
StopWatch() - Constructor for class com.sure.tool.lang.StopWatch
 
StopWatch(String) - Constructor for class com.sure.tool.lang.StopWatch
创建秒表。
StreamJsonParser - Class in com.sure.tool.json
JSON 流式解析器(零第三方依赖)。
StreamUtil - Class in com.sure.tool.util
流工具类,参考 Hutool 的 StreamUtil 设计。
string(String) - Static method in class com.sure.tool.fluent.Fluent
创建字符串管道。
strip(String) - Static method in class com.sure.tool.util.StrUtil
去除字符串首尾的空白字符。
strip(String, char) - Static method in class com.sure.tool.util.StrUtil
去除字符串首尾的指定字符。
StripedLock - Class in com.sure.tool.thread
定长分段锁:按 key 哈希映射到固定数量的锁段,避免 LockUtil 按 key 无界缓存导致的内存增长, 参考 Guava Striped<Lock> 设计。
StripedLock() - Constructor for class com.sure.tool.thread.StripedLock
构造默认 16 段分段锁。
StripedLock(int) - Constructor for class com.sure.tool.thread.StripedLock
构造指定段数分段锁(段数向上取整为 2 的幂)。
stripEnd(String, String) - Static method in class com.sure.tool.util.StrUtil
剥离结尾出现的字符集合字符(stripChars 为 null 时剥离空白)。
stripPrefix(String) - Method in class com.sure.tool.fluent.FluentString
去除指定前缀(不匹配返回原串)。
stripStart(String, String) - Static method in class com.sure.tool.util.StrUtil
剥离开头出现的字符集合字符(stripChars 为 null 时剥离空白)。
stripSuffix(String) - Method in class com.sure.tool.fluent.FluentString
去除指定后缀(不匹配返回原串)。
StrJoiner - Class in com.sure.tool.collection
字符串拼接器:带分隔符、前缀、后缀,参考 Hutool 的 StrJoiner 设计。
StrSimilarity - Class in com.sure.tool.text
字符串相似度工具类:编辑距离、相似度、Jaccard、余弦相似度,零依赖。
StrSplitter - Class in com.sure.tool.util
字符串分割工具类:支持限制段数、去空白、忽略空段与按长度分割,参考 Hutool 的 StrSplitter 设计。
StrSubstitutor - Class in com.sure.tool.util
模板变量替换引擎,参考 Apache Commons Text StrSubstitutor 的高频子集设计。
StrSubstitutor() - Constructor for class com.sure.tool.util.StrSubstitutor
构造替换器,使用默认前缀 ${}、后缀 {@code }、转义符 $。
StrSubstitutor(String, String) - Constructor for class com.sure.tool.util.StrSubstitutor
构造替换器,使用默认转义符 $。
StrSubstitutor(String, String, char) - Constructor for class com.sure.tool.util.StrSubstitutor
构造替换器,自定义定界符与转义符。
StructuredTaskUtil - Class in com.sure.tool.thread
结构化并发工具类:扇出-聚合、首成功短路与限时编排。
StrUtil - Class in com.sure.tool.util
字符串工具类,参考 Hutool 的 StrUtil 设计。
sub(double, double) - Static method in class com.sure.tool.util.NumberUtil
减法(基于 BigDecimal)。
sub(CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
从起始索引截取到字符串末尾。
sub(CharSequence, int, int) - Static method in class com.sure.tool.util.StrUtil
安全截取字符串,支持负索引(从末尾倒数)。
sub(Object, int, int) - Static method in class com.sure.tool.util.ArrayUtil
截取数组子区间。
sub(List, int, int) - Static method in class com.sure.tool.collection.CollUtil
截取列表子区间(负数索引从末尾倒数)。
sub(List, int, int) - Static method in class com.sure.tool.collection.ListUtil
截取子列表。
subAfter(String, String, boolean) - Static method in class com.sure.tool.util.StrUtil
截取指定分隔符之后的子串。
subBefore(String, String, boolean) - Static method in class com.sure.tool.util.StrUtil
截取指定分隔符之前的子串。
subBetween(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
取两标记之间的内容(第一个匹配)。
subBetweenAll(String, String, String) - Static method in class com.sure.tool.util.StrUtil
提取所有两两之间的内容。
subListSafe(List, int, int) - Static method in class com.sure.tool.collection.ListUtil
越界安全截取:起始与结束下标被钳制到合法范围,起始大于结束时返回空列表。
subPre(String, int) - Static method in class com.sure.tool.util.StrUtil
截取头部 n 个字符。
substitute(String, Map) - Static method in class com.sure.tool.util.StrSubstitutor
一行式替换(默认前缀 ${}、后缀 {@code }、转义符 $)。
substitute(String, Map) - Static method in class com.sure.tool.util.StrUtil
模板变量替换(默认前缀 ${}、后缀 {@code }、转义符 $),委托 StrSubstitutor。
substitute(String, Map, String, String) - Static method in class com.sure.tool.util.StrUtil
模板变量替换(自定义定界符,默认转义符 $),委托 StrSubstitutor。
substring(int) - Method in class com.sure.tool.fluent.FluentString
截取子串(从 begin 到末尾)。
substring(int, int) - Method in class com.sure.tool.fluent.FluentString
截取子串([begin, end))。
substringBetween(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
取标签之间的文本(单标签,首次匹配):形如 <a>text</a> 取 text。
substringBetween(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
取开始与结束标签之间的文本(首次匹配)。
subSuf(String, int) - Static method in class com.sure.tool.util.StrUtil
截取尾部 n 个字符。
subtract(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
单向差集:返回 c1 中存在但 c2 中不存在的元素。
subtract(List, List) - Static method in class com.sure.tool.collection.ListUtil
差集(保序去重):左列表中不在右列表的元素。
subtract(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
差集(保序):左集合中不在右集合的元素。
successors(V) - Method in class com.sure.tool.graph.DiGraph
后继顶点集合(出边目标)。
sum(Collection) - Static method in class com.sure.tool.collection.CollUtil
int 集合求和。
sum(List) - Static method in class com.sure.tool.collection.ListUtil
数值求和(null 元素跳过;空或全 null 返回 0)。
sumDouble(Collection) - Static method in class com.sure.tool.collection.CollUtil
double 集合求和。
sumLong(Collection) - Static method in class com.sure.tool.collection.CollUtil
long 集合求和。
summaryStatistics(Collection, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
数值统计:一次性汇总 count / sum / min / max / average。
supplyAsync(Supplier) - Static method in class com.sure.tool.thread.AsyncUtil
虚拟线程异步供应值。
sure.cache - module sure.cache
 
sure.captcha - module sure.captcha
 
sure.core - module sure.core
 
sure.cron - module sure.cron
 
sure.crypto - module sure.crypto
 
sure.dfa - module sure.dfa
 
sure.http - module sure.http
 
sure.json - module sure.json
 
sure.jwt - module sure.jwt
 
sure.poi - module sure.poi
 
sure.xml - module sure.xml
 
surround(CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
用指定包裹字符串将目标字符串首尾包裹(如用引号包裹)。
swap(Object, int, int) - Static method in class com.sure.tool.util.ArrayUtil
交换数组中两位置元素(原数组修改)。
swap(List, int, int) - Static method in class com.sure.tool.collection.CollUtil
交换列表中两个位置的元素。
swapCase(CharSequence) - Static method in class com.sure.tool.util.StrUtil
大小写互换:大写转小写、小写转大写(参考 commons-lang StringUtils.swapCase)。
swapCase(String) - Static method in class com.sure.tool.util.StrUtil
交换字符串中字母的大小写。
symmetricDifference(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
对称差(保序):两个集合互斥元素(左右各自独有)。
sync() - Method in class com.sure.tool.thread.SyncFinisher
启动并等待全部完成。
SyncFinisher - Class in com.sure.tool.thread
并发同步器:以固定线程数并发执行一组任务并等待全部完成,参考 Hutool 的 SyncFinisher 设计。
SyncFinisher(int) - Constructor for class com.sure.tool.thread.SyncFinisher
创建同步器。
SyncFinisher.Worker - Interface in com.sure.tool.thread
工作单元。
SystemInfo - Class in com.sure.tool.system
系统运行时信息:CPU、内存、JVM、OS 家族与进程信息。
SystemUtil - Class in com.sure.tool.util
系统属性工具类,参考 Hutool 的 SystemUtil 设计。

T

TailerOptions - Class in com.sure.tool.io
文件 tail 选项(builder 风格)。
TailerOptions() - Constructor for class com.sure.tool.io.TailerOptions
 
takeWhile(Collection, Predicate) - Static method in class com.sure.tool.collection.CollUtil
从头取满足谓词的元素前缀,遇到第一个不满足的元素即停止(Stream.takeWhile 的集合版)。
target() - Method in record class com.sure.tool.graph.DiGraph.Edge
Returns the value of the target record component.
ThreadUtil - Class in com.sure.tool.thread
线程工具类:异步执行、休眠、线程工厂,参考 Hutool 的 ThreadUtil 设计。
ThreadUtil.NamedThreadFactory - Class in com.sure.tool.thread
命名线程工厂。
throwIfFailed() - Method in class com.sure.tool.lang.Result
失败时抛出异常(携带 cause),成功返回自身值。
TimedCache<K,V> - Class in com.sure.tool.cache
定时过期缓存:条目可设定存活时间(TTL),读取时惰性过期,参考 Hutool 的 TimedCache 设计。
TimedCache(long) - Constructor for class com.sure.tool.cache.TimedCache
创建定时缓存。
TimeInterval - Class in com.sure.tool.util
计时器工具:记录时间点、统计间隔时长,线程不安全(单线程场景),零依赖。
TimeInterval() - Constructor for class com.sure.tool.util.TimeInterval
构造并开始计时。
timeout(int) - Method in class com.sure.tool.http.HttpRequest
同时设置连接与读取超时(毫秒)。
to(Class) - Method in class com.sure.tool.bean.BeanCopier.Copier
拷贝为新目标对象。
to(Object) - Method in class com.sure.tool.bean.BeanCopier.Copier
拷贝到已有目标对象。
toArray() - Method in class com.sure.tool.fluent.FluentList
终端:返回独立副本数组。
toArray(Class) - Method in class com.sure.tool.json.JSONArray
转为对象数组(元素为 JSONObject 时按 beanClass 转换)。
toArray(Iterable, Class) - Static method in class com.sure.tool.collection.CollUtil
集合转数组。
toArray(Collection, Class) - Static method in class com.sure.tool.util.ArrayUtil
集合转数组。
toBase64(BufferedImage, String) - Static method in class com.sure.tool.image.ImageUtil
将图片编码为 Base64 字符串。
toBean(JSONObject, Class) - Static method in class com.sure.tool.json.JSONUtil
JSON 对象转 Bean。
toBean(Class) - Method in class com.sure.tool.config.Props
转 Bean:属性名 → Bean 属性(带类型转换)。
toBean(Object, Class) - Static method in class com.sure.tool.bean.BeanUtil
对象转 Bean:Map 走 BeanUtil.mapToBean(Map, Class),普通 Bean 走 BeanUtil.copyProperties(Object, T, String...),其他类型返回原对象。
toBean(Object, Class, boolean) - Static method in class com.sure.tool.bean.BeanUtil
对象转 Bean,可指定是否忽略源 null 值。
toBean(String, Class) - Static method in class com.sure.tool.json.JSONUtil
JSON 字符串转 Bean。
toBean(Map, Class) - Static method in class com.sure.tool.bean.BeanCopier
Map 转 Bean(带类型转换,支持枚举 String 转换)。
toBigDecimal(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 BigDecimal。
toBigInteger(Object) - Static method in class com.sure.tool.util.ConvertUtil
转换为 BigInteger。
toBinaryStr(int) - Static method in class com.sure.tool.util.NumberUtil
int 转二进制字符串(含符号位)。
toBoolean(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 boolean。
toBoolean(Object, boolean) - Static method in class com.sure.tool.util.ConvertUtil
转 boolean。
toBoolean(String) - Static method in class com.sure.tool.util.BooleanUtil
字符串转布尔值,支持:true/false、yes/no、y/n、on/off、1/0、是/否、真/假、对/错(忽略大小写)。
toBoolean(String, boolean) - Static method in class com.sure.tool.util.BooleanUtil
字符串转布尔值,无法识别时返回默认值。
toBooleanArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
转换为 boolean 数组(集合/数组/逗号分隔字符串)。
toBooleanObj(String) - Static method in class com.sure.tool.util.BooleanUtil
字符串转 Boolean,无法识别时返回 null。
toBufferedInputStream(InputStream) - Static method in class com.sure.tool.io.IoUtil
将输入流包装为缓冲输入流(null 安全)。
toBufferedReader(Reader) - Static method in class com.sure.tool.io.IoUtil
将字符流包装为缓冲字符流(null 安全)。
toByte(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 byte。
toByte(Object, byte) - Static method in class com.sure.tool.util.ConvertUtil
转 byte。
toByteArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 byte 数组。
toBytes(String) - Static method in class com.sure.tool.util.BytesUtil
字符串转字节数组(UTF-8)。
toCalendar(Date) - Static method in class com.sure.tool.date.DateUtil
Date 转 Calendar。
toCamelCase(CharSequence) - Static method in class com.sure.tool.util.StrUtil
下划线命名转驼峰命名,如 user_name → userName。
toCharArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
转字符数组。
toChinese(double) - Static method in class com.sure.tool.util.MoneyUtil
金额转中文大写(double 重载,内部转 BigDecimal 避免浮点误差)。
toChinese(String) - Static method in class com.sure.tool.util.MoneyUtil
金额转中文大写(字符串重载)。
toChinese(BigDecimal) - Static method in class com.sure.tool.util.MoneyUtil
金额转中文大写。
toCsv(List) - Static method in class com.sure.tool.collection.CsvUtil
序列化为 CSV 字符串。
toDataUri(BufferedImage, String) - Static method in class com.sure.tool.image.ImageUtil
将图片编码为 Data URI(可直接用于 <img src>)。
toDate(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 Date(支持 yyyy-MM-dd、yyyy-MM-dd HH:mm:ss、时间戳)。
toDate(LocalDate) - Static method in class com.sure.tool.date.DateUtil
LocalDate 转 Date(系统时区当日 00:00)。
toDate(LocalDateTime) - Static method in class com.sure.tool.date.DateUtil
LocalDateTime 转 Date(系统默认时区)。
toDate(Calendar) - Static method in class com.sure.tool.date.DateUtil
Calendar 转 Date。
toDouble(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 double。
toDouble(Object, double) - Static method in class com.sure.tool.util.ConvertUtil
转 double。
toDoubleArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
转换为 double 数组(集合/数组/逗号分隔字符串)。
toEnum(String, Class) - Static method in class com.sure.tool.util.ConvertUtil
字符串转枚举。
toFixed(double, int) - Static method in class com.sure.tool.util.NumberUtil
保留指定小数位(四舍五入)。
toFixed(BigDecimal, int) - Static method in class com.sure.tool.util.NumberUtil
保留指定小数位(四舍五入)。
toFloat(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 float。
toFloat(Object, float) - Static method in class com.sure.tool.util.ConvertUtil
转 float。
toggle(int, int) - Static method in class com.sure.tool.util.BitUtil
翻转 int 指定位。
toHex(byte[]) - Static method in class com.sure.tool.util.BytesUtil
转小写十六进制字符串。
toHexStr(int) - Static method in class com.sure.tool.util.NumberUtil
int 转十六进制字符串。
toHttpUrl(String) - Static method in class com.sure.tool.util.UrlUtil
无协议时补全 http://(有协议或不可识别时原样返回)。
toImmutable(Collection) - Static method in class com.sure.tool.collection.CollUtil
返回集合的不可变副本。
toInt(boolean) - Static method in class com.sure.tool.util.BooleanUtil
布尔值转 int(true → 1,false → 0)。
toInt(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 int。
toInt(Object, int) - Static method in class com.sure.tool.util.ConvertUtil
转 int。
toIntArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 int 数组。
toJsonPrettyStr(Object) - Static method in class com.sure.tool.json.JSONUtil
格式化为带缩进的 JSON 字符串。
toJsonStr(Object) - Static method in class com.sure.tool.json.JSONUtil
序列化任意对象为 JSON 字符串(支持 Bean、Map、集合、数组、日期等)。
toJsonString() - Method in class com.sure.tool.json.JSONArray
序列化为 JSON 字符串。
toJsonString() - Method in class com.sure.tool.json.JSONObject
序列化为 JSON 字符串。
toList() - Method in class com.sure.tool.collection.BoundedPriorityQueue
转为列表(无序)。
toList() - Method in class com.sure.tool.fluent.FluentList
终端:返回不可变列表。
toList(Class) - Method in class com.sure.tool.json.JSONArray
转为对象列表(元素为 JSONObject 时按 beanClass 转换)。
toList(Iterable) - Static method in class com.sure.tool.collection.CollUtil
集合转 List(安全拷贝)。
toList(Iterable) - Static method in class com.sure.tool.collection.IterUtil
将可迭代对象转为 List。
toList(Object) - Static method in class com.sure.tool.util.ArrayUtil
数组转 List(支持基本类型数组,自动装箱)。
toList(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 List。
toList(String, Class) - Static method in class com.sure.tool.json.JSONUtil
JSON 数组字符串转类型安全元素列表。
toList(Enumeration) - Static method in class com.sure.tool.collection.CollUtil
枚举转 List。
toList(Iterator) - Static method in class com.sure.tool.collection.CollUtil
迭代器转 List。
toList(Iterator) - Static method in class com.sure.tool.collection.IterUtil
将迭代器转为 List(消耗迭代器)。
toList(T...) - Static method in class com.sure.tool.collection.ListUtil
创建列表。
toLocalDate(Object) - Static method in class com.sure.tool.util.ConvertUtil
转换为 LocalDate(支持 yyyy-MM-dd / ISO_INSTANT 等标准格式)。
toLocalDate(Date) - Static method in class com.sure.tool.date.DateUtil
转换为 LocalDate(系统默认时区)。
toLocalDateTime(Object) - Static method in class com.sure.tool.util.ConvertUtil
转换为 LocalDateTime(支持 yyyy-MM-dd HH:mm:ss 等标准格式)。
toLocalDateTime(Date) - Static method in class com.sure.tool.date.DateUtil
转换为 LocalDateTime(系统默认时区)。
toLong(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 long。
toLong(Object, long) - Static method in class com.sure.tool.util.ConvertUtil
转 long。
toLong(String, int) - Static method in class com.sure.tool.util.RadixUtil
指定进制转十进制。
toLongArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 long 数组。
toLower(char) - Static method in class com.sure.tool.util.CharUtil
转为小写(仅字母)。
toMap() - Method in class com.sure.tool.config.Props
转为 Map 快照(键值均为字符串)。
toMap() - Method in class com.sure.tool.fluent.FluentMap
终端:返回不可变 Map(保插入顺序)。
toMap(Iterable, Function, Function) - Static method in class com.sure.tool.collection.MapUtil
可迭代对象转 Map(Guava uniqueIndex 语义):重复键抛 IllegalArgumentException。
toMap(Iterable, Function, Function, BinaryOperator) - Static method in class com.sure.tool.collection.MapUtil
可迭代对象转 Map(带冲突合并策略):重复键按 merge 合并。
toMap(Object) - Static method in class com.sure.tool.bean.BeanCopier
Bean 转 Map(含 null 值)。
toMap(Object...) - Static method in class com.sure.tool.util.ConvertUtil
键值数组转为 Map(偶数个元素两两成键值对)。
toMap(Collection, String) - Static method in class com.sure.tool.util.ConvertUtil
按 Bean 属性字段将集合转为 Map。
toMap(Collection, Function, Function) - Static method in class com.sure.tool.collection.CollStreamUtil
转为唯一键 Map(Guava uniqueIndex 语义):重复键抛 IllegalArgumentException。
toMap(Collection, Function, Function) - Static method in class com.sure.tool.collection.CollUtil
列表转映射。
toMap(Collection, Function, Function, BinaryOperator) - Static method in class com.sure.tool.collection.CollStreamUtil
转为 Map,冲突时用合并函数处理。
tomorrow() - Static method in class com.sure.tool.date.DateUtil
明天。
toOptional() - Method in class com.sure.tool.lang.Option
转 JDK Optional。
toOptional() - Method in class com.sure.tool.lang.Result
转 JDK Optional(失败为空)。
toOutput(InputStream, OutputStream) - Static method in class com.sure.tool.io.IoUtil
输入流转输出流(输出流关闭)。
topologicalSort(DiGraph) - Static method in class com.sure.tool.graph.GraphUtil
Kahn 拓扑排序。
toProperties(Map) - Static method in class com.sure.tool.collection.MapUtil
Map 转 Properties(值经 String.valueOf 转换)。
toSet(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 Set(去重,保序)。
toShort(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 short。
toShort(Object, short) - Static method in class com.sure.tool.util.ConvertUtil
转 short。
toSqlDate(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 Date。
toStr(double) - Static method in class com.sure.tool.util.NumberUtil
数值转普通字符串(避免科学计数法,如 1.0E-4 → 0.0001)。
toStr(Object) - Static method in class com.sure.tool.util.ConvertUtil
转字符串。
toStr(Object, String) - Static method in class com.sure.tool.util.ConvertUtil
转字符串。
toStrArray(Object) - Static method in class com.sure.tool.util.ConvertUtil
数组或集合转 String 数组。
toString() - Method in class com.sure.tool.bean.PropDesc
 
toString() - Method in record class com.sure.tool.collection.Difference
Returns a string representation of this record class.
toString() - Method in class com.sure.tool.collection.MultiMap
 
toString() - Method in class com.sure.tool.collection.Multiset.Entry
 
toString() - Method in class com.sure.tool.collection.Multiset
 
toString() - Method in record class com.sure.tool.collection.Partition
Returns a string representation of this record class.
toString() - Method in class com.sure.tool.collection.RangeSet.Range
 
toString() - Method in class com.sure.tool.collection.RangeSet
 
toString() - Method in class com.sure.tool.collection.StrJoiner
拼接结果(无内容返回空串)。
toString() - Method in class com.sure.tool.collection.TreeNode
 
toString() - Method in class com.sure.tool.cron.CronPattern
 
toString() - Method in class com.sure.tool.dfa.FoundWord
 
toString() - Method in class com.sure.tool.fluent.FluentList
 
toString() - Method in class com.sure.tool.fluent.FluentMap
 
toString() - Method in class com.sure.tool.fluent.FluentString
 
toString() - Method in record class com.sure.tool.graph.DiGraph.Edge
Returns a string representation of this record class.
toString() - Method in class com.sure.tool.json.JSONArray
 
toString() - Method in class com.sure.tool.json.JSONObject
 
toString() - Method in record class com.sure.tool.lang.Pair
Returns a string representation of this record class.
toString() - Method in class com.sure.tool.lang.Result
 
toString() - Method in class com.sure.tool.lang.StopWatch
 
toString() - Method in record class com.sure.tool.lang.Triple
Returns a string representation of this record class.
toString() - Method in record class com.sure.tool.lang.WeightRandom.WeightObj
Returns a string representation of this record class.
toString() - Method in class com.sure.tool.system.CpuInfo
 
toString() - Method in class com.sure.tool.system.DiskInfo
 
toString() - Method in class com.sure.tool.system.ProcessInfo
 
toString() - Method in class com.sure.tool.system.RuntimeInfo
 
toString() - Method in class com.sure.tool.util.Props
 
toString() - Method in class com.sure.tool.util.TimeInterval
 
toString(byte[]) - Static method in class com.sure.tool.util.BytesUtil
字节数组转字符串(UTF-8)。
toString(char) - Static method in class com.sure.tool.util.CharUtil
字符转字符串。
toString(long, int) - Static method in class com.sure.tool.util.RadixUtil
十进制转指定进制(2~36,大写字母)。
toString(Reader) - Static method in class com.sure.tool.io.IoUtil
字符流全量读取为字符串(使用平台默认字符集解码)。
toString(Object) - Static method in class com.sure.tool.util.ArrayUtil
对象数组转字符串。
toString(Object) - Static method in class com.sure.tool.util.ObjectUtil
对象转字符串,null 返回空串。
toString(Object) - Static method in class com.sure.tool.util.StrUtil
对象转字符串,数组会展开输出,null 转为 "null"。
toString(Object, String) - Static method in class com.sure.tool.util.ObjectUtil
对象转字符串,null 返回默认值。
toStringCn(boolean) - Static method in class com.sure.tool.util.BooleanUtil
布尔值转中文"是/否"。
toStringTrueFalse(boolean) - Static method in class com.sure.tool.util.BooleanUtil
布尔值转字符串 "true"/"false"。
toStringYesNo(boolean) - Static method in class com.sure.tool.util.BooleanUtil
布尔值转字符串 "yes"/"no"。
totalLength(CharSequence...) - Static method in class com.sure.tool.util.StrUtil
计算多个字符串的总长度(null 视为空串)。
toTimestamp(Object) - Static method in class com.sure.tool.util.ConvertUtil
转 Timestamp。
touch(File) - Static method in class com.sure.tool.io.FileUtil
创建文件(自动创建父目录,已存在则跳过)。
touch(String) - Static method in class com.sure.tool.io.FileUtil
创建文件(含父目录),路径便捷重载。
toUnderlineCase(CharSequence) - Static method in class com.sure.tool.util.StrUtil
驼峰命名转下划线命名,如 userName → user_name。
toUnicode(String) - Static method in class com.sure.tool.util.EmojiUtil
emoji 转 \\uXXXX 转义形式(普通字符保持不变)。
toUnicode(String) - Static method in class com.sure.tool.util.StrUtil
转 Unicode 字符串(中文转 \uXXXX,ASCII 保留)。
toUpper(char) - Static method in class com.sure.tool.util.CharUtil
转为大写(仅字母)。
toUri(String) - Static method in class com.sure.tool.util.UrlUtil
解析 URL 为 URI(非法返回 null)。
toUrl(String) - Static method in class com.sure.tool.util.UrlUtil
转为 URL 对象;非法 URL 抛 RuntimeException(包装 MalformedURLException)。
toXml(Object, String) - Static method in class com.sure.tool.xml.XmlUtil
Bean 转 XML 字符串。
toXml(Map, String) - Static method in class com.sure.tool.xml.XmlUtil
Map 转 XML 字符串。
trans(Iterator, Function) - Static method in class com.sure.tool.collection.IterUtil
转换迭代器元素类型(惰性求值)。
transformEntries(Map, BiFunction) - Static method in class com.sure.tool.collection.MapUtil
键值联合变换(对齐 Guava Maps.transformEntries)。
transformValues(Map, Function) - Static method in class com.sure.tool.collection.MapUtil
值变换(对齐 Guava Maps.transformValues)。
TreeNode<T> - Class in com.sure.tool.collection
通用树节点,参考 Hutool 的 TreeNode 设计。
TreeNode(T, T, String) - Constructor for class com.sure.tool.collection.TreeNode
创建树节点。
TreeUtil - Class in com.sure.tool.collection
树结构工具类:从扁平节点列表构建树、遍历、深度计算,参考 Hutool 的 TreeUtil 设计。
trim() - Method in class com.sure.tool.fluent.FluentString
去除首尾空白。
trim(CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除字符串首尾空白(使用 String.trim() 语义)。
trimEnd(String) - Static method in class com.sure.tool.util.StrUtil
去除字符串尾部空白字符。
trimStart(String) - Static method in class com.sure.tool.util.StrUtil
去除字符串首部空白字符。
trimToEmpty(CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除首尾空白,结果为空白时返回空串。
trimToNull(CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除首尾空白,结果为空白时返回 null。
Triple<L,M,R> - Record Class in com.sure.tool.lang
有序三元组,不可变,JDK record 实现。
Triple(L, M, R) - Constructor for record class com.sure.tool.lang.Triple
Creates an instance of a Triple record class.
truncate(CharSequence, int) - Static method in class com.sure.tool.util.StrUtil
精确截断字符串:长度超过 maxWidth 时截取前 maxWidth 个字符(不附加省略号)。
truncate(Date, int) - Static method in class com.sure.tool.date.DateUtil
截断到指定 Calendar 字段(该字段保留,更小字段清零)。
tryAcquire() - Method in class com.sure.tool.thread.RateLimiter
尝试获取 1 个许可,不等待。
tryAcquire(int) - Method in class com.sure.tool.thread.RateLimiter
尝试获取指定数量许可,不等待。
trySend(T, Duration) - Method in class com.sure.tool.thread.Actor
限时投递一条消息:在指定时间内成功入队返回 true,超时返回 false。
TypeReference<T> - Class in com.sure.tool.lang
泛型类型引用,用于在运行时捕获并保存泛型实参类型。
TypeReference() - Constructor for class com.sure.tool.lang.TypeReference
构造器:解析子类的泛型实参类型。
TypeUtil - Class in com.sure.tool.util
泛型类型解析工具,参考 Hutool TypeUtil 与 Guava TypeToken 设计。

U

ulid() - Static method in class com.sure.tool.id.UlidUtil
生成 ULID(非单调)。
ulid(Instant) - Static method in class com.sure.tool.id.UlidUtil
基于指定时间戳生成 ULID。
UlidUtil - Class in com.sure.tool.id
ULID 生成器:26 字符 Crockford Base32 编码,48 位毫秒时间戳 + 80 位随机,按字典序近似时间有序。
unescape(String) - Static method in class com.sure.tool.util.EscapeUtil
反转义 HTML 实体为原始字符。
unescape(String) - Static method in class com.sure.tool.util.HtmlUtil
HTML 反转义(& < > " '   等)。
unescape(String) - Static method in class com.sure.tool.util.ReUtil
反转义:移除正则特殊字符前的反斜杠。
unescape(String) - Static method in class com.sure.tool.xml.XmlUtil
XML 反转义。
unescapeXml(String) - Static method in class com.sure.tool.util.EscapeUtil
XML 反转义。
ungzip(byte[]) - Static method in class com.sure.tool.io.GzipUtil
解压 GZIP 字节数组。
ungzipFile(Path, Path) - Static method in class com.sure.tool.io.GzipUtil
解压 GZIP 文件为普通文件。
ungzipString(byte[]) - Static method in class com.sure.tool.io.GzipUtil
解压 GZIP 字节为字符串(UTF-8)。
ungzipString(byte[], Charset) - Static method in class com.sure.tool.io.GzipUtil
解压 GZIP 字节为字符串(指定字符集)。
union(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
并集(去重)。
union(List, List) - Static method in class com.sure.tool.collection.ListUtil
并集(保序去重):先左后右,右侧重复元素不追加。
union(Set, Set) - Static method in class com.sure.tool.collection.SetUtil
并集(保序去重)。
uniqueIndex(Iterable, Function) - Static method in class com.sure.tool.collection.MapUtil
唯一索引(对齐 Guava Maps.uniqueIndex)。
uniqueSize() - Method in class com.sure.tool.collection.Multiset
去重元素数。
unmatched() - Method in record class com.sure.tool.collection.Partition
不匹配元素列表的不可变视图。
unwrap(Throwable) - Static method in class com.sure.tool.util.ExceptionUtil
解包装异常:逐层剥离包装异常,返回最内层异常。
unWrap(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
去除字符串包裹(仅当首尾实际匹配时去除,否则原样返回)。
unzip(File, File) - Static method in class com.sure.tool.io.ZipUtil
解压 zip 文件到目标目录(UTF-8 文件名)。
unzip(File, File, Charset) - Static method in class com.sure.tool.io.ZipUtil
解压 zip 文件到目标目录。
unzip(String, String) - Static method in class com.sure.tool.io.ZipUtil
解压 zip 文件到目标目录(路径字符串版本)。
upload(String, Map, String, File) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传。
upload(String, Map, String, File[]) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传(同一字段多个文件)。
upload(String, Map, String, File[], int) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传(同一字段多个文件)。
upload(String, Map, String, File, int) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传。
upload(String, Map, String, File, Proxy) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传(走代理)。
upload(String, Map, Map) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传(多字段,每字段一个文件,按 Map 迭代顺序)。
upload(String, Map, Map, int) - Static method in class com.sure.tool.http.HttpUtil
multipart/form-data 文件上传(多字段,每字段一个文件)。
upperBound(List, T) - Static method in class com.sure.tool.util.SearchUtil
第一个大于 key 的下标(插入点上界)。
upperBound(List, T, Comparator) - Static method in class com.sure.tool.util.SearchUtil
按比较器求第一个大于 key 的下标。
upperCase() - Method in class com.sure.tool.fluent.FluentString
转大写(默认 Locale.ROOT,避免土耳其 i 问题)。
upperFirst(CharSequence) - Static method in class com.sure.tool.util.StrUtil
首字母大写。
url(String) - Method in class com.sure.tool.http.HttpRequest
修改 URL。
URL - Static variable in class com.sure.tool.lang.PatternPool
URL
UrlUtil - Class in com.sure.tool.util
URL 工具类:编码/解码、解析、参数提取、拼接,零依赖。
URLUtil - Class in com.sure.tool.http
URL 工具类:域名/路径/参数提取与拼接,参考 Hutool 的 URLUtil 设计。
US_ASCII - Static variable in class com.sure.tool.util.CharsetUtil
US-ASCII
userAgent(String) - Method in class com.sure.tool.http.HttpRequest
设置 User-Agent(默认 suretool/0.1)。
UTF_16 - Static variable in class com.sure.tool.util.CharsetUtil
UTF-16
UTF_16BE - Static variable in class com.sure.tool.util.CharsetUtil
UTF-16BE
UTF_16LE - Static variable in class com.sure.tool.util.CharsetUtil
UTF-16LE
UTF_8 - Static variable in class com.sure.tool.util.CharsetUtil
UTF-8
UUID - Static variable in class com.sure.tool.lang.PatternPool
UUID(含连字符)

V

ValidatorUtil - Class in com.sure.tool.util
数据校验工具类,参考 Hutool 的 ValidatorUtil 设计。
valueDiffers() - Method in record class com.sure.tool.collection.Difference
左右共有但值不同的键值对(值为左 Map 的值,不可变视图)。
valueOf(String) - Static method in enum class com.sure.tool.bean.CopyOption
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.sure.tool.date.DateUnit
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.sure.tool.io.EventType
Returns the enum constant of this class with the specified name.
valueOfIgnoreCase(Class, String) - Static method in class com.sure.tool.util.EnumUtil
按名称获取枚举(忽略大小写),未匹配抛出 IllegalArgumentException。
values() - Static method in enum class com.sure.tool.bean.CopyOption
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Method in class com.sure.tool.collection.MultiMap
全部值的扁平集合。
values() - Static method in enum class com.sure.tool.date.DateUnit
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Method in class com.sure.tool.fluent.FluentMap
终端:返回不可变值列表(保插入顺序)。
values() - Static method in enum class com.sure.tool.io.EventType
Returns an array containing the constants of this enum class, in the order they are declared.
values(Map) - Static method in class com.sure.tool.collection.MapUtil
获取 Map 的值集合(null 视为空集合)。
verify() - Method in class com.sure.tool.jwt.JWT
校验签名与时间有效性(exp/nbf)。
verify(String) - Method in class com.sure.tool.captcha.AbstractCaptcha
 
verify(String) - Method in interface com.sure.tool.captcha.Captcha
校验用户输入(忽略大小写)。
verify(String, String) - Static method in class com.sure.tool.jwt.JwtUtil
校验 HS256 token(签名 + 过期时间)。
verify(String, PublicKey, String) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 验签(SHA256withRSA,Base64 输入)。
verify(BigInteger, BigInteger, byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 验签。
verify(BigInteger, BigInteger, byte[], byte[], byte[]) - Static method in class com.sure.tool.crypto.Sm2Util
SM2 验签。
verifyBytes(String, PublicKey, byte[]) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 验签,字节输入。
verifyHex(String, PublicKey, String) - Static method in class com.sure.tool.crypto.RsaUtil
RSA 验签(SHA256withRSA,Hex 输入)。
verifySignature() - Method in class com.sure.tool.jwt.JWT
仅校验签名(不检查过期与生效时间)。
verifyWithRsa(String, PublicKey) - Static method in class com.sure.tool.jwt.JwtUtil
校验 RS256 token。
version(HttpClient.Version) - Method in class com.sure.tool.http.HttpClientBuilder
强制 HTTP/1.1(默认,兼容性好);传 HttpClient.Version.HTTP_2 启用 HTTP/2。
VERSION_COMPARATOR - Static variable in class com.sure.tool.util.VersionUtil
共享版本比较器
VersionComparator - Class in com.sure.tool.util
版本号比较器,按「数字段优先、语义化版本」规则比较版本字符串。
VersionComparator() - Constructor for class com.sure.tool.util.VersionComparator
 
VersionUtil - Class in com.sure.tool.util
版本号比较工具,封装 VersionComparator。
vertexCount() - Method in class com.sure.tool.graph.DiGraph
顶点数量。
vertices() - Method in class com.sure.tool.graph.DiGraph
全部顶点。
virtualExecutor() - Static method in class com.sure.tool.thread.ThreadUtil
创建每任务一虚拟线程的执行器(JDK 21+,适合高并发 I/O 密集任务)。
virtualExecutor(String) - Static method in class com.sure.tool.thread.ThreadUtil
创建带命名前缀的每任务一虚拟线程执行器。
virtualThreadFactory(String) - Static method in class com.sure.tool.thread.ThreadUtil
虚拟线程工厂(Thread.ofVirtual 便捷入口)。
virtualThreads() - Method in class com.sure.tool.http.HttpClientBuilder
使用虚拟线程 executor(JDK 21+,默认关闭;开启后每个请求独占虚拟线程,适合高并发 IO 场景)。

W

walk(TreeNode, Consumer) - Static method in class com.sure.tool.collection.TreeUtil
深度优先遍历(先父后子)。
walkFiles(Path) - Static method in class com.sure.tool.io.FileUtil
深度遍历目录返回全部文件(不含目录本身),使用 Files.walkFileTree(Path, Set, int, FileVisitor)。
watch(Path, DirListener) - Static method in class com.sure.tool.io.WatchDir
递归监听目录。
watch(Path, DirListener, WatchOptions...) - Static method in class com.sure.tool.io.WatchDir
按选项监听目录。
WatchDir - Class in com.sure.tool.io
目录监听(JDK WatchService 封装):虚拟线程轮询事件,支持递归注册、路径过滤与事件类型选择。
WatchOptions - Class in com.sure.tool.io
目录监听选项(builder 风格)。
WatchOptions() - Constructor for class com.sure.tool.io.WatchOptions
 
WeakCache<K,V> - Class in com.sure.tool.cache
弱引用缓存:值以 WeakReference 持有,对象被 GC 回收后自动清理键; 支持可选 TTL(默认不过期)与容量上限(0 表示无上限),参考 Hutool 的 WeakCache 设计。
WeakCache() - Constructor for class com.sure.tool.cache.WeakCache
创建弱引用缓存:无容量上限、默认不过期。
WeakCache(int, long) - Constructor for class com.sure.tool.cache.WeakCache
创建弱引用缓存。
WeakCache(long) - Constructor for class com.sure.tool.cache.WeakCache
创建弱引用缓存:无容量上限、指定默认 TTL。
WEEK - Enum constant in enum class com.sure.tool.date.DateUnit
周
weight() - Method in record class com.sure.tool.lang.WeightRandom.WeightObj
Returns the value of the weight record component.
WeightObj(T, double) - Constructor for record class com.sure.tool.lang.WeightRandom.WeightObj
Creates an instance of a WeightObj record class.
WeightRandom<T> - Class in com.sure.tool.lang
权重随机:按权重概率随机取一个对象,零依赖。
WeightRandom() - Constructor for class com.sure.tool.lang.WeightRandom
构造(使用默认随机源)。
WeightRandom(Random) - Constructor for class com.sure.tool.lang.WeightRandom
构造。
WeightRandom.WeightObj<T> - Record Class in com.sure.tool.lang
权重项。
withFirst(Collection, T) - Static method in class com.sure.tool.collection.SeqUtil
返回「首元素 + 原集合」的不可变新列表,原集合不变。
withLast(Collection, T) - Static method in class com.sure.tool.collection.SeqUtil
返回「原集合 + 尾元素」的不可变新列表,原集合不变。
withTimeout(Duration, Supplier) - Static method in class com.sure.tool.thread.AsyncUtil
限时供应:超时抛 TimeoutException。
WordTree - Class in com.sure.tool.dfa
敏感词树:基于前缀树(Trie)的 DFA 敏感词过滤,参考 Hutool 的 WordTree 设计。
WordTree() - Constructor for class com.sure.tool.dfa.WordTree
 
WordUtil - Class in com.sure.tool.poi
Word(docx)读写工具类,参考 Hutool 的 WordUtil 设计。
work() - Method in interface com.sure.tool.thread.SyncFinisher.Worker
执行任务。
wrap(boolean[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(byte[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(char[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(double[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(float[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(int[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(long[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(short[]) - Static method in class com.sure.tool.util.ArrayUtil
基本类型数组转包装类型数组。
wrap(CharSequence, CharSequence, CharSequence) - Static method in class com.sure.tool.util.StrUtil
使用指定前后缀包裹字符串。
wrap(Object) - Static method in class com.sure.tool.util.ConvertUtil
对象数组(含基本类型数组)装箱为包装类型数组。
wrap(Throwable) - Static method in class com.sure.tool.util.ExceptionUtil
将受检异常包装为运行时异常(已是运行时异常则直接返回)。
write(byte[], OutputStream) - Static method in class com.sure.tool.io.IoUtil
写入字节数组。
write(BufferedImage, Path, String) - Static method in class com.sure.tool.image.ImageUtil
写入图像到文件(按扩展名推断格式,如 png/jpg)。
write(File) - Method in class com.sure.tool.captcha.AbstractCaptcha
将验证码图片写入文件。
write(File, String) - Static method in class com.sure.tool.poi.WordUtil
写入简单 docx(单段落)。
write(File, String, boolean) - Static method in class com.sure.tool.poi.WordUtil
写入文本;append 为 true 且文件存在时追加段落。
write(File, String, List) - Static method in class com.sure.tool.poi.ExcelUtil
写入行数据到指定工作表。
write(File, List) - Static method in class com.sure.tool.poi.WordUtil
写入 docx(多段落)。
write(File, List) - Static method in class com.sure.tool.poi.ExcelUtil
写入行数据到默认工作表。
write(File, List) - Static method in class com.sure.tool.collection.CsvUtil
写入 CSV 文件(UTF-8)。
write(File, List, Charset) - Static method in class com.sure.tool.collection.CsvUtil
写入 CSV 文件(指定字符集)。
write(OutputStream) - Method in class com.sure.tool.captcha.AbstractCaptcha
 
write(OutputStream) - Method in interface com.sure.tool.captcha.Captcha
输出验证码图片(PNG 格式)。
write(Serializable, Path) - Static method in class com.sure.tool.lang.SerializeUtil
序列化到文件。
write(Writer, List) - Static method in class com.sure.tool.collection.CsvUtil
写出 CSV 到 Writer。
write(String, OutputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
按指定字符集写入字符串。
write(String, Writer) - Static method in class com.sure.tool.io.IoUtil
按指定字符集写入字符串(通过 Writer)。
write(ReentrantReadWriteLock, Supplier) - Static method in class com.sure.tool.thread.LockUtil
在写锁保护下执行并返回值。
writeBeans(File, String, List) - Static method in class com.sure.tool.poi.ExcelUtil
Bean 列表写入 Excel(字段名作为表头)。
writeBeans(File, String, List, String...) - Static method in class com.sure.tool.poi.ExcelUtil
写入 Bean 列表,可指定表头(表头同时作为字段选择器)。
writeBeans(File, List) - Static method in class com.sure.tool.poi.ExcelUtil
Bean 列表写入 Excel(字段名作为表头)。
writeBytes(byte[], File) - Static method in class com.sure.tool.io.FileUtil
写入字节数组。
writeLines(Collection, File, Charset) - Static method in class com.sure.tool.io.FileUtil
按指定字符集写入行列表(每行后跟换行符)。
writeLines(Collection, OutputStream, Charset) - Static method in class com.sure.tool.io.IoUtil
逐行写出集合内容(每行末尾追加行分隔符)。
writeString(String, File, Charset) - Static method in class com.sure.tool.io.FileUtil
按指定字符集写入字符串(覆盖)。
writeUtf8(String, OutputStream) - Static method in class com.sure.tool.io.IoUtil
按 UTF-8 写入字符串。
writeUtf8Lines(Collection, File) - Static method in class com.sure.tool.io.FileUtil
按 UTF-8 写入行列表(每行后跟换行符)。
writeUtf8String(String, File) - Static method in class com.sure.tool.io.FileUtil
按 UTF-8 写入字符串(覆盖)。

X

X25519 - Static variable in class com.sure.tool.crypto.EcdhUtil
X25519 曲线(推荐,高效且无侧信道隐患)
XmlException - Exception Class in com.sure.tool.xml
XML 处理异常。
XmlException(String) - Constructor for exception class com.sure.tool.xml.XmlException
创建异常。
XmlException(String, Throwable) - Constructor for exception class com.sure.tool.xml.XmlException
创建异常。
XmlUtil - Class in com.sure.tool.xml
XML 工具类(最小实现):Map/Bean 与 XML 互转、转义,基于 JDK DOM,参考 Hutool 的 XmlUtil 设计。
xor(boolean...) - Static method in class com.sure.tool.util.BooleanUtil
布尔异或(奇数个 true 返回 true)。
xor(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
对称差集(属于 c1 或 c2 但不同时属于两者)。

Y

year(Date) - Static method in class com.sure.tool.date.DateUtil
获取年份。
yesterday() - Static method in class com.sure.tool.date.DateUtil
昨天。

Z

zip(File, File) - Static method in class com.sure.tool.io.ZipUtil
压缩文件或目录到 zip 文件(UTF-8 文件名)。
zip(File, File, Charset) - Static method in class com.sure.tool.io.ZipUtil
压缩文件或目录到 zip 文件。
zip(String, String) - Static method in class com.sure.tool.io.ZipUtil
压缩文件或目录到 zip 文件(路径字符串版本)。
zip(Collection, Collection) - Static method in class com.sure.tool.collection.CollUtil
将两个集合按顺序配对为 Map。
zip(List, File) - Static method in class com.sure.tool.io.ZipUtil
将多个文件/目录打包为 zip。
zip(List, File, Charset) - Static method in class com.sure.tool.io.ZipUtil
将多个文件/目录打包为 zip。
zip(List, List) - Static method in class com.sure.tool.collection.ListUtil
两列表按最短长度配对(zip),返回不可变二元组列表。
ZipUtil - Class in com.sure.tool.io
ZIP 压缩解压工具类,参考 Hutool 的 ZipUtil 设计。
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form