Java lambda list转换map时,把多个参数拼接作为key

Map<String, Parts> partsMap = synList.stream().collect(Collectors.toMap(k -> k.getOe()+k.getOeId()+k.getPartGroupId()+k.getStdPartId()+k.getBrandCode(), part -> part));
    原文作者:feiwuguohai
    原文地址: https://blog.csdn.net/feiwuguohai/article/details/80533278
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞