Skip to content

Instantly share code, notes, and snippets.

@amatkivskiy
Last active November 11, 2016 10:11
Show Gist options
  • 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