Last active
October 24, 2017 07:17
-
-
Save jeserkin/9cf27838306ce1e1739ed3b6257e7d82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private Collection<String> aggregateSomething(Based on) { | |
| // validationResults is list of objects, that have method `giveMeSomething`. Need to call it in map | |
| return Optional.of(on.getThisSomethingCollection()) | |
| .map(validationResults -> ...) | |
| .ifPresent(Collectors.toSet()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment