Skip to content

Instantly share code, notes, and snippets.

Last active Oct 11, 2015
What would you like to do?
MyStream interface
import java.util.function.Predicate;
public interface MyStream<T> extends Stream<T> {
default boolean exists(Predicate<? super T> predicate) {
return anyMatch(predicate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment