2017年4月7日16:18:17 java8 常用记录

List<String> customerUids = customerTagModel.stream().map(CustomerTagModel::getCustomerUid)
                .collect(Collectors.toList());手机list中类型的属性

List<String> customerUid = customerUids.stream().distinct().collect(Collectors.toList());去重list

Map<String, List<VendorSettleDetailResponsePojo>> groupResults = settleDetails.stream().collect(Collectors.groupingBy(VendorSettleDetailResponsePojo::getSettle_uid));归类

原文地址:https://www.cnblogs.com/Luke-wang/p/6678829.html