Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<HostResource> distinctIpList = resultList.stream().collect(
- Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getIp()))),
- ArrayList::new));
Add Comment
Please, Sign In to add comment