2689 Commits

Author SHA1 Message Date
Looly
705a15c3e5 fix code 2022-09-17 22:37:07 +08:00
Looly
1c78496bda add test 2022-09-16 11:24:12 +08:00
Looly
a929236bb7 fix test 2022-09-15 23:13:19 +08:00
Looly
6d3d7d4913 add test 2022-09-15 19:24:48 +08:00
Looly
eba3332eaf fix #2612 2022-09-15 17:06:00 +08:00
Looly
790315f839 add color 2022-09-15 12:28:23 +08:00
Looly
08a829cf6d fix code 2022-09-15 11:20:54 +08:00
Looly
3b5ba16c93 add SafeConcurrentHashMap 2022-09-15 10:36:20 +08:00
Looly
cf0fc45080 fix code 2022-09-15 02:45:05 +08:00
Looly
a081bdc5e1 fix bug 2022-09-15 02:19:44 +08:00
Looly
23d90a8896 fix bug 2022-09-15 01:53:47 +08:00
Looly
7d091ae95a fix bug 2022-09-14 11:25:19 +08:00
Looly
3111a6c64f
!803 【6.x】添加AnnotatedElementUtil工具类
Merge pull request !803 from Createsequence/feat-annotation
2022-09-14 03:14:36 +00:00
Looly
367298483b fix comment 2022-09-13 23:46:10 +08:00
Looly
adb1dc5f62 add test 2022-09-13 23:22:20 +08:00
huangchengxing
6c6eeb49d7 添加AnnotatedElementUtil工具类 2022-09-13 13:59:01 +08:00
huangchengxing
4b38bc31d2 添加支持处理层级结构的增强AnnotatedElement包装器 2022-09-13 13:58:24 +08:00
huangchengxing
77e065f302 添加支持处理元注解的增强AnnotatedElement包装器 2022-09-13 13:57:46 +08:00
huangchengxing
a1a199513f 添加支持属性映射的增强注解包装器 2022-09-13 13:56:41 +08:00
Looly
18daa4b431 fix code 2022-09-13 11:11:36 +08:00
VampireAchao
e09656b6cd :trollface: 添加author 2022-09-09 14:44:49 +08:00
VampireAchao
d1b125c88f :trollface: 添加author 2022-09-09 14:43:26 +08:00
VampireAchao
fc532551af :trollface: 增强EasyStream#zip对并行流的支持,提供CollectorUtil.entryToMap对Entry转map提供支持,完善javadoc 2022-09-09 14:41:10 +08:00
VampireAchao
814b55cc87 Merge remote-tracking branch 'origin/v6-dev' into v6-dev
# Conflicts:
#	hutool-core/src/main/java/cn/hutool/core/stream/TerminableWrappedStream.java
#	hutool-core/src/main/java/cn/hutool/core/stream/TransformableWrappedStream.java
2022-09-09 14:40:39 +08:00
VampireAchao
492a281cf9 :trollface: 增强EasyStream#zip对并行流的支持,提供CollectorUtil.entryToMap对Entry转map提供支持,完善javadoc 2022-09-09 14:38:28 +08:00
Looly
63028906b9 add converter for json 2022-09-08 02:21:05 +08:00
Looly
bb99d52a87 fix code 2022-09-08 01:46:07 +08:00
Looly
2200701d7e add test 2022-09-07 17:20:47 +08:00
Looly
a8a4f16bec fix comment 2022-09-07 16:40:56 +08:00
Looly
ac9d4cef37 fix comment 2022-09-07 16:36:03 +08:00
Looly
d0ec0a4b5a
!800 【6.x】重构Lambda体系
Merge pull request !800 from 阿超/v6-dev
2022-09-07 08:26:51 +00:00
achao
b7d924b34d :trollface: 解决冲突 2022-09-07 15:57:29 +08:00
阿超
e847ff6501 Merge branch 'v6-dev' of gitee.com:dromara/hutool into v6-dev
Signed-off-by: 阿超 <achao1441470436@gmail.com>
2022-09-07 07:55:05 +00:00
Looly
58d1a9a92b fix code 2022-09-07 15:53:33 +08:00
achao
f732d14809 重构Jdk自带的Lambda体系,支持序列化+包裹受检异常
改动如下:
1. AnnotationUtil 115行 简化 predicate::test 为 predicate
2. 调整 Func1 为 SerFunction
3. 调整 Func0 为 SerSupplier
4. 移除 GenericBuilder 对于多参数构造双冒号简写支持,直接采用lambda方式,例如GenericBuilder.of(Box::new, 2048L, "Hello Partner!", 222, 333, 444)改为GenericBuilder.of(() -> new Box(2048L, "Hello Partner!", 222, 333, 444))
5. 移除 CheckedUtil,现有重构后的Lambda 支持包裹异常
6. 移除 Func,该函数式接口属于泛型可变参数,不推荐使用
7. 移除 Supplier1,1参数Supplier应该使用SerFunction替代
8. 移除 Supplier2,2参数Supplier应该使用SerBiFunction替代
9. 移除 Supplier3,3参数Supplier应该使用SerFunction3替代(因第4条更改思路,该SerFunction3并未添加)
10. 移除 Supplier4,4参数Supplier应该使用SerFunction4替代(因第4条更改思路,该SerFunction4并未添加)
11. 移除 Supplier5,5参数Supplier应该使用SerFunction5替代(因第4条更改思路,该SerFunction5并未添加)
12. 移除 VoidFunc,该函数式接口属于泛型可变参数,不推荐使用
13. 调整 VoidFunc0 为 SerRunnable
14. 调整 VoidFunc1 为 SerConsumer
15. 调整 EntryStream 泛型命名、完善javadoc
16. EnumUtil 273行 简化 field::callWithRuntimeException 为 field
2022-09-07 15:08:11 +08:00
huangchengxing
7d680792d4 使用CollectorUtil.joining替换Collectors.joining 2022-09-07 09:34:35 +08:00
huangchengxing
89c3f3c4bc Merge branch 'v6-dev' into refactor-stream
# Conflicts:
#	hutool-core/src/main/java/cn/hutool/core/stream/EasyStream.java
2022-09-07 09:33:09 +08:00
Looly
4204cb8532 simle code 2022-09-07 09:27:08 +08:00
huangchengxing
d58502ad76 调整方法名称 2022-09-06 13:32:32 +08:00
huangchengxing
924a1c6a22 fix code 2022-09-06 12:44:48 +08:00
huangchengxing
b463b11364 Merge branch 'v6-dev' into refactor-stream
# Conflicts:
#	hutool-core/src/main/java/cn/hutool/core/stream/EasyStream.java
#	hutool-core/src/main/java/cn/hutool/core/stream/WrappedStream.java
2022-09-06 12:39:02 +08:00
huangchengxing
717305e039 fix code 2022-09-06 12:21:41 +08:00
huangchengxing
741f0aa53a 重构增强流:
1.移除SimpleStreamWrapper;
2.将EasyStream中部分方法移动至接口中;
3.调整类名、方法名、变量名与部分注释;
4.为实例方法添加空值校验;
5.补充测试用例;
2022-09-06 11:21:38 +08:00
VampireAchao
056eb5ded6 CollectorUtil 新增两个对toMap的重载,并将EasyStream中join采用CollectorUtil中的joining 2022-09-06 11:18:06 +08:00
Looly
7fb7667e14 fix code 2022-09-04 21:29:29 +08:00
Looly
d52d36cfdc fix code 2022-09-04 20:57:26 +08:00
Looly
c72e2bb5ba fix code 2022-09-04 20:11:25 +08:00
Looly
d1a5818a8e
!781 【6.x】新增基于键值对类型元素的Stream增强流实现
Merge pull request !781 from Createsequence/feat-stream-ext
2022-09-04 11:42:51 +00:00
Looly
f942bd59da fix code 2022-09-02 23:44:45 +08:00
Looly
b02610ed27
!790 补充collection.iter包下的测试用例、注释
Merge pull request !790 from Createsequence/fix-coll
2022-09-02 15:43:21 +00:00