suretool 是一个小而全的 Java 工具类库,参考 Hutool 设计,
仅支持 JDK 25+,包前缀 com.sure.tool。
| 分类 | 类 |
|---|---|
| Bean / 反射 | BeanDesc、BeanUtil、FieldUtil、PropDesc、ReflectUtil、ClassUtil |
| 编码 / 哈希 | Base64Util、EncodeUtil、HashUtil、HexUtil、EscapeUtil |
| 集合 | BiMap、CaseInsensitiveMap、CollUtil、CsvUtil、ListUtil、MapUtil、OrderedMap、StrJoiner、TreeNode、TreeUtil |
| 日期 / 时间 | DateUnit、DateUtil、StopWatch |
| IO / 文件 | FileUtil、IoUtil、ZipUtil |
| 断言 / 控制台 | Assert、Console、Dict |
| 正则 / ID | PatternPool、ReUtil、IdcardUtil、IdUtil |
| 并发 / 线程 | ExecutorBuilder、LockUtil、SyncFinisher、ThreadUtil |
| 类型转换 / 基础 | ArrayUtil、BooleanUtil、CharsetUtil、CharUtil、ConvertUtil、NumberUtil、ObjectUtil、StrSplitter、StrUtil、SystemUtil |
| 脱敏 / 校验 / 其他 | DesensitizedUtil、NetUtil、RandomUtil、RuntimeUtil、Snowflake、ValidatorUtil |
JSONObject、JSONArray、JSONUtil、JSONException
HttpRequest、HttpResponse、HttpUtil、URLUtil、HttpException
AesUtil(AES-GCM)、DesUtil(仅兼容存量,@Deprecated)、HmacUtil、RsaUtil(RSA-OAEP)、
SecureUtil(统一入口)、CryptoException
CronPattern、CronUtil
Cache(接口)、CacheUtil、FifoCache、LfuCache、LruCache、TimedCache
XmlUtil、XmlException
ExcelUtil、WordUtil、PoiUtil
MailUtil、MailAccount、FtpUtil、QrCodeUtil、QrConfig、ImgUtil
Captcha、AbstractCaptcha、CaptchaUtil、CircleCaptcha、LineCaptcha、ShearCaptcha
JwtUtil、JWT、JWTException
DfaUtil、WordTree、FoundWord
<dependency>
<groupId>io.github.tasure</groupId>
<artifactId>sure-all</artifactId>
<version>1.0.0</version>
</dependency>
import com.sure.tool.util.StrUtil;
String joined = StrUtil.join(",", "a", "b", "c"); // a,b,c
完整用法示例见 sure-examples 模块。