Last active
October 11, 2015 10:48
-
-
Save aruld/3847464 to your computer and use it in GitHub Desktop.
Updated to compile with the latest lambda build 94.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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