|
19 | 19 | import java.util.stream.*; |
20 | 20 |
|
21 | 21 | import io.reactivex.rxjava4.annotations.*; |
| 22 | +import io.reactivex.rxjava4.core.docs.FlowableDocBasic; |
22 | 23 | import io.reactivex.rxjava4.disposables.*; |
23 | 24 | import io.reactivex.rxjava4.exceptions.*; |
24 | 25 | import io.reactivex.rxjava4.flowables.*; |
|
153 | 154 | * @see ParallelFlowable |
154 | 155 | * @see io.reactivex.rxjava4.subscribers.DisposableSubscriber |
155 | 156 | */ |
156 | | -public abstract class Flowable<@NonNull T> implements Publisher<T> { |
| 157 | +public abstract non-sealed class Flowable<@NonNull T> implements Publisher<T>, |
| 158 | +FlowableDocBasic<T> |
| 159 | +{ |
157 | 160 | /** The default buffer size. */ |
158 | 161 | static final int BUFFER_SIZE; |
159 | 162 | static { |
@@ -10146,29 +10149,12 @@ public final Single<T> elementAtOrError(long index) { |
10146 | 10149 | return RxJavaPlugins.onAssembly(new FlowableElementAtSingle<>(this, index, null)); |
10147 | 10150 | } |
10148 | 10151 |
|
10149 | | - /** |
10150 | | - * Filters items emitted by the current {@code Flowable} by only emitting those that satisfy a specified predicate. |
10151 | | - * <p> |
10152 | | - * <img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/filter.v3.png" alt=""> |
10153 | | - * <dl> |
10154 | | - * <dt><b>Backpressure:</b></dt> |
10155 | | - * <dd>The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure |
10156 | | - * behavior.</dd> |
10157 | | - * <dt><b>Scheduler:</b></dt> |
10158 | | - * <dd>{@code filter} does not operate by default on a particular {@link Scheduler}.</dd> |
10159 | | - * </dl> |
10160 | | - * |
10161 | | - * @param predicate |
10162 | | - * a function that evaluates each item emitted by the current {@code Flowable}, returning {@code true} |
10163 | | - * if it passes the filter |
10164 | | - * @return the new {@code Flowable} instance |
10165 | | - * @throws NullPointerException if {@code predicate} is {@code null} |
10166 | | - * @see <a href="http://reactivex.io/documentation/operators/filter.html">ReactiveX operators documentation: Filter</a> |
10167 | | - */ |
| 10152 | + /** {@inheritDoc} */ |
10168 | 10153 | @CheckReturnValue |
10169 | 10154 | @NonNull |
10170 | 10155 | @BackpressureSupport(BackpressureKind.PASS_THROUGH) |
10171 | 10156 | @SchedulerSupport(SchedulerSupport.NONE) |
| 10157 | + @Override |
10172 | 10158 | public final Flowable<T> filter(@NonNull Predicate<? super T> predicate) { |
10173 | 10159 | Objects.requireNonNull(predicate, "predicate is null"); |
10174 | 10160 | return RxJavaPlugins.onAssembly(new FlowableFilter<>(this, predicate)); |
@@ -12038,31 +12024,12 @@ public final Single<T> lastOrError() { |
12038 | 12024 | return RxJavaPlugins.onAssembly(new FlowableLift<>(this, lifter)); |
12039 | 12025 | } |
12040 | 12026 |
|
12041 | | - /** |
12042 | | - * Returns a {@code Flowable} that applies a specified function to each item emitted by the current {@code Flowable} and |
12043 | | - * emits the results of these function applications. |
12044 | | - * <p> |
12045 | | - * <img width="640" height="305" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/map.v3.png" alt=""> |
12046 | | - * <dl> |
12047 | | - * <dt><b>Backpressure:</b></dt> |
12048 | | - * <dd>The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure |
12049 | | - * behavior.</dd> |
12050 | | - * <dt><b>Scheduler:</b></dt> |
12051 | | - * <dd>{@code map} does not operate by default on a particular {@link Scheduler}.</dd> |
12052 | | - * </dl> |
12053 | | - * |
12054 | | - * @param <R> the output type |
12055 | | - * @param mapper |
12056 | | - * a function to apply to each item emitted by the current {@code Flowable} |
12057 | | - * @return the new {@code Flowable} instance |
12058 | | - * @throws NullPointerException if {@code mapper} is {@code null} |
12059 | | - * @see <a href="http://reactivex.io/documentation/operators/map.html">ReactiveX operators documentation: Map</a> |
12060 | | - * @see #mapOptional(Function) |
12061 | | - */ |
| 12027 | + /** {@inheritDoc} */ |
12062 | 12028 | @CheckReturnValue |
12063 | 12029 | @NonNull |
12064 | 12030 | @BackpressureSupport(BackpressureKind.PASS_THROUGH) |
12065 | 12031 | @SchedulerSupport(SchedulerSupport.NONE) |
| 12032 | + @Override |
12066 | 12033 | public final <@NonNull R> Flowable<R> map(@NonNull Function<? super T, ? extends R> mapper) { |
12067 | 12034 | Objects.requireNonNull(mapper, "mapper is null"); |
12068 | 12035 | return RxJavaPlugins.onAssembly(new FlowableMap<>(this, mapper)); |
|
0 commit comments