Guest User

Untitled

a guest
Apr 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. List<HostResource> distinctIpList = resultList.stream().collect(
  2. Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getIp()))),
  3. ArrayList::new));
Add Comment
Please, Sign In to add comment