stream之匹配string中字母或短语

 List<Integer> storeIdLists1 = 
store.stream().filter(item -> StringUtils.contains(item.getPostCode(), "SYY")).map(LoginDto::getStoreId).collect(Collectors.toList());
posted @ 2022-02-08 16:23  冰镇李子园  阅读(77)  评论(0)    收藏  举报