标签:差集 tin get mod collect lis bsp cto java
//交集 List<TFridCard> list = cardLiStIn.stream().filter(item ->msgModel.getPayload().stream().map(e -> e.getTagname()).collect(Collectors.toList()).contains(item.getUniqueCode())).collect(Collectors.toList()); //差集 List<TFridCard> list = cardLiStOut.stream().filter(item -> !msgModel.getPayload().stream().map(e -> e.getTagname()).collect(Collectors.toList()).contains(item.getUniqueCode())).collect(Collectors.toList());
标签:差集 tin get mod collect lis bsp cto java
原文地址:https://www.cnblogs.com/jackszc/p/11362236.html