原文:java1.8从list集合中抽取某个字段转为新的集合以及把list集合按某个字段进行分组

从list集合中抽取getId转为新的集合: List lt NatCustomers gt natCustomersList natCustomersService.queryListByPage , List lt Integer gt customerIds natCustomersList.stream .map NatCustomers::getId .collect Collector ...

2020-10-19 17:16 0 1982 推荐指数:

查看详情

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