@@ -41,7 +41,9 @@ private ParallelCollectors() {
41
41
* @return a {@code Collector} which collects all processed elements into a user-provided mutable {@code Collection} in parallel
42
42
*
43
43
* @since 2.0.0
44
+ * @deprecated use {@link ParallelCollectors#parallel(Function, Collector, Executor, int)}
44
45
*/
46
+ @ Deprecated // for removal in 3.0.0
45
47
public static <T , R , RR > Collector <T , ?, CompletableFuture <RR >> parallel (Function <T , R > mapper , Collector <R , ?, RR > collector , Executor executor ) {
46
48
return AsyncParallelCollector .collectingWithCollector (collector , mapper , executor );
47
49
}
@@ -98,7 +100,9 @@ private ParallelCollectors() {
98
100
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
99
101
*
100
102
* @since 2.0.0
103
+ * @deprecated use {@link ParallelCollectors#parallel(Function, Executor, int)}
101
104
*/
105
+ @ Deprecated // for removal in 3.0.0
102
106
public static <T , R > Collector <T , ?, CompletableFuture <Stream <R >>> parallel (Function <T , R > mapper , Executor executor ) {
103
107
return AsyncParallelCollector .collectingToStream (mapper , executor );
104
108
}
@@ -162,7 +166,9 @@ private ParallelCollectors() {
162
166
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
163
167
*
164
168
* @since 2.0.0
169
+ * @deprecated use {@link ParallelCollectors#parallelToStream(Function, Executor, int)}
165
170
*/
171
+ @ Deprecated // for removal in 3.0.0
166
172
public static <T , R > Collector <T , ?, Stream <R >> parallelToStream (Function <T , R > mapper , Executor executor ) {
167
173
return ParallelStreamCollector .streaming (mapper , executor );
168
174
}
@@ -222,7 +228,9 @@ private ParallelCollectors() {
222
228
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
223
229
*
224
230
* @since 2.0.0
231
+ * @deprecated use {@link ParallelCollectors#parallelToOrderedStream(Function, Executor, int)}
225
232
*/
233
+ @ Deprecated // for removal in 3.0.0
226
234
public static <T , R > Collector <T , ?, Stream <R >> parallelToOrderedStream (Function <T , R > mapper , Executor executor ) {
227
235
return ParallelStreamCollector .streamingOrdered (mapper , executor );
228
236
}
0 commit comments