|
97a4ae2279
|
perf: RegexTools 的缓存改用 guava cache
|
2025-05-01 02:15:23 +08:00 |
|
|
af66cd2380
|
feat: RegexTools 新增重载方法,当将字符串视为正则表达式入参时,允许传对应的 flags
|
2025-05-01 02:08:23 +08:00 |
|
|
3b519105bf
|
refactor!: 删除 RegexTools 中以 String[] 作为多个正则表达式入参的方法
字符串无法代表一个正则表达式,还需考虑正则表达式的 flag(s),所以当使用多个正则表达式时,更推荐使用 `Pattern[]`。
|
2025-04-30 22:57:47 +08:00 |
|
|
a2781012be
|
feat: 在 AssertTools 中新增 checkArgumentNotNull 系列方法
|
2025-04-30 22:44:29 +08:00 |
|
|
9e410029b1
|
refactor: 修改 AssertTools 中的参数名称
|
2025-04-30 22:17:18 +08:00 |
|
|
ee7213a687
|
refactor(util): ArrayTools 中的 isNullOrEmpty 重命名为 isEmpty
保持方法命名的一致性
BREAKING CHANGE: `ArrayTools#isNullOrEmpty` 重命名为 `ArrayTools#isEmpty`
|
2025-04-29 11:26:12 +08:00 |
|
|
45dc105dd0
|
fix: 修复 JDK17+ 环境下测试用例 PagingAndSortingQueryParamsTests#testGson 不通过的问题
该用例在 JDK17+ 环境下使用 gson 进行序列化时,报 `com.google.gson.JsonIOException: Failed making field 'java.time.LocalDateTime#date' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type`。
See: https://github.com/google/gson/blob/main/Troubleshooting.md#reflection-inaccessible
|
2025-04-16 14:52:16 +08:00 |
|
|
14b193418d
|
docs: fix param name
Reviewed-on: http://zhouxy.xyz:3000/plusone/plusone-commons/pulls/43
Co-authored-by: ZhouXY108 <luquanlion@outlook.com>
Co-committed-by: ZhouXY108 <luquanlion@outlook.com>
|
2025-04-11 14:42:01 +08:00 |
|
|
56a4a606a6
|
refactor: 优化 OptionalTools 代码
|
2025-04-09 22:11:21 +08:00 |
|
|
7abd3a05ab
|
refactor: UnifiedResponse 的字段为 final
|
2025-04-09 21:45:04 +08:00 |
|
|
a05fc6cfe1
|
style: 格式化代码
|
2025-04-09 21:44:59 +08:00 |
|
|
4b9c0de860
|
chore: update copyright info (#42)
Reviewed-on: http://zhouxy.xyz:3000/plusone/plusone-commons/pulls/42
Co-authored-by: ZhouXY108 <luquanlion@outlook.com>
Co-committed-by: ZhouXY108 <luquanlion@outlook.com>
|
2025-04-09 18:16:55 +08:00 |
|
|
0f802db105
|
docs: 完善 javadoc
|
2025-04-09 18:16:54 +08:00 |
|
|
7606a4263c
|
fix: 补充 ThrowingPredicate 缺失的 FunctionalInterface 注解
|
2025-04-09 18:16:54 +08:00 |
|
|
f05e804795
|
chore: ArrayTools 中删除已完成的 TODO 注释
|
2025-04-09 18:16:54 +08:00 |
|
|
36d05045cf
|
refactor!: 限制 PagingAndSortingQueryParams 中用于排序的字段名称的长度,允许包含短横(-)
|
2025-04-09 18:16:54 +08:00 |
|
|
05c30109ec
|
chore: 抑制测试代码的一些警告
|
2025-04-09 18:16:54 +08:00 |
|
|
6f26613f30
|
refactor!: 重命名 ArrayTools 中的方法
`indexOfWithPredicate` 重命名为 `indexOf`,
`lastIndexOfWithPredicate` 重命名为 `lastIndexOf`。
|
2025-04-09 18:16:54 +08:00 |
|
|
9ad82bdb57
|
refactor!: RegexTools 中使用 ArrayTools#isAllElementsNotNull 判断数组
BREAKING CHANGE: 数组为 `null` 时,不抛出 `NullPointerException`,而是 `IllegalArgumentException`。
|
2025-04-09 18:16:54 +08:00 |
|
|
7babf0953a
|
refactor: 重构 Chinese2ndGenIDCardNumber
不使用 ValidatableStringRecord,在工厂方法中进行参数校验。
|
2025-04-09 18:16:54 +08:00 |
|
|
09c6f41610
|
chore: 弃用 ValidatableStringRecord
|
2025-04-09 18:16:54 +08:00 |
|
|
eda835996e
|
refactor: IDCardNumber#toDesensitizedString 使用 StringTools#desensitize 进行脱敏
|
2025-04-09 18:16:54 +08:00 |
|
|
2396b78c4f
|
feat: 新增字符串脱敏方法 StringTools#desensitize
|
2025-04-09 18:16:54 +08:00 |
|
|
6a498c301d
|
docs: 完善 javadoc
|
2025-04-09 18:16:54 +08:00 |
|
|
40a44a939d
|
chore: 优化 JSR305 注解的使用
|
2025-04-09 18:16:54 +08:00 |
|
|
4e6028f217
|
docs: 介绍 UnifiedResponses 的文档中 CustomUnifiedResponseFactoryTests 链接到代码托管平台对应的页面
close plusone/plusone-commons#33
|
2025-04-09 18:16:54 +08:00 |
|
|
57d85d05e9
|
docs: 修改 since 信息 (plusone/plusone-commons#40)
1.0.0 之前新增的,其 since 修改为 1.0.0,统一以 1.0.0 作为初始版本
Issue: fix plusone/plusone-commons#30
|
2025-04-09 18:16:54 +08:00 |
|
|
78e44ac317
|
docs: 改正 PredicateTools 的 javadoc (#38)
Reviewed-on: http://zhouxy.xyz:3000/plusone/plusone-commons/pulls/38
|
2025-04-09 18:16:54 +08:00 |
|
|
96a18c4f01
|
docs: 删除 IdWorker 的 author 信息
该工具来自 seata,并非本项目原创,写 javadoc 时忘记修改模板中的 author,而seata 源代码中早就删除了该类的 author 信息,故应先删除。
见:https://github.com/apache/incubator-seata/pull/6179
close plusone/plusone-commons#31
|
2025-04-09 18:16:53 +08:00 |
|
|
53d2c98461
|
docs: 改正 OptionalTools 的 javadoc
Reviewed-on: http://zhouxy.xyz:3000/plusone/plusone-commons/pulls/34
Issue: fix plusone/plusone-commons#29
|
2025-04-09 18:16:04 +08:00 |
|
|
c82d1cf569
|
docs: fix typos
|
2025-04-09 17:50:23 +08:00 |
|
|
a9024e37f1
|
chore: 修改 copyright
|
2025-04-09 17:50:08 +08:00 |
|
|
4d0968a191
|
feat: StringTools 新增工具方法
新增 StringTools#isBlank、StringTools#isEmpty、StringTools#isNotEmpty、StringTools#isURL、StringTools#isEmail
|
2025-04-09 17:48:34 +08:00 |
|
|
4df399bf54
|
feat: DateTimeTools 新增 isFuture 和 isPast。
|
2025-04-09 17:48:34 +08:00 |
|
|
4a620e5a2b
|
fix: 修改 email 的正则常量
1. fix: Email 的 Pattern 不区分大小写
2. docs: 标注正则表达式的出处
|
2025-04-09 17:48:10 +08:00 |
|
|
e989ad8f60
|
docs: 修改注释和文档
|
2025-04-09 17:47:05 +08:00 |
|
|
2f1df1b188
|
chore: 优化 JSR305 注解的使用
|
2025-04-09 17:46:44 +08:00 |
|
|
90da2b8eaa
|
Quarter#fromMonth 新增判空
|
2025-03-22 15:05:32 +08:00 |
|
|
bdd6e61160
|
补充各包的 javadoc
在每个包下都创建 package-info.java 文件,编写 javadoc,对每个包进行说明。
|
2025-02-21 21:50:18 +08:00 |
|
|
ff3f80a447
|
更改 copyright。
|
2025-02-20 23:05:27 +08:00 |
|
|
faab942e13
|
新增 UnifiedResponse 工厂 UnifiedResponses。
|
2025-02-20 20:26:21 +08:00 |
|
|
cd88892762
|
IdGenerator#toSimpleString 添加 @Nonnull 注解
|
2025-02-14 16:58:33 +08:00 |
|
|
e3ff5a2ab3
|
CollectionTools#isNotEmpty 支持 guava 的 Table、Multimap、Multiset 和 RangeSet
|
2025-02-14 16:57:45 +08:00 |
|
|
d217e8b9ac
|
优化 TreeBuilder 的单元测试代码。
|
2025-01-30 19:23:25 +08:00 |
|
|
669506e499
|
删除 YearQuarter#max 和 YearQuarter#min,使用 guava 的 Comparators#max 和 Comparators#min 即可。
|
2025-01-30 19:21:21 +08:00 |
|
|
79b8b81220
|
test: 测试工具类的私有构造器
|
2025-01-22 21:57:53 +08:00 |
|
|
6a54a8628b
|
docs: 完善 JavaDoc,修改 copyright。
|
2025-01-22 21:53:07 +08:00 |
|
|
55027d91ef
|
优化多类型异常的结构
|
2025-01-10 17:39:41 +08:00 |
|
|
ac0f73f7f0
|
UnifiedResponse 的 status 修改为 code,类型为 String;构建 error 时必须传 code。
|
2025-01-10 16:00:37 +08:00 |
|
|
4766f78411
|
新增 ThrowingFunction
|
2025-01-07 16:34:50 +08:00 |
|