Commit Graph

828 Commits

Author SHA1 Message Date
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
Looly
e784e1fcd4 add test 2021-08-01 08:33:01 +08:00
Looly
02b68f970b add test 2021-07-30 09:45:57 +08:00
董舒克
d339f607a3 增加新的固话方法测试 2021-07-29 13:28:59 +08:00
Looly
50c9337ea0 add methods 2021-07-28 23:18:31 +08:00
Looly
520b503065 add method 2021-07-28 22:00:04 +08:00
Looly
05495ba8ed add LookupFactory and MethodHandleUtil 2021-07-28 21:07:55 +08:00
Looly
9f1920e498 fix bug 2021-07-28 01:43:52 +08:00
Looly
c3f1fe50e4 fix convert bug 2021-07-28 00:35:03 +08:00
Looly
56d4a849f4 fix bug 2021-07-26 18:43:46 +08:00
Looly
2ce5b2cc79 add test and comment 2021-07-26 18:10:29 +08:00
Looly
86479585a8 !382 Add test for CharSequenceUtil#replace
Merge pull request !382 from 申劭明/shenshaoming-v5-dev-patch-58866
2021-07-26 09:57:20 +00:00
Looly
6468a0446d add test 2021-07-26 17:06:48 +08:00
申劭明
f61c843e69 add test for replace 2021-07-26 02:16:16 +00:00
Looly
32797d2d14 fix BeanDesc bug 2021-07-23 22:44:49 +08:00
Looly
91047d1f88 !379 【轻量级PR】issue #4231K 相关的测试用例修改
Merge pull request !379 from dazer007/v5-dev
2021-07-23 14:14:24 +00:00
duandazhi
eaca7172fd issue #4231K 相关的测试用例修改 2021-07-23 17:59:15 +08:00
Looly
e9e01b54bf add tes 2021-07-23 10:19:10 +08:00
Looly
08a3eeb752 fix test 2021-07-19 18:22:57 +08:00
Looly
8f3011e793 fix Base64.isBase64 2021-07-19 17:57:55 +08:00
Looly
56e107ebda fix brief bug 2021-07-19 00:36:32 +08:00
Looly
63b93948a6 !371 【轻量级pr】常用类增加 @see 和说明
Merge pull request !371 from dazer007/v5-dev
2021-07-15 17:37:47 +00:00
Looly
df2147cd7c add method 2021-07-16 01:34:27 +08:00
duandazhi
41d3f0d931 Merge remote-tracking branch 'origin/v5-dev' into v5-dev 2021-07-15 09:35:54 +08:00
Looly
dfa10be599 add Base64.isBase64 2021-07-14 18:49:14 +08:00
Looly
f68a73538e fix path 2021-07-14 18:26:26 +08:00
duandazhi
65103f3916 修改 pr by close的问题 2021-07-14 17:40:09 +08:00
duandazhi
75d5268249 Merge remote-tracking branch 'origin/v5-dev' into v5-dev
# Conflicts:
#	hutool-core/src/main/java/cn/hutool/core/text/CharSequenceUtil.java
2021-07-14 17:11:51 +08:00
Looly
eda8bdc27a fix bug 2021-07-14 17:09:59 +08:00
Looly
89a3acfa88 fix bug 2021-07-14 12:09:34 +08:00
dazer007
f88339522e Merge branch 'v5-dev' of gitee.com:dromara/hutool into v5-
dev
2021-07-14 03:36:52 +00:00
duandazhi
7d273f6c52 常用方法 增加 @see 和 别名 2021-07-14 11:27:42 +08:00
Looly
ba8033059c fix format bug 2021-07-14 10:30:54 +08:00
Looly
d01e8b11bb add put method 2021-07-14 09:33:28 +08:00
angraovip
b673427f1a MapBuilder condition put 2021-07-13 18:30:11 +08:00
Looly
f9b29c5f2a add NanoId 2021-07-12 20:22:30 +08:00
Looly
6ebd912062 !362 唯一Id生成算法增加NanoId算法
Merge pull request !362 from kangsafe/v5-dev
2021-07-12 11:41:36 +00:00
Looly
34af7f5711 add method 2021-07-12 19:38:08 +08:00
Looly
0ed05e88ef add method 2021-07-12 19:22:33 +08:00
Looly
3160742be1 fix ClassScanner bug 2021-07-12 18:53:24 +08:00
Looly
bee3056844 fix normalize 2021-07-12 10:08:17 +08:00
小康
ea2061b333 增加NanoId算法 2021-07-12 09:29:50 +08:00
Golden Looly
0a2524faf7
Merge pull request #1702 from fuffcp123/v5-dev
fix(IdCardUtil): Fix isValidTWCard  string index out of range
2021-07-10 18:49:06 +08:00
Looly
d7d9199d40 add test 2021-07-10 18:39:36 +08:00
fuffcp123
09355e6cc5 fix(IdCardUtil): Fix isValidTWCard string index out of range 2021-07-10 15:13:43 +08:00
Looly
b8d04654ef fix chineseFormatter 2021-07-10 00:36:13 +08:00
Looly
9fd7c02c86 csv support beginLineNo 2021-07-09 22:51:35 +08:00
Looly
b38f40a6a3 add os version and methods 2021-07-09 20:11:25 +08:00
Looly
5c6e548db2 fix test 2021-07-08 01:12:47 +08:00
Looly
26f217e907 fix code 2021-07-02 11:35:14 +08:00
Looly
2b4311aca0 !353 CsvWriter 增加 writer.write(csvData)的方法重载;
Merge pull request !353 from dazer007/v5-dev
2021-07-02 03:26:34 +00:00
Looly
761a0e0940 add method 2021-07-02 11:21:36 +08:00
duandazhi
566fffdce1 1、CsvWriter 增加 writer.write(csvData)的方法重载;
2、测试类写文件 对macos、linux 电脑的支持
3、优化测试类代码
2021-06-30 22:31:09 +08:00
Looly
3685f17b3a add test 2021-06-29 23:08:25 +08:00
Looly
8caa7f890e add test 2021-06-29 23:02:52 +08:00
Looly
721fd16f4d fix Range 2021-06-29 21:15:19 +08:00
Looly
2034b59042 add PasswdStrength 2021-06-29 00:04:48 +08:00
Looly
1472cdc440 fix NPE bug 2021-06-28 23:22:20 +08:00
Looly
ffed1d32fd fix indexOfSub bug 2021-06-28 23:07:40 +08:00
Looly
062d070d92 fix bug 2021-06-28 22:26:15 +08:00
duandazhi
af9880c5d3 解决:copyProperties(x,x, CopyOptions copyOptions)
当:copyOptions的 setFieldNameEditor 不为空的时候,有bug,这里进行修复;
2021-06-28 22:15:11 +08:00
Looly
5719c28158 fix DateRange bug 2021-06-28 21:55:53 +08:00
Looly
16910ed709 add getWorkerId stc 2021-06-28 20:49:39 +08:00
Looly
613b6f3ac5 add /GlobalCustomFormat 2021-06-26 01:47:16 +08:00
Looly
74b6ac38c4 add JAXBUtil 2021-06-24 23:10:56 +08:00
Looly
abee0ff49e !346 解决 xmlutil 只能解析一层的bug, 新增 XmlBeanUtil工具
Merge pull request !346 from dazer007/v5-dev
2021-06-24 14:47:25 +00:00
Looly
069fd6827a fix bug 2021-06-24 22:37:15 +08:00
duandazhi
96e09601e0 add xml 2 bean 互转utils;
解决:
BeanUtil.beanToMap(outer)只能解析第一层,如果想多层解析,考虑使用JSONUtil的bug;

生产环境,常见是要 解析多层,而不是 只解析第一层;
2021-06-24 13:05:32 +08:00
Looly
2c30de4fae add methods 2021-06-24 08:26:46 +08:00
Looly
d6fd4e259b !345 CsvWriter添加writeBeans方法,根据Bean自动生成表头,并写入数据
Merge pull request !345 from 马万里/v5-dev
2021-06-24 00:09:11 +00:00
Looly
b8a35fdeae add test 2021-06-24 08:03:18 +08:00
Looly
949c7a856e fix escape bug 2021-06-24 07:53:21 +08:00
mawanli
1029bc74f2 1.[新特性] CsvWriter添加writeBeans方法,根据Bean自动生成表头,并写入数据 2021-06-23 11:28:20 +08:00
Looly
e8ecadd9a3 fix XmlUtil 2021-06-20 00:46:57 +08:00
Looly
59275491de add JWTValidator 2021-06-20 00:07:44 +08:00
Looly
185764ec75 add test 2021-06-18 01:56:06 +08:00
Looly
7baac80d32 fix code to replace join 2021-06-18 01:48:02 +08:00
Looly
40a14e1508 add StrJoiner 2021-06-17 20:41:01 +08:00
Looly
b9cf8b0c5b fix test 2021-06-16 23:06:00 +08:00
Looly
ec60a4202d fix tester bug 2021-06-16 19:23:53 +08:00
Looly
26064f146c fix method 2021-06-16 02:32:12 +08:00
Looly
8c3298fed4 fix code 2021-06-16 02:01:56 +08:00
Looly
f9b6110042 remove deprecated methods 2021-06-16 00:51:20 +08:00
Looly
8b85134c4b fix test 2021-06-15 19:03:08 +08:00
Looly
56703c5a55 add test 2021-06-15 10:28:59 +08:00
Looly
395942298e fix parse bug 2021-06-15 10:17:35 +08:00
Looly
7dc5873d9e add methods 2021-06-12 00:33:50 +08:00
Looly
e2de04d36f add method 2021-06-11 13:17:35 +08:00
Looly
93b383c2b7 add jwt 2021-06-10 22:54:45 +08:00
Looly
b0e62df7c6 add Stream utils 2021-06-07 18:46:24 +08:00
Looly
31ee6335c5 remove jmh test 2021-06-07 12:01:42 +08:00
Looly
c26343f462 remove jmh 2021-06-07 11:59:30 +08:00
Looly
649d41cd8a add jmh 2021-06-07 02:47:01 +08:00
Golden Looly
5ef8fab528
Merge pull request #1634 from cal101/erefactor/v5-dev-project/1/jdt/jdt-RemoveAllTrailingWhitespaceCleanUp-3
[cleanup] erefactor/EclipseJdt - Remove trailing whitespace - All lines
2021-06-07 02:02:44 +08:00
Looly
70eb424cd5 fix code 2021-06-07 01:59:07 +08:00
cal101
bc3c3d08d2 [cleanup] erefactor/EclipseJdt - Remove trailing whitespace - All lines
EclipseJdt cleanup 'RemoveAllTrailingWhitespace' applied by erefactor.

For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-06-06 17:20:14 +00:00
Golden Looly
e5448b08e6
Merge pull request #1627 from cal101/erefactor/v5-dev-project/1/jdt/jdt-InvertEqualsCleanUp
[cleanup] erefactor/EclipseJdt - Invert equals arguments if parameter…
2021-06-07 00:22:11 +08:00
Looly
ab195f4e67 add return 2021-06-07 00:00:45 +08:00
cal101
86caedac50 [cleanup] erefactor/EclipseJdt - Invert equals arguments if parameter is constant string
EclipseJdt cleanup 'InvertEquals' applied by erefactor.

For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-06-06 13:37:57 +00:00
cal101
1627362961 [cleanup] erefactor/EclipseJdt - Remove unused imports
EclipseJdt cleanup 'RemoveUnusedImport' applied by erefactor.

For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
2021-06-05 11:53:39 +00:00
Looly
f441b319da add test 2021-06-05 11:16:14 +08:00