| | |
| | | if (CollUtil.isEmpty(collection)) { |
| | | return CollUtil.newArrayList(); |
| | | } |
| | | return collection.stream().filter(function).collect(Collectors.toList()); |
| | | return collection.stream().filter(function).toList(); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (CollUtil.isEmpty(collection)) { |
| | | return CollUtil.newArrayList(); |
| | | } |
| | | return collection.stream().sorted(comparing).collect(Collectors.toList()); |
| | | return collection.stream().sorted(comparing).toList(); |
| | | } |
| | | |
| | | /** |
| | |
| | | .stream() |
| | | .map(function) |
| | | .filter(Objects::nonNull) |
| | | .collect(Collectors.toList()); |
| | | .toList(); |
| | | } |
| | | |
| | | /** |