@@ -72,27 +72,23 @@ public void forEachOrdered(Consumer<? super T> action) {
72
72
throw null ;
73
73
}
74
74
75
- // Issue with model generator. Return value is not correctly identified as a
76
- // collection like type.
77
- // public static <T> Stream<T> generate(Supplier<T> s) {
78
- // throw null;
79
- // }
75
+ public static <T > Stream <T > generate (Supplier <T > s ) {
76
+ throw null ;
77
+ }
80
78
81
- // Issue with model generator. Return value is not correctly identified as a
82
- // collection like type.
83
- // public static <T> Stream<T> iterate(T seed, UnaryOperator<T> f) {
84
- // throw null;
85
- // }
79
+ // Model generator adds a couple of extra models, which can't be
80
+ // dismissed based on the type information .
81
+ public static <T > Stream <T > iterate (T seed , UnaryOperator <T > f ) {
82
+ throw null ;
83
+ }
86
84
87
85
public Stream <T > limit (long maxSize ) {
88
86
throw null ;
89
87
}
90
88
91
- // Issue with model generator. Return value is not correctly identified as a
92
- // collection like type and also the type parameter is not correctly identified.
93
- // public <R> Stream<R> map(Function<? super T, ? extends R> mapper) {
94
- // throw null;
95
- // }
89
+ public <R > Stream <R > map (Function <? super T , ? extends R > mapper ) {
90
+ throw null ;
91
+ }
96
92
97
93
public DoubleStream mapToDouble (ToDoubleFunction <? super T > mapper ) {
98
94
throw null ;
@@ -123,11 +119,9 @@ public boolean noneMatch(Predicate<? super T> predicate) {
123
119
// throw null;
124
120
// }
125
121
126
- // Issue with model generator. Return value is not correctly identified as a
127
- // collection like type and also the type parameter is not correctly identified.
128
- // public static <T> Stream<T> of(T t) {
129
- // throw null;
130
- // }
122
+ public static <T > Stream <T > of (T t ) {
123
+ throw null ;
124
+ }
131
125
132
126
public Stream <T > peek (Consumer <? super T > action ) {
133
127
throw null ;
0 commit comments