Created
August 8, 2014 12:53
-
-
Save novoj/8744c54d116c437e8eef to your computer and use it in GitHub Desktop.
Loooong lambda
This file contains 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
SelectableItem matchingItem = getItems().stream() | |
.filter(selectableItem -> selectableItem.getTitle().equals(title)) | |
.findFirst().orElseGet(() -> SelectableItem.EMPTY).getId(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment