Skip to content

Instantly share code, notes, and snippets.

@rarous
Forked from novoj/gist:8744c54d116c437e8eef
Last active August 29, 2015 14:05
Show Gist options
  • Save rarous/7411948749447a88da5c to your computer and use it in GitHub Desktop.
Save rarous/7411948749447a88da5c to your computer and use it in GitHub Desktop.
SelectableItem matchingItem = getItems().stream().
filter(x -> x.getTitle().equals(title)).
findFirst().
orElseGet(() -> SelectableItem.EMPTY);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment