Skip to content

Instantly share code, notes, and snippets.

@zivce
Created September 25, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zivce/aa29610c4dfabbec6f01c531a981aedd to your computer and use it in GitHub Desktop.
Save zivce/aa29610c4dfabbec6f01c531a981aedd to your computer and use it in GitHub Desktop.
final List<String> categories = source.getCategories().stream()
.map(category -> {
return getIDService().getItem(category).map(item -> {
return item.getId();
}).get();
}).collect(Collectors.toList());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment