Skip to content

Instantly share code, notes, and snippets.

@aruld

aruld/MyStream.java

Last active Oct 11, 2015
Embed
What would you like to do?
MyStream interface
package java.util.stream;
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