stream - map

                Map skuMap = givenSkuList.stream().collect(Collectors.toMap(ProductRespVO::getSkuCode, input -> input, (k1, k2) -> k1));

你可能感兴趣的:(stream - map)