原文: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