花费 5 ms
Stream流根据某一属性分组

用法   list.stream().collect(Collectors.groupingBy(entity -> entity.getParam())) eg :   {type = ...

Thu Dec 09 18:55:00 CST 2021 0 1027

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM