Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Updated to compile with the latest lambda build 94.
package java.util.stream;
import java.util.Spliterator;
import java.util.function.Predicate;
import java.util.function.Supplier;
public class MyReferencePipeline<T, U> extends ReferencePipeline<T, U> implements MyStream<U> {
public MyReferencePipeline(Supplier<? extends Spliterator<?>> source, int sourceFlags, boolean parallel) {
super(source, sourceFlags, parallel);
}
public MyReferencePipeline(Spliterator<?> source, int sourceFlags, boolean parallel) {
super(source, sourceFlags, parallel);
}
@Override
public boolean exists(Predicate<? super U> predicate) {
return evaluate(MatchOps.makeRef(predicate, MatchOps.MatchKind.ANY));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment