|
@@ -168,10 +168,10 @@ public class CollectionUtil { |
|
@@ -168,10 +168,10 @@ public class CollectionUtil { |
168
|
* @param groupKey 多个分组方法
|
168
|
* @param groupKey 多个分组方法
|
169
|
* @return 分组结果
|
169
|
* @return 分组结果
|
170
|
*/
|
170
|
*/
|
171
|
- @SuppressWarnings({ "unchecked", "rawtypes" })
|
171
|
+ /*@SuppressWarnings({ "unchecked", "rawtypes" })
|
172
|
public static <T, U> Map groupingByMulti(Collection<U> collection, Function<? super U, ?>... groupKey) {
|
172
|
public static <T, U> Map groupingByMulti(Collection<U> collection, Function<? super U, ?>... groupKey) {
|
173
|
return groupingByMulti(collection.stream(), groupKey);
|
173
|
return groupingByMulti(collection.stream(), groupKey);
|
174
|
- }
|
174
|
+ }*/
|
175
|
|
175
|
|
176
|
/**
|
176
|
/**
|
177
|
* 多个条件分组.
|
177
|
* 多个条件分组.
|
|
@@ -180,14 +180,14 @@ public class CollectionUtil { |
|
@@ -180,14 +180,14 @@ public class CollectionUtil { |
180
|
* @param groupKey 多个分组方法
|
180
|
* @param groupKey 多个分组方法
|
181
|
* @return 分组结果
|
181
|
* @return 分组结果
|
182
|
*/
|
182
|
*/
|
183
|
- @SuppressWarnings({ "unchecked", "rawtypes" })
|
183
|
+ /*@SuppressWarnings({ "unchecked", "rawtypes" })
|
184
|
public static <T, U> Map groupingByMulti(Stream<U> stearm, Function<? super U, ?>... groupKey) {
|
184
|
public static <T, U> Map groupingByMulti(Stream<U> stearm, Function<? super U, ?>... groupKey) {
|
185
|
Collector c = Collectors.groupingBy(groupKey[groupKey.length - 1]);
|
185
|
Collector c = Collectors.groupingBy(groupKey[groupKey.length - 1]);
|
186
|
for (int i = groupKey.length - 2; i >= 0; i--) {
|
186
|
for (int i = groupKey.length - 2; i >= 0; i--) {
|
187
|
c = Collectors.groupingBy(groupKey[i], c);
|
187
|
c = Collectors.groupingBy(groupKey[i], c);
|
188
|
}
|
188
|
}
|
189
|
return (Map) stearm.collect(c);
|
189
|
return (Map) stearm.collect(c);
|
190
|
- }
|
190
|
+ }*/
|
191
|
|
191
|
|
192
|
/**
|
192
|
/**
|
193
|
* 多条件排序
|
193
|
* 多条件排序
|