添加flatObj方法

This commit is contained in:
kongweiguang 2023-06-30 19:21:47 +08:00
parent ebbf0a452e
commit 167dcf5d1c
2 changed files with 3 additions and 4 deletions

View File

@ -2369,8 +2369,7 @@ public class CollUtil {
/**
* 结构多层集合
* 例如List<List<List<String>>> 解构成 List<String>
* <p>
* 例如List&lt;List&lt;List&lt;String&gt;&gt;&gt; 解构成 List&lt;String&gt;
* skipNull如果为true, 则解构后的集合里不包含null值为false则会包含null值
*
* @param collection 需要结构的集合

View File

@ -488,8 +488,8 @@ public interface TransformableWrappedStream<T, S extends TransformableWrappedStr
}
/**
* 如果当前元素是集合则会解构当前集合
*
* 如果当前元素是集合则会将集合中的元素解构出来
* 例如List&lt;List&lt;List&lt;String&gt;&gt;&gt; 解构成 List&lt;String&gt;
* @param clazz 解构后元素的类型
* @param <R> 函数执行后返回的类型
* @return EasyStream 一个流