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

Skip to content

Commit 9ccff65

Browse files
committed
Java: Add some initial stubs for methods like java.util.stream.Stream.
1 parent 8bc9232 commit 9ccff65

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

  • java/ql/test/utils/model-generator/typebasedflow/p
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package p;
2+
3+
import java.util.function.*;
4+
import java.util.Iterator;
5+
import java.util.stream.Collector;
6+
7+
public class Stream<T> {
8+
9+
public Iterator<T> iterator() {
10+
return null;
11+
}
12+
13+
// public boolean allMatch(Predicate<? super T> predicate) {
14+
// throw null;
15+
// }
16+
17+
// public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T>
18+
// accumulator, BiConsumer<R, R> combiner) {
19+
// throw null;
20+
// }
21+
22+
// public <R, A> R collect(Collector<? super T, A, R> collector) {
23+
// throw null;
24+
// }
25+
26+
// public static <T> Stream<T> concat(Stream<? extends T> a, Stream<? extends T>
27+
// b) {
28+
// throw null;
29+
// }
30+
31+
public Stream<T> distinct() {
32+
throw null;
33+
}
34+
}

0 commit comments

Comments
 (0)