Convert list objects to a set of statistical object mapping (map), collectors.reducing

1. Currently there are List < ReportDetail >
2.ReportDetail {key,cnt1,cnt2}
3. Need to convert List < ReportDetail > to Map < Key,Report >
4.Report {key,totalCnt1,totalCnt2}
5. Please tell me how to write the stream operation using JDK8.

Mar.15,2021
Menu