Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52f69f7

Browse files
committed
Java: Add stream example methods using wildcards.
1 parent b8922b0 commit 52f69f7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • java/ql/test/utils/model-generator/typebasedflow/p

java/ql/test/utils/model-generator/typebasedflow/p/Stream.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ public Iterator<T> iterator() {
1010
return null;
1111
}
1212

13-
// public boolean allMatch(Predicate<? super T> predicate) {
14-
// throw null;
15-
// }
13+
public boolean allMatch(Predicate<? super T> predicate) {
14+
throw null;
15+
}
1616

17-
// public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T>
18-
// accumulator, BiConsumer<R, R> combiner) {
19-
// throw null;
20-
// }
17+
public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) {
18+
throw null;
19+
}
2120

21+
// Collector is not a functional interface, so this is not supported
2222
// public <R, A> R collect(Collector<? super T, A, R> collector) {
2323
// throw null;
2424
// }

0 commit comments

Comments
 (0)