|
24 | 24 | */ |
25 | 25 | package java.util.stream; |
26 | 26 |
|
27 | | -import jdk.internal.javac.PreviewFeature; |
28 | 27 | import jdk.internal.vm.annotation.ForceInline; |
29 | 28 |
|
30 | 29 | import java.util.*; |
|
195 | 194 | * @param <A> the potentially mutable state type of the gatherer operation |
196 | 195 | * (often hidden as an implementation detail) |
197 | 196 | * @param <R> the type of output elements from the gatherer operation |
198 | | - * @since 22 |
| 197 | + * @since 24 |
199 | 198 | */ |
200 | | -@PreviewFeature(feature = PreviewFeature.Feature.STREAM_GATHERERS) |
201 | 199 | public interface Gatherer<T, A, R> { |
202 | 200 | /** |
203 | 201 | * A function that produces an instance of the intermediate state used for |
@@ -481,10 +479,9 @@ static <T, A, R> Gatherer<T, A, R> of( |
481 | 479 | * A Downstream object is the next stage in a pipeline of operations, |
482 | 480 | * to which elements can be sent. |
483 | 481 | * @param <T> the type of elements this downstream accepts |
484 | | - * @since 22 |
| 482 | + * @since 24 |
485 | 483 | */ |
486 | 484 | @FunctionalInterface |
487 | | - @PreviewFeature(feature = PreviewFeature.Feature.STREAM_GATHERERS) |
488 | 485 | interface Downstream<T> { |
489 | 486 |
|
490 | 487 | /** |
@@ -524,10 +521,9 @@ interface Downstream<T> { |
524 | 521 | * @param <A> the type of state used by this integrator |
525 | 522 | * @param <T> the type of elements this integrator consumes |
526 | 523 | * @param <R> the type of results this integrator can produce |
527 | | - * @since 22 |
| 524 | + * @since 24 |
528 | 525 | */ |
529 | 526 | @FunctionalInterface |
530 | | - @PreviewFeature(feature = PreviewFeature.Feature.STREAM_GATHERERS) |
531 | 527 | interface Integrator<A, T, R> { |
532 | 528 | /** |
533 | 529 | * Performs an action given: the current state, the next element, and |
@@ -584,10 +580,9 @@ static <A, T, R> Greedy<A, T, R> ofGreedy(Greedy<A, T, R> greedy) { |
584 | 580 | * @param <A> the type of state used by this integrator |
585 | 581 | * @param <T> the type of elements this greedy integrator receives |
586 | 582 | * @param <R> the type of results this greedy integrator can produce |
587 | | - * @since 22 |
| 583 | + * @since 24 |
588 | 584 | */ |
589 | 585 | @FunctionalInterface |
590 | | - @PreviewFeature(feature = PreviewFeature.Feature.STREAM_GATHERERS) |
591 | 586 | interface Greedy<A, T, R> extends Integrator<A, T, R> { } |
592 | 587 | } |
593 | 588 | } |
0 commit comments