Skip to content

Instantly share code, notes, and snippets.

@amatkivskiy
Last active November 11, 2016 10:11
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 amatkivskiy/cd38ccc422930efb12852c417e805200 to your computer and use it in GitHub Desktop.
Save amatkivskiy/cd38ccc422930efb12852c417e805200 to your computer and use it in GitHub Desktop.
boolean find(List<MediaItem> data) {
return Stream.stream(data)
.any(new solid.functions.Func1<MediaItem, Boolean>() {
@Override
public Boolean call(MediaItem item) {
return item.isActive;
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment