Stream filter的使用
// '00016452', '00004098', '00015583', '00010881', '00015928', '00013397' 公共方法过滤这些经营单位
String[] notNeed = {"00016452", "00004098", "00015583", "00010881", "00015928", "00013397"};
List<String> notNeedList = Arrays.asList(notNeed);
entities = entities.stream().filter(item -> !notNeedList.contains(item.getId())).collect(Collectors.toList());
我成功因为我志在成功
浙公网安备 33010602011771号