代码
List<Long> filterList = testList.stream().filter(temp -> temp != null && temp.xxx != null).
collect(Collectors.toList());
代码
List<Long> filterList = testList.stream().filter(temp -> temp != null && temp.xxx != null).
collect(Collectors.toList());