Guest User

Untitled

a guest
May 20th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. Set<Person> people = ...;
  2. Set<Address> addresses = people
  3. .stream()
  4. .map(Person::getAddress)
  5. .collect(Collectors.toSet());
Add Comment
Please, Sign In to add comment