...
|
...
|
@@ -160,7 +160,7 @@ public class CollectionUtil { |
|
|
});
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 多个条件分组.
|
|
|
*
|
...
|
...
|
@@ -168,10 +168,10 @@ public class CollectionUtil { |
|
|
* @param groupKey 多个分组方法
|
|
|
* @return 分组结果
|
|
|
*/
|
|
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
/*@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
public static <T, U> Map groupingByMulti(Collection<U> collection, Function<? super U, ?>... groupKey) {
|
|
|
return groupingByMulti(collection.stream(), groupKey);
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
/**
|
|
|
* 多个条件分组.
|
...
|
...
|
@@ -180,14 +180,14 @@ public class CollectionUtil { |
|
|
* @param groupKey 多个分组方法
|
|
|
* @return 分组结果
|
|
|
*/
|
|
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
/*@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
public static <T, U> Map groupingByMulti(Stream<U> stearm, Function<? super U, ?>... groupKey) {
|
|
|
Collector c = Collectors.groupingBy(groupKey[groupKey.length - 1]);
|
|
|
for (int i = groupKey.length - 2; i >= 0; i--) {
|
|
|
c = Collectors.groupingBy(groupKey[i], c);
|
|
|
}
|
|
|
return (Map) stearm.collect(c);
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
/**
|
|
|
* 多条件排序
|
...
|
...
|
|