Commit Graph

828 Commits

Author SHA1 Message Date
Looly
95e8c812ef fix null 2021-12-09 00:19:57 +08:00
achao
c1e6ea8d42 Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2021-12-06 21:31:41 +08:00
VampireAchao
1b28ba13e4 处理了CollStreamUtil.toIdentityMap中,如果value为空时,发生NPE异常问题 2021-12-06 21:13:26 +08:00
VampireAchao
a2331bf5c9 处理了CollStreamUtil.toMap中,如果value为空时,发生NPE异常问题 2021-12-06 21:01:14 +08:00
Looly
acf40a5d1f fix bug 2021-12-06 00:43:57 +08:00
Looly
3fefdf5151 fix code 2021-12-05 23:34:14 +08:00
looly
1ee2d5d257 fix test 2021-12-01 16:45:30 +08:00
looly
a7fde0338b fix date chinese bug 2021-12-01 16:44:05 +08:00
looly
83108c712d fix test 2021-12-01 15:17:31 +08:00
bob.guo
8cd05924ce 数值奇偶数判断 2021-12-01 12:00:01 +08:00
looly
5ba1dde50d fix code 2021-11-30 11:59:34 +08:00
looly
109725da79 add methods 2021-11-30 11:53:13 +08:00
scruel
e46c5e1c0c add removeWithAddIf methods 2021-11-30 11:02:42 +08:00
looly
2b65aaa6c3 add test 2021-11-28 19:10:12 +08:00
Looly
496d07c8d7 add test 2021-11-26 22:21:41 +08:00
Looly
95854cddb1 add options 2021-11-26 21:31:55 +08:00
duandazhi
d5eabab63e 身份证工具类,增加对 港澳台 在大陆身份证 的 文档说明; 大陆用户 对 810000、820000、830000 开通的18位身份证 往往比较陌生。 2021-11-25 16:59:39 +08:00
Looly
30515f0351 add method 2021-11-24 23:10:59 +08:00
Looly
9818263d30 add methods 2021-11-21 05:23:41 +08:00
looly
a1d2c30526 fix code and add test 2021-11-20 16:38:40 +08:00
韩帅
a02a8d75d8 StrUtil.toCamelCase 方法重载 2021-11-17 15:40:41 +08:00
looly
ff70f92e9c add DefaultCloneable 2021-11-16 16:12:23 +08:00
陈其淇
3894bc88c3 添加clone的默认接口类 2021-11-16 12:11:42 +08:00
Looly
50654f821f fix code 2021-11-16 01:19:40 +08:00
Looly
a16b0ed025 fix code 2021-11-16 00:38:10 +08:00
Looly
e7370ef77c !459 - 拓展ofEmptyAble函数,简化了判空元素list的操作 - ifPresentOrElse现在支持链式调用 - 拓展mapOrElse函数,可用于一些连续的参数校验 - 拓展exec函数,能对NPE和数组越界异常进行友好返回
Merge pull request !459 from 阿超/v5-dev
2021-11-15 16:26:52 +00:00
Looly
305fa44b55 fix textFinder 2021-11-16 00:09:40 +08:00
VampireAchao
600f2ff371 1.拓展ofEmptyAble函数,简化了判空元素list的操作
2.ifPresentOrElse现在支持链式调用
3.拓展mapOrElse函数,可用于一些连续的参数校验
4.拓展exec函数,能对NPE和数组越界异常进行友好返回
2021-11-15 23:09:03 +08:00
Looly
ab1d8e84e4 add method for Tree 2021-11-11 22:57:07 +08:00
Looly
8fda1b9ac5 add AsyncUtil 2021-11-10 23:12:53 +08:00
Looly
2a7563a609 !457 HashMap应指定初始长度,增加CompletableFuture相关封装
Merge pull request !457 from 阿超/v5-dev
2021-11-10 14:49:50 +00:00
Looly
662485fb2b fix FileResourceBug 2021-11-10 22:48:11 +08:00
achao
e021f52563 添加测试用例 2021-11-10 21:21:01 +08:00
Looly
fbf52763b7 add method 2021-11-07 13:10:18 +08:00
Looly
96df45120d !455 新增了 flattedMap函数,增强了对原生Optional的适配;新增了set函数,允许静态方式/链式获取一个新的Opt
Merge pull request !455 from 阿超/v5-dev
2021-11-07 04:46:50 +00:00
Looly
941e4f39ca fix UrlQuery 2021-11-07 03:23:44 +08:00
Looly
a5adc9ae94 fix bug 2021-11-07 02:34:03 +08:00
achao
42a74147a6 Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2021-11-06 19:56:48 +08:00
achao
29d503d274 新增了flattedMap,增强了对原生Optional的适配
新增了set函数,能通过非静态方式以及链式获取新的Opt
2021-11-06 19:56:40 +08:00
Looly
065c6d61c8 add class 2021-11-06 18:23:50 +08:00
Looly
fa4f71a112 add method 2021-11-05 00:54:30 +08:00
Looly
646815c3de add test 2021-11-04 02:15:00 +08:00
Looly
179cd2c8ba fix regex 2021-11-04 01:16:05 +08:00
Looly
d75ddf8e2c fix regex 2021-11-04 00:56:23 +08:00
Looly
a97d8c5b4d fix method 2021-11-03 01:35:18 +08:00
Looly
7e62bf4626 fix 2021-11-03 00:29:54 +08:00
Looly
7af9544105 add test 2021-11-02 22:52:02 +08:00
Looly
b9699517a5 add comment 2021-11-02 01:25:21 +08:00
Looly
88edbafe4b add test 2021-11-02 01:17:48 +08:00
Looly
cffb294bfe add CoordinateUtil 2021-11-02 00:55:51 +08:00
hongzhe.qin
8f35f5429b Merge branch 'v5-dev' of https://gitee.com/deligense/hutool into v5-dev 2021-11-01 10:58:31 +08:00
hongzhe.qin
c105eddc8b add W84Util.java 2021-11-01 10:58:09 +08:00
Looly
3fca9e3afd add peek 2021-10-31 18:27:41 +08:00
VampireAchao
6a0bfb7994 新增peeks函数,为函数式编程提供多样性和更多可能性 2021-10-30 14:49:56 +08:00
Looly
8efae077ff fix bug 2021-10-29 01:41:00 +08:00
Jice Gao
ccc9109197 修正cidr判定问题 2021-10-28 09:46:12 +08:00
Looly
7248b65f40 add EFC3986 2021-10-26 04:24:05 +08:00
Looly
87b88b395e fix bug 2021-10-26 01:33:30 +08:00
Looly
d571567c52 add method 2021-10-23 23:19:50 +08:00
Looly
fc96980b68 change fix test 2021-10-21 22:59:15 +08:00
Looly
ce9ee646d6 add test 2021-10-21 22:24:14 +08:00
Looly
39df3623e1 fix bug 2021-10-21 21:36:22 +08:00
Looly
6ad682fb0a add method 2021-10-21 14:24:02 +08:00
Looly
25118070a3 add zip append 2021-10-21 02:52:14 +08:00
Looly
8a8dbd1816 !441 fix bug https://gitee.com/dromara/hutool/issues/I4402K
Merge pull request !441 from 申劭明/v5-dev-20211015
2021-10-20 16:13:26 +00:00
Looly
b937969313 fix bug 2021-10-20 12:34:26 +08:00
申劭明
fd1f330166 add test 2021-10-20 10:43:51 +08:00
Looly
6b3fc153d7 add test 2021-10-15 02:04:42 +08:00
Looly
1b39b8271a add method 2021-10-15 00:06:42 +08:00
Looly
134c0c2578 !439 ReUtil.java 添加了 2 个支持[命名捕获组]的方法
Merge pull request !439 from churen/v5-dev
2021-10-14 15:45:49 +00:00
Looly
a5ea0ef1ed fix parse bug 2021-10-14 19:29:44 +08:00
lihai03
a15eecd2c5 ReUtil.java 添加 2 个命名捕获组相关的方法
ReUtil.java 添加 2 个命名捕获组相关的方法

ReUtil.java 添加 2 个命名捕获组相关的方法
2021-10-14 18:37:38 +08:00
Looly
b5036b4b0b add method 2021-10-14 09:56:04 +08:00
Looly
6dc2192caa add RingIndexUtil 2021-10-14 09:44:34 +08:00
ZhouChuGang
db86a2ad76 feat: 加入集合环形索引获取工具类RingIndexUtil
加入集合环形索引获取工具类RingIndexUtil
2021-10-13 20:34:05 +08:00
Looly
28fefdeb1b add SECURITY 2021-10-13 01:27:21 +08:00
Looly
4552fa27c6 fix test 2021-10-10 14:15:55 +08:00
zeyu cai
03d40cf4ff fix cn.hutool.core.text.StrJoinerTest#joinMultiArrayTest 2021-10-09 18:40:43 -05:00
Looly
68e5ced2bd add test 2021-10-09 21:57:30 +08:00
Looly
3037cb222c add test 2021-10-09 21:47:54 +08:00
Looly
412160ac53 fix bug 2021-10-09 21:13:30 +08:00
Looly
6e3bad82d0 change test 2021-10-09 18:39:22 +08:00
Looly
adfe11ce37 change test 2021-10-09 18:39:00 +08:00
Looly
2af4333ea1 add test 2021-10-08 18:07:12 +08:00
Looly
26c4a44adc add stream support for csv 2021-10-08 16:57:02 +08:00
Golden Looly
2f2273c50b
Merge pull request #1872 from ls586/v5-dev
从LocalDate中获取Week
2021-10-07 23:10:27 +08:00
Looly
cff7c1cedd add Opt 2021-10-07 22:36:41 +08:00
Ron
f553d6d2cb 从LocalDate中获取Week 2021-10-01 01:06:18 +08:00
VampireAchao
75a14ef1fa 参考jdk16中的Optional,以及自己进行了一点调整和新增,比jdk8中的Optional多了几个实用的函数,将即将废弃的OptionalBean死灰复燃 2021-10-01 00:07:05 +08:00
lvcn
5fb8f1b857 fix typo, removeEqual对value为null情况未处理 2021-09-30 17:20:44 +08:00
Looly
58355265ff fix code 2021-09-29 11:59:24 +08:00
Looly
0ff44155c7 add test 2021-09-28 00:56:12 +08:00
Looly
1072639f3b add method 2021-09-28 00:14:58 +08:00
Looly
9642fa8862 fix code 2021-09-28 00:07:13 +08:00
Looly
ed85f81cea fix test 2021-09-27 22:36:14 +08:00
zeyu cai
edd57e82d4 fix flaky test cn.hutool.core.util.JAXBUtilTest#beanToXmlTest. no performance regress related. test file changed only. 2021-09-27 04:57:04 -05:00
Looly
1ab9b6b3e9 fix get null bug 2021-09-27 11:56:33 +08:00
Looly
6db6d70293 add test 2021-09-25 19:42:40 +08:00
Looly
ce33b3d5cb add test 2021-09-25 18:53:12 +08:00
Looly
bebacf2d00 fix split 2021-09-25 18:20:12 +08:00
Looly
e16ec27c40 add iter 2021-09-25 11:25:51 +08:00
Hccake
f1eb5cc439 Allows to customize the mapping method for each element in a list after splitting a string 2021-09-24 12:17:06 +08:00
Looly
59be04e0a5 add test 2021-09-17 21:15:04 +08:00
Looly
b935ace121 add method 2021-09-17 20:02:41 +08:00
TLH
3fc4d134af CollUtil新增2个互换元素位置的静态方法以及对应单元测试
方法1:swapIndex   指定列表元素A与索引index所在元素互换位置
方法2:swapElement 指定列表元素A与列表元素B互换位置
2021-09-15 16:02:20 +08:00
Looly
bf8906eb48 fix frgment encode 2021-09-12 01:19:16 +08:00
Looly
07c69efa92 fix test 2021-09-12 00:15:30 +08:00
Looly
783a02cce4 fix bu 2021-09-10 19:51:46 +08:00
Looly
ba4fabb88c fix pink bug 2021-09-10 19:07:08 +08:00
Looly
feed45c12c fix bug 2021-09-09 19:29:00 +08:00
Looly
a1ee4d27c3 fix bug 2021-09-09 19:15:43 +08:00
Looly
02885bbcd3 add ZUC 2021-09-09 16:14:37 +08:00
Looly
5be6c0103b add test 2021-09-09 11:53:11 +08:00
Looly
36cf627f3d add method 2021-09-06 17:59:01 +08:00
Looly
7379e27d56 add method 2021-09-06 16:12:33 +08:00
Looly
3acb81a58a fix bug 2021-09-06 09:52:22 +08:00
Looly
186eeb8054 add test 2021-09-02 15:07:38 +08:00
Looly
4a384f6a5c deprecate OptionalBean 2021-09-02 13:56:19 +08:00
Looly
303c77a08d add null check 2021-09-01 22:14:15 +08:00
Looly
fca32ecefd add test 2021-08-30 12:52:10 +08:00
Looly
424e6e817e add test 2021-08-30 12:22:54 +08:00
Looly
3e23982329 add docx check 2021-08-30 09:32:21 +08:00
Looly
e800b9cc3a add alias support 2021-08-27 00:47:24 +08:00
Looly
8adf96eaab add methods 2021-08-26 23:27:37 +08:00
Looly
8e5ad32e70 add method 2021-08-25 15:25:25 +08:00
Looly
9a21da9c78 add FuncComparator 2021-08-24 23:13:10 +08:00
Looly
f06a04a965 add method 2021-08-22 19:06:25 +08:00
Looly
40828f69d1 add method 2021-08-22 17:53:02 +08:00
Looly
7c6d7526b6 add format support 2021-08-19 18:27:42 +08:00
duandazhi
c92ccb7316 1、DateUtil yyyy-MM-dd HH:mm:ss.SSSSSS 格式支持
2、DateConverter 增加验证, 入参是 空串,返回null, 而不是抛异常; (生产环境会出现 空串的情况; 异常交给调用者自行抛出)
2021-08-19 16:17:20 +08:00
Looly
9b58b8295a fix config 2021-08-18 09:24:54 +08:00
Looly
2b04713104 add page 2021-08-17 21:57:41 +08:00
Golden Looly
c6291993f9
Merge pull request #1761 from luckymorning/v5-dev
增加列表分页并逐页返回数据的工具方法
2021-08-17 21:34:09 +08:00
Looly
ae1eb46e90 fix test 2021-08-12 18:23:42 +08:00
wangchen
270a97116a 增加列表分页方法 2021-08-12 10:36:26 +08:00
Looly
b048cc7fd7 fix test 2021-08-11 09:20:32 +08:00
Looly
e89ca1ace3 add test 2021-08-10 21:19:29 +08:00
Looly
7b667a817a add readFromStr 2021-08-10 21:09:06 +08:00
Golden Looly
80898f74f4
Merge pull request #1755 from devzhi/v5-dev
CsvUtils增加直接读取字符串相关功能
2021-08-10 21:04:04 +08:00
Looly
93a51253e7 add test 2021-08-10 20:56:20 +08:00
Looly
ae753045ec !395 【轻量级pr】formatBetweenTest 新增一个 测试类, formatBetweenTest2
Merge pull request !395 from dazer007/v5-dev
2021-08-10 12:55:00 +00:00
devzhi
41480c8ee5 CsvUtils增加直接读取字符串相关功能 2021-08-10 14:56:03 +08:00
duandazhi
55a573f96e 【轻量级pr】formatBetweenTest 新增一个 测试类, formatBetweenTest2 2021-08-10 10:44:12 +08:00
Looly
a9282b9d7c fix format 2021-08-08 20:01:02 +08:00
Looly
9acc216f90 add cpmpress 2021-08-07 23:32:48 +08:00
Looly
27e8aa6043 add test 2021-08-06 10:38:49 +08:00
申劭明
844c4be0bf add test for mapProxy 2021-08-05 06:10:50 +00:00
Looly
08ebcad848 add methods 2021-08-02 20:16:04 +08:00
Looly
72af4101bc enhance parseUTC 2021-08-02 13:41:54 +08:00
Looly
74b4b68bb0 change longest common text 2021-08-01 20:54:28 +08:00