mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Java: Add stream example methods using wildcards.
This commit is contained in:
@@ -10,15 +10,15 @@ public class Stream<T> {
|
||||
return null;
|
||||
}
|
||||
|
||||
// public boolean allMatch(Predicate<? super T> predicate) {
|
||||
// throw null;
|
||||
// }
|
||||
public boolean allMatch(Predicate<? super T> predicate) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
// public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T>
|
||||
// accumulator, BiConsumer<R, R> combiner) {
|
||||
// throw null;
|
||||
// }
|
||||
public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) {
|
||||
throw null;
|
||||
}
|
||||
|
||||
// Collector is not a functional interface, so this is not supported
|
||||
// public <R, A> R collect(Collector<? super T, A, R> collector) {
|
||||
// throw null;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user