From e619af5a6b147ba3bbd4a10f46675ee0af31ab7e Mon Sep 17 00:00:00 2001 From: akarnokd Date: Fri, 10 Jan 2020 13:06:39 +0100 Subject: [PATCH 1/3] 3.x: Cleanup javadoc for parameter validation all around --- .../reactivex/rxjava3/core/Completable.java | 8 +- .../io/reactivex/rxjava3/core/Flowable.java | 208 +++++++++- .../java/io/reactivex/rxjava3/core/Maybe.java | 59 ++- .../io/reactivex/rxjava3/core/Observable.java | 70 +++- .../io/reactivex/rxjava3/core/Scheduler.java | 11 + .../io/reactivex/rxjava3/core/Single.java | 23 ++ .../disposables/CompositeDisposable.java | 58 +-- .../flowables/ConnectableFlowable.java | 6 + .../observables/ConnectableObservable.java | 8 +- .../rxjava3/parallel/ParallelFlowable.java | 383 ++++++++++-------- .../rxjava3/processors/ReplayProcessor.java | 27 +- .../rxjava3/processors/UnicastProcessor.java | 18 +- .../rxjava3/subjects/BehaviorSubject.java | 20 +- .../rxjava3/subjects/ReplaySubject.java | 27 +- .../rxjava3/subjects/UnicastSubject.java | 22 +- .../operators/flowable/FlowableSkipTest.java | 2 +- .../observable/ObservableSkipTest.java | 2 +- .../validators/JavadocCodesAndLinks.java | 12 +- .../ParamValidationCheckerTest.java | 16 +- .../validators/ParamValidationNaming.java | 147 ++++++- 20 files changed, 835 insertions(+), 292 deletions(-) diff --git a/src/main/java/io/reactivex/rxjava3/core/Completable.java b/src/main/java/io/reactivex/rxjava3/core/Completable.java index a51bb7399f..27ff402b91 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Completable.java +++ b/src/main/java/io/reactivex/rxjava3/core/Completable.java @@ -235,7 +235,7 @@ public static Completable concat(@NonNull Iterable * * @param sources the sources to concatenate * @return the {@code Completable} instance which completes only when all sources complete - * @throws NullPointerException if sources is {@code null} + * @throws NullPointerException if {@code sources} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -2034,7 +2034,7 @@ public final Completable repeat() { * * @param times the number of times the re-subscription should happen * @return the new {@code Completable} instance - * @throws IllegalArgumentException if times is less than zero + * @throws IllegalArgumentException if {@code times} is negative */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -2076,7 +2076,7 @@ public final Completable repeatUntil(@NonNull BooleanSupplier stop) { * this {@code Completable} and returns a {@code Publisher} that emits items for repeating or completes to indicate the * repetition should stop * @return the new {@code Completable} instance - * @throws NullPointerException if {@code stop} is {@code null} + * @throws NullPointerException if {@code handler} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -2619,7 +2619,7 @@ public final Completable timeout(long timeout, @NonNull TimeUnit unit, @NonNull * @param other the other {@code Completable} instance to switch to in case of a timeout, * if {@code null} a {@link TimeoutException} is emitted instead * @return the new {@code Completable} instance - * @throws NullPointerException if {@code unit} or {@code scheduler} + * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code other} is {@code null} */ @CheckReturnValue @NonNull diff --git a/src/main/java/io/reactivex/rxjava3/core/Flowable.java b/src/main/java/io/reactivex/rxjava3/core/Flowable.java index f11415e0de..a1881c85da 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Flowable.java +++ b/src/main/java/io/reactivex/rxjava3/core/Flowable.java @@ -176,6 +176,7 @@ public abstract class Flowable implements Publisher { * occur in the same order as in this {@code Iterable}. * @return a {@code Flowable} that emits the same sequence as whichever of the source {@code Publisher}s first * emitted an item or sent a termination notification + * @throws NullPointerException if {@code sources} is {@code null} * @see ReactiveX operators documentation: Amb */ @CheckReturnValue @@ -206,6 +207,7 @@ public static Flowable amb(@NonNull IterableReactiveX operators documentation: Amb */ @CheckReturnValue @@ -271,6 +273,7 @@ public static int bufferSize() { * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -318,6 +321,8 @@ public static int bufferSize() { * the internal buffer size and prefetch amount applied to every source {@code Flowable} * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -369,6 +374,7 @@ public static Flowable combineLatestArray(@NonNull PublisherReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -417,6 +423,8 @@ public static Flowable combineLatestArray(@NonNull PublisherReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -466,6 +474,7 @@ public static Flowable combineLatest(@NonNull IterableReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -515,6 +524,8 @@ public static Flowable combineLatest(@NonNull IterableReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -568,6 +579,7 @@ public static Flowable combineLatest(@NonNull IterableReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -617,6 +629,8 @@ public static Flowable combineLatest(@NonNull IterableReactiveX operators documentation: CombineLatest */ @SchedulerSupport(SchedulerSupport.NONE) @@ -661,6 +675,7 @@ public static Flowable combineLatestDelayError(@NonNull IterableReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -710,6 +725,7 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -764,6 +780,8 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -822,6 +840,8 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -885,6 +905,8 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -952,6 +974,9 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -1024,6 +1049,9 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7}, {@code source8} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -1100,6 +1128,10 @@ public static Flowable combineLatest( * the aggregation function used to combine the items emitted by the source {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of combining the items emitted by the source * {@code Publisher}s by means of the given aggregation function + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7}, {@code source8}, {@code source9} + * or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @SuppressWarnings("unchecked") @@ -1144,6 +1176,7 @@ public static Flowable combineLatest( * @param the common value type of the sources * @param sources the {@code Iterable} sequence of {@code Publisher}s * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "unchecked", "rawtypes" }) @CheckReturnValue @@ -1176,6 +1209,7 @@ public static Flowable concat(@NonNull IterableReactiveX operators documentation: Concat */ @CheckReturnValue @@ -1208,6 +1242,8 @@ public static Flowable concat(@NonNull PublisherReactiveX operators documentation: Concat */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -1241,6 +1277,7 @@ public static Flowable concat(@NonNull PublisherReactiveX operators documentation: Concat */ @CheckReturnValue @@ -1277,6 +1314,7 @@ public static Flowable concat(@NonNull Publisher source1, @N * a {@code Publisher} to be concatenated * @return a {@code Flowable} that emits items emitted by the three source {@code Publisher}s, one after the other, * without interleaving them + * @throws NullPointerException if {@code source1}, {@code source2} or {@code source3} is {@code null} * @see ReactiveX operators documentation: Concat */ @CheckReturnValue @@ -1318,6 +1356,7 @@ public static Flowable concat( * a {@code Publisher} to be concatenated * @return a {@code Flowable} that emits items emitted by the four source {@code Publisher}s, one after the other, * without interleaving them + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code source4} is {@code null} * @see ReactiveX operators documentation: Concat */ @CheckReturnValue @@ -1425,6 +1464,7 @@ public static Flowable concatArrayDelayError(@NonNull Publisher the value type * @param sources an array of {@code Publisher}s that need to be eagerly concatenated * @return the new {@code Publisher} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -1459,6 +1499,8 @@ public static Flowable concatArrayEager(@NonNull Publisher.. * is interpreted as an indication to subscribe to all sources at once * @param prefetch the number of elements to prefetch from each {@code Publisher} source * @return the new {@code Publisher} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} or {@code prefetch} is non-positive * @since 2.0 */ @CheckReturnValue @@ -1495,6 +1537,7 @@ public static Flowable concatArrayEager(int maxConcurrency, int prefetch, * @param the value type * @param sources an array of {@code Publisher}s that need to be eagerly concatenated * @return the new {@code Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.2.1 - experimental */ @CheckReturnValue @@ -1530,6 +1573,8 @@ public static Flowable concatArrayEagerDelayError(@NonNull Publisher Flowable concatArrayEagerDelayError(int maxConcurrency, int * @param the common element base type * @param sources the {@code Iterable} sequence of {@code Publisher}s * @return the new {@code Publisher} with the concatenating behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "unchecked", "rawtypes" }) @CheckReturnValue @@ -1584,6 +1630,7 @@ public static Flowable concatDelayError(@NonNull Iterable the common element base type * @param sources the {@code Publisher} sequence of {@code Publisher}s * @return the new {@code Publisher} with the concatenating behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @@ -1610,6 +1657,8 @@ public static Flowable concatDelayError(@NonNull Publisher Flowable concatDelayError(@NonNull Publisher the value type * @param sources a sequence of {@code Publisher}s that need to be eagerly concatenated * @return the new {@code Publisher} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -1667,6 +1717,8 @@ public static Flowable concatEager(@NonNull Publisher Flowable concatEager(@NonNull Publisher the value type * @param sources a sequence of {@code Publisher}s that need to be eagerly concatenated * @return the new {@code Publisher} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -1728,6 +1781,8 @@ public static Flowable concatEager(@NonNull Iterable Flowable concatEager(@NonNull Iterable Flowable create(@NonNull FlowableOnSubscribe source, @No * the type of the items emitted by the {@code Publisher} * @return a {@code Flowable} whose {@code Subscriber}s' subscriptions trigger an invocation of the given * {@code Publisher} factory function + * @throws NullPointerException if {@code supplier} is {@code null} * @see ReactiveX operators documentation: Defer */ @CheckReturnValue @@ -1886,6 +1943,7 @@ public static Flowable empty() { * the type of the items (ostensibly) emitted by the {@link Publisher} * @return a {@code Flowable} that invokes the {@code Subscriber}'s {@link Subscriber#onError onError} method when * the {@code Subscriber} subscribes to it + * @throws NullPointerException if {@code supplier} is {@code null} * @see ReactiveX operators documentation: Throw */ @CheckReturnValue @@ -1915,6 +1973,7 @@ public static Flowable error(@NonNull Supplier suppl * the type of the items (ostensibly) emitted by the {@link Publisher} * @return a {@code Flowable} that invokes the {@code Subscriber}'s {@link Subscriber#onError onError} method when * the {@code Subscriber} subscribes to it + * @throws NullPointerException if {@code throwable} is {@code null} * @see ReactiveX operators documentation: Throw */ @CheckReturnValue @@ -1943,6 +2002,7 @@ public static Flowable error(@NonNull Throwable throwable) { * @param * the type of items in the array and the type of items to be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits each item in the source array + * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: From */ @CheckReturnValue @@ -1989,6 +2049,7 @@ public static Flowable error(@NonNull Throwable throwable) { * @param * the type of the item emitted by the {@code Publisher} * @return a {@code Flowable} whose {@code Subscriber}s' subscriptions trigger an invocation of the given function + * @throws NullPointerException if {@code callable} is {@code null} * @see #defer(Supplier) * @see #fromSupplier(Supplier) * @since 2.0 @@ -2031,6 +2092,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the type of object that the {@code Future} returns, and also the type of item to be emitted by * the resulting {@code Publisher} * @return a {@code Flowable} that emits the item from the source {@code Future} + * @throws NullPointerException if {@code future} is {@code null} * @see ReactiveX operators documentation: From * @see #fromCompletionStage(CompletionStage) */ @@ -2076,6 +2138,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the type of object that the {@code Future} returns, and also the type of item to be emitted by * the resulting {@code Publisher} * @return a {@code Flowable} that emits the item from the source {@code Future} + * @throws NullPointerException if {@code future} or {@code unit} is {@code null} * @see ReactiveX operators documentation: From * @see #fromCompletionStage(CompletionStage) */ @@ -2107,6 +2170,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the type of items in the {@code Iterable} sequence and the type of items to be emitted by the * resulting {@code Publisher} * @return a {@code Flowable} that emits each item in the source {@code Iterable} sequence + * @throws NullPointerException if {@code source} is {@code null} * @see ReactiveX operators documentation: From * @see #fromStream(Stream) */ @@ -2188,6 +2252,7 @@ public static Flowable fromPublisher(@NonNull Publisher sour * @param * the type of the item emitted by the {@code Publisher} * @return a {@code Flowable} whose {@code Subscriber}s' subscriptions trigger an invocation of the given function + * @throws NullPointerException if {@code supplier} is {@code null} * @see #defer(Supplier) * @see #fromCallable(Callable) * @since 3.0.0 @@ -2221,6 +2286,7 @@ public static Flowable fromPublisher(@NonNull Publisher sour * {@code onComplete} to signal a value or a terminal event. Signaling multiple {@code onNext} * in a call will make the operator signal {@link IllegalStateException}. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code generator} is {@code null} */ @CheckReturnValue @NonNull @@ -2255,6 +2321,7 @@ public static Flowable generate(@NonNull Consumer<@NonNull Emitter> ge * {@code onComplete} to signal a value or a terminal event. Signaling multiple {@code onNext} * in a call will make the operator signal {@link IllegalStateException}. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code initialState} or {@code generator} is {@code null} */ @CheckReturnValue @NonNull @@ -2290,6 +2357,7 @@ public static Flowable generate(@NonNull Supplier initialState, @No * @param disposeState the {@code Consumer} that is called with the current state when the generator * terminates the sequence or it gets canceled * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code initialState}, {@code generator} or {@code disposeState} is {@code null} */ @CheckReturnValue @NonNull @@ -2324,6 +2392,7 @@ public static Flowable generate(@NonNull Supplier initialState, @No * the next invocation. Signaling multiple {@code onNext} * in a call will make the operator signal {@link IllegalStateException}. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code initialState} or {@code generator} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @@ -2358,6 +2427,7 @@ public static Flowable generate(@NonNull Supplier initialState, @No * @param disposeState the {@link Consumer} that is called with the current state when the generator * terminates the sequence or it gets canceled * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code initialState}, {@code generator} or {@code disposeState} is {@code null} */ @CheckReturnValue @NonNull @@ -2392,6 +2462,7 @@ public static Flowable generate(@NonNull Supplier initialState, @No * the time unit for both {@code initialDelay} and {@code period} * @return a {@code Flowable} that emits a 0L after the {@code initialDelay} and ever-increasing numbers after * each {@code period} of time thereafter + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Interval * @since 1.0.12 */ @@ -2427,6 +2498,7 @@ public static Flowable interval(long initialDelay, long period, @NonNull T * the {@code Scheduler} on which the waiting happens and items are emitted * @return a {@code Flowable} that emits a 0L after the {@code initialDelay} and ever-increasing numbers after * each {@code period} of time thereafter, while running on the given {@code Scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Interval * @since 1.0.12 */ @@ -2457,6 +2529,7 @@ public static Flowable interval(long initialDelay, long period, @NonNull T * @param unit * time units to use for the interval size * @return a {@code Flowable} that emits a sequential number each time interval + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Interval */ @CheckReturnValue @@ -2488,6 +2561,7 @@ public static Flowable interval(long period, @NonNull TimeUnit unit) { * @param scheduler * the {@code Scheduler} to use for scheduling the items * @return a {@code Flowable} that emits a sequential number each time interval + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Interval */ @CheckReturnValue @@ -2514,6 +2588,10 @@ public static Flowable interval(long period, @NonNull TimeUnit unit, @NonN * @param period the period between subsequent values * @param unit the unit of measure of the {@code initialDelay} and {@code period} amounts * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException + * if {@code count} is less than zero, or if {@code start} + {@code count} − 1 exceeds + * {@link Long#MAX_VALUE} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.ERROR) @@ -2540,6 +2618,7 @@ public static Flowable intervalRange(long start, long count, long initialD * @param unit the unit of measure of the {@code initialDelay} and {@code period} amounts * @param scheduler the target {@code Scheduler} where the values and terminal signals will be emitted * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException * if {@code count} is less than zero, or if {@code start} + {@code count} − 1 exceeds * {@link Long#MAX_VALUE} @@ -2590,6 +2669,7 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of that item * @return a {@code Flowable} that emits {@code value} as a single item and then completes + * @throws NullPointerException if {@code item} is {@code null} * @see ReactiveX operators documentation: Just * @see #just(Object, Object) * @see #fromCallable(Callable) @@ -2623,6 +2703,7 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1} or {@code item2} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2656,6 +2737,7 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2} or {@code item3} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2692,6 +2774,8 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * or {@code item4} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2731,6 +2815,8 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4} or {@code item5} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2773,6 +2859,8 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4}, {@code item5} or {@code item6} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2818,6 +2906,9 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4}, {@code item5}, {@code item6} + * or {@code item7} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2866,6 +2957,9 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4}, {@code item5}, {@code item6}, + * {@code item7} or {@code item8} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2917,6 +3011,9 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4}, {@code item5}, {@code item6}, + * {@code item7}, {@code item8} or {@code item9} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -2971,6 +3068,10 @@ public static Flowable intervalRange(long start, long count, long initialD * @param * the type of these items * @return a {@code Flowable} that emits each item + * @throws NullPointerException if {@code item1}, {@code item2}, {@code item3}, + * {@code item4}, {@code item5}, {@code item6}, + * {@code item7}, {@code item8}, {@code item9}, + * or {@code item10} is {@code null} * @see ReactiveX operators documentation: Just */ @CheckReturnValue @@ -3030,8 +3131,9 @@ public static Flowable intervalRange(long start, long count, long initialD * the number of items to prefetch from each inner {@code Publisher} * @return a {@code Flowable} that emits items that are the result of flattening the items emitted by the * {@code Publisher}s in the {@code Iterable} + * @throws NullPointerException if {@code sources} is {@code null} * @throws IllegalArgumentException - * if {@code maxConcurrency} is less than or equal to 0 + * if {@code maxConcurrency} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Iterable, int, int) */ @@ -3082,8 +3184,9 @@ public static Flowable merge(@NonNull IterableReactiveX operators documentation: Merge * @see #mergeArrayDelayError(int, int, Publisher...) */ @@ -3130,6 +3233,7 @@ public static Flowable mergeArray(int maxConcurrency, int bufferSize, @No * the {@code Iterable} of {@code Publisher}s * @return a {@code Flowable} that emits items that are the result of flattening the items emitted by the * {@code Publisher}s in the {@code Iterable} + * @throws NullPointerException if {@code sources} is {@code null} * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Iterable) */ @@ -3178,6 +3282,7 @@ public static Flowable merge(@NonNull IterableReactiveX operators documentation: Merge @@ -3227,6 +3332,7 @@ public static Flowable merge(@NonNull IterableReactiveX operators documentation: Merge * @see #mergeDelayError(Publisher) */ @@ -3275,6 +3381,7 @@ public static Flowable merge(@NonNull PublisherReactiveX operators documentation: Merge @@ -3322,6 +3429,7 @@ public static Flowable merge(@NonNull PublisherReactiveX operators documentation: Merge * @see #mergeArrayDelayError(Publisher...) */ @@ -3369,6 +3477,7 @@ public static Flowable mergeArray(@NonNull Publisher... sour * @param source2 * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code source1} or {@code source2} is {@code null} * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Publisher, Publisher) */ @@ -3419,6 +3528,7 @@ public static Flowable merge(@NonNull Publisher source1, @No * @param source3 * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code source1}, {@code source2} or {@code source3} is {@code null} * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Publisher, Publisher, Publisher) */ @@ -3472,6 +3582,7 @@ public static Flowable merge(@NonNull Publisher source1, @No * @param source4 * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code source4} is {@code null} * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Publisher, Publisher, Publisher, Publisher) */ @@ -3715,6 +3826,8 @@ public static Flowable mergeDelayError(@NonNull PublisherReactiveX operators documentation: Merge * @since 2.0 */ @@ -3753,6 +3866,7 @@ public static Flowable mergeDelayError(@NonNull PublisherReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -3792,6 +3906,7 @@ public static Flowable mergeArrayDelayError(@NonNull PublisherReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -3835,6 +3950,7 @@ public static Flowable mergeDelayError(@NonNull Publisher so * @param source3 * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items that are emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code source1}, {@code source2} or {@code source3} is {@code null} * @see ReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -3881,6 +3997,7 @@ public static Flowable mergeDelayError(@NonNull Publisher so * @param source4 * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items that are emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code source4} is {@code null} * @see ReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -4032,6 +4149,7 @@ public static Flowable rangeLong(long start, long count) { * @param * the type of items emitted by each {@code Publisher} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same + * @throws NullPointerException if {@code source1} or {@code source2} is {@code null} * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -4066,6 +4184,7 @@ public static Single sequenceEqual(@NonNull Publisher * the type of items emitted by each {@code Publisher} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two {@code Publisher} sequences * are the same according to the specified function + * @throws NullPointerException if {@code source1}, {@code source2} or {@code isEqual} is {@code null} * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -4103,6 +4222,8 @@ public static Single sequenceEqual(@NonNull Publisher * the type of items emitted by each {@code Publisher} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two {@code Publisher} sequences * are the same according to the specified function + * @throws NullPointerException if {@code source1}, {@code source2} or {@code isEqual} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -4360,6 +4481,7 @@ public static Flowable timer(long delay, @NonNull TimeUnit unit) { * the {@code Scheduler} to use for scheduling the item * @return a {@code Flowable} that emits {@code 0L} after a specified delay, on a specified {@code Scheduler}, and then * completes + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timer */ @CheckReturnValue @@ -4387,6 +4509,7 @@ public static Flowable timer(long delay, @NonNull TimeUnit unit, @NonNull * @param the value type emitted * @param onSubscribe the {@code Publisher} instance to wrap * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code onSubscribe} is {@code null} * @throws IllegalArgumentException if {@code onSubscribe} is a subclass of {@code Flowable}; such * instances don't need conversion and is possibly a port remnant from 1.x or one should use {@link #hide()} * instead. @@ -4426,6 +4549,7 @@ public static Flowable unsafeCreate(@NonNull Publisher onSubscribe) { * @param resourceDisposer * the function that will dispose of the resource * @return the {@code Publisher} whose lifetime controls the lifetime of the dependent resource object + * @throws NullPointerException if {@code resourceSupplier}, {@code sourceSupplier} or {@code resourceDisposer} is {@code null} * @see ReactiveX operators documentation: Using */ @CheckReturnValue @@ -4467,6 +4591,7 @@ public static Flowable using( * If {@code false} the resource disposal will happen either on a {@code cancel()} call after the upstream is disposed * or just after the emission of a terminal event ({@code onComplete} or {@code onError}). * @return the {@code Publisher} whose lifetime controls the lifetime of the dependent resource object + * @throws NullPointerException if {@code resourceSupplier}, {@code sourceSupplier} or {@code resourceDisposer} is {@code null} * @see ReactiveX operators documentation: Using * @since 2.0 */ @@ -4527,6 +4652,7 @@ public static Flowable using( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code sources} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4586,6 +4712,8 @@ public static Flowable zip(@NonNull Iterable the common source value type * @param the zipped result type * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code sources} or {@code zipper} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4647,6 +4775,7 @@ public static Flowable zip(@NonNull IterableReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4709,6 +4838,7 @@ public static Flowable zip( * in an item that will be emitted by the resulting {@code Publisher} * @param delayError delay errors from any of the source {@code Publisher}s till the other terminates * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4772,6 +4902,7 @@ public static Flowable zip( * @param delayError delay errors from any of the source {@code Publisher}s till the other terminates * @param bufferSize the number of elements to prefetch from each source {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4837,6 +4968,7 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4906,6 +5038,8 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -4980,6 +5114,8 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5057,6 +5193,9 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6} + * or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5138,6 +5277,9 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5224,6 +5366,9 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7}, {@code source8} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5314,6 +5459,10 @@ public static Flowable zip( * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in * an item that will be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the zipped results + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4}, {@code source5}, {@code source6}, + * {@code source7}, {@code source8}, {@code source9} + * or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5427,6 +5576,7 @@ public static Flowable zipArray(@NonNull FunctionReactiveX operators documentation: All */ @CheckReturnValue @@ -5456,6 +5606,7 @@ public final Single all(@NonNull Predicate predicate) { * to the current {@code Publisher}. * @return a {@code Flowable} that emits the same sequence as whichever of the source {@code Publisher}s first * emitted an item or sent a termination notification + * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: Amb */ @CheckReturnValue @@ -5488,6 +5639,7 @@ public final Flowable ambWith(@NonNull Publisher other) { * the condition to test items emitted by the source {@code Publisher} * @return a {@code Single} that emits a {@link Boolean} that indicates whether any item emitted by the source * {@code Publisher} satisfies the {@code predicate} + * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: Contains */ @CheckReturnValue @@ -5552,6 +5704,7 @@ public final T blockingFirst() { * a default value to return if this {@code Flowable} emits no items * @return the first item emitted by this {@code Flowable}, or the default value if it emits no * items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX documentation: First */ @CheckReturnValue @@ -5559,6 +5712,7 @@ public final T blockingFirst() { @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final T blockingFirst(@NonNull T defaultItem) { + Objects.requireNonNull(defaultItem, "defaultItem is null"); BlockingFirstSubscriber s = new BlockingFirstSubscriber<>(); subscribe(s); T v = s.blockingGet(); @@ -5696,6 +5850,7 @@ public final Iterable blockingIterable() { * * @param bufferSize the number of items to prefetch from the current {@code Flowable} * @return an {@code Iterable} version of this {@code Flowable} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX documentation: To */ @CheckReturnValue @@ -5764,6 +5919,7 @@ public final T blockingLast() { * a default value to return if this {@code Flowable} emits no items * @return the last item emitted by the {@code Flowable}, or the default value if it emits no * items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX documentation: Last */ @CheckReturnValue @@ -5771,6 +5927,7 @@ public final T blockingLast() { @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final T blockingLast(@NonNull T defaultItem) { + Objects.requireNonNull(defaultItem, "defaultItem is null"); BlockingLastSubscriber s = new BlockingLastSubscriber<>(); subscribe(s); T v = s.blockingGet(); @@ -6257,6 +6414,8 @@ public final Flowable> buffer(int count, int skip) { * as the buffer * @return a {@code Flowable} that emits buffers for every {@code skip} item from the source {@code Publisher} and * containing at most {@code count} items + * @throws NullPointerException if {@code bufferSupplier} is {@code null} + * @throws IllegalArgumentException if {@code count} or {@code skip} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -7153,6 +7312,7 @@ public final Flowable concatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #concatMap(Function, int, Scheduler) */ @@ -7204,6 +7364,7 @@ public final Flowable concatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 3.0.0 * @see #concatMap(Function, int) @@ -7269,6 +7430,7 @@ public final Completable concatMapCompletable(@NonNull Function Flowable concatMapDelayError(@NonNull Function Flowable concatMapDelayError(@NonNull Function Flowable concatMapEager(@NonNull Function Flowable concatMapEagerDelayError(@NonNull Function Flowable concatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -7768,6 +7936,7 @@ public final Flowable concatMapMaybe(@NonNull Function Flowable concatMapMaybeDelayError(@NonNull Function Flowable concatMapSingle(@NonNull Function Flowable concatMapSingleDelayError(@NonNull Function Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10053,6 +10226,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10209,6 +10383,7 @@ public final Flowable flatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10839,6 +11014,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy */ @CheckReturnValue @@ -10958,6 +11134,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy * * @since 2.2 @@ -11693,6 +11870,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * @param bufferSize the size of the buffer. * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples * @see #subscribeOn @@ -12358,6 +12536,7 @@ public final ParallelFlowable parallel(int parallelism) { * @param parallelism the number of 'rails' to use * @param prefetch the number of items each 'rail' should prefetch * @return the new {@link ParallelFlowable} instance + * @throws IllegalArgumentException if {@code parallelism} or {@code prefetch} is non-positive * @since 2.2 */ @BackpressureSupport(BackpressureKind.FULL) @@ -12455,6 +12634,7 @@ public final Flowable publish(@NonNull Function, ? ex * @param prefetch * the number of elements to prefetch from the current {@code Flowable} * @return a {@code Flowable} that emits the results of invoking the selector on the items emitted by a {@code ConnectableFlowable} that shares a single subscription to the underlying sequence + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ReactiveX operators documentation: Publish */ @CheckReturnValue @@ -12486,6 +12666,7 @@ public final Flowable publish(@NonNull Function, ? ex * the number of elements to prefetch from the current {@code Flowable} * @return a {@code ConnectableFlowable} that upon connection causes the source {@code Publisher} to emit items * to its {@code Subscriber}s + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Publish */ @CheckReturnValue @@ -12879,6 +13060,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} * replaying no more than {@code bufferSize} items + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(Function, int, boolean) */ @@ -12923,6 +13105,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} * replaying no more than {@code bufferSize} items + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13236,6 +13419,7 @@ public final Flowable replay(@NonNull Function, ? ext * the buffer size that limits the number of items that can be replayed * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays at most {@code bufferSize} items emitted by that {@code Publisher} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(int, boolean) */ @@ -13274,6 +13458,7 @@ public final ConnectableFlowable replay(int bufferSize) { * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays at most {@code bufferSize} items emitted by that {@code Publisher} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @since 3.0.0 */ @@ -13369,7 +13554,6 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T @SchedulerSupport(SchedulerSupport.CUSTOM) @NonNull public final ConnectableFlowable replay(int bufferSize, long time, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) { - ObjectHelper.verifyPositive(bufferSize, "bufferSize"); Objects.requireNonNull(unit, "unit is null"); Objects.requireNonNull(scheduler, "scheduler is null"); ObjectHelper.verifyPositive(bufferSize, "bufferSize"); @@ -13420,7 +13604,6 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T @SchedulerSupport(SchedulerSupport.CUSTOM) @NonNull public final ConnectableFlowable replay(int bufferSize, long time, @NonNull TimeUnit unit, @NonNull Scheduler scheduler, boolean eagerTruncate) { - ObjectHelper.verifyPositive(bufferSize, "bufferSize"); Objects.requireNonNull(unit, "unit is null"); Objects.requireNonNull(scheduler, "scheduler is null"); ObjectHelper.verifyPositive(bufferSize, "bufferSize"); @@ -14319,6 +14502,7 @@ public final Single singleOrError() { * the number of items to skip * @return a {@code Flowable} that is identical to the source {@code Publisher} except that it does not emit the first * {@code count} items that the source {@code Publisher} emits + * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: Skip */ @CheckReturnValue @@ -14326,7 +14510,10 @@ public final Single singleOrError() { @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final Flowable skip(long count) { - if (count <= 0L) { + if (count < 0) { + throw new IllegalArgumentException("count >= 0 expected but it was " + count); + } + if (count == 0) { return RxJavaPlugins.onAssembly(this); } return RxJavaPlugins.onAssembly(new FlowableSkip<>(this, count)); @@ -14596,6 +14783,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * the hint about how many elements to expect to be skipped * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} and {@code scheduler} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: SkipLast */ @CheckReturnValue @@ -15859,7 +16047,7 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit, * in a specified window of time before the {@code Publisher} completed, where the timing information is * provided by the given {@code scheduler} * @throws IllegalArgumentException - * if {@code count} is negative + * if {@code count} is negative or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -17749,7 +17937,7 @@ public final Flowable> window(long count, long skip) { * the capacity hint for the buffer in the inner windows * @return a {@code Flowable} that emits windows every {@code skip} items containing at most {@code count} items * from the source {@code Publisher} - * @throws IllegalArgumentException if either count or skip is non-positive + * @throws IllegalArgumentException if {@code count}, {@code skip} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -17882,6 +18070,7 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * @param bufferSize * the capacity hint for the buffer in the inner windows * @return a {@code Flowable} that emits new windows periodically as a fixed timespan elapses + * @throws IllegalArgumentException if {@code timespan}, {@code timeskip} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18202,6 +18391,7 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws IllegalArgumentException if {@code count}, {@code timespan} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18282,6 +18472,7 @@ public final Flowable> window(@NonNull Publisher boundaryIndi * @return a {@code Flowable} that emits non-overlapping windows of items it collects from the source {@code Publisher} * where the boundary of each window is determined by the items emitted from the {@code boundary} * {@code Publisher} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18370,6 +18561,7 @@ public final Flowable> window( * the capacity hint for the buffer in the inner windows * @return a {@code Flowable} that emits windows of items emitted by the source {@code Publisher} that are governed by * the specified window-governing {@code Publisher}s + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -19432,6 +19624,7 @@ public final Stream blockingStream(int prefetch) { * will be emitted to the downstream * @param prefetch the number of upstream items to request upfront, then 75% of this amount after each 75% upstream items received * @return the new {@code Flowable} instance + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @since 3.0.0 * @see #concatMap(Function, int) * @see #concatMapIterable(Function, int) @@ -19540,6 +19733,7 @@ public final Stream blockingStream(int prefetch) { * will be emitted to the downstream * @param prefetch the number of upstream items to request upfront, then 75% of this amount after each 75% upstream items received * @return the new {@code Flowable} instance + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @since 3.0.0 * @see #flatMap(Function, int) * @see #flatMapIterable(Function, int) diff --git a/src/main/java/io/reactivex/rxjava3/core/Maybe.java b/src/main/java/io/reactivex/rxjava3/core/Maybe.java index 441267389c..4892aa3ab0 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Maybe.java +++ b/src/main/java/io/reactivex/rxjava3/core/Maybe.java @@ -308,6 +308,7 @@ public static Flowable concat( * @param the value type * @param sources the {@code Publisher} of {@code MaybeSource} instances * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} */ @BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @@ -433,6 +434,7 @@ public static Flowable concatArrayDelayError(@NonNull MaybeSource the value type * @param sources a sequence of {@code MaybeSource}s that need to be eagerly concatenated * @return the new {@code Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "rawtypes", "unchecked" }) @BackpressureSupport(BackpressureKind.FULL) @@ -488,6 +490,7 @@ public static Flowable concatDelayError(@NonNull Iterable the common element base type * @param sources the {@code Publisher} sequence of {@code MaybeSource}s * @return the new {@code Flowable} with the concatenating behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "unchecked", "rawtypes" }) @BackpressureSupport(BackpressureKind.FULL) @@ -515,6 +518,7 @@ public static Flowable concatDelayError(@NonNull Publisher the value type * @param sources a sequence of {@code MaybeSource} that need to be eagerly concatenated * @return the new {@code Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "rawtypes", "unchecked" }) @BackpressureSupport(BackpressureKind.FULL) @@ -544,6 +548,7 @@ public static Flowable concatEager(@NonNull Iterable the value type * @param sources a sequence of {@code MaybeSource}s that need to be eagerly concatenated * @return the new {@code Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "rawtypes", "unchecked" }) @BackpressureSupport(BackpressureKind.FULL) @@ -1044,6 +1049,7 @@ public static Flowable merge(@NonNull Iterable the common and resulting value type * @param sources the {@code Flowable} sequence of {@code MaybeSource} sources * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} * @see #mergeDelayError(Publisher) */ @BackpressureSupport(BackpressureKind.FULL) @@ -1437,6 +1443,7 @@ public static Flowable mergeDelayError(@NonNull IterableReactiveX operators documentation: Merge */ @BackpressureSupport(BackpressureKind.FULL) @@ -1662,6 +1669,7 @@ public static Maybe never() { * @param * the type of items emitted by each {@code MaybeSource} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same + * @throws NullPointerException if {@code source1} or {@code source2} is {@code null} * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -1720,6 +1728,7 @@ public static Single sequenceEqual(@NonNull MaybeSourceReactiveX operators documentation: Timer */ @CheckReturnValue @@ -2688,6 +2697,7 @@ public final Single defaultIfEmpty(@NonNull T defaultItem) { * @param unit * the {@link TimeUnit} in which {@code period} is defined * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay * @see #delay(long, TimeUnit, Scheduler) */ @@ -2799,6 +2809,7 @@ public final Maybe delaySubscription(@NonNull Publisher subscriptionIn * @param unit * the time unit of {@code delay} * @return a {@code Maybe} that delays the subscription to the source {@code Maybe} by the given amount + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay * @see #delaySubscription(long, TimeUnit, Scheduler) */ @@ -2827,6 +2838,7 @@ public final Maybe delaySubscription(long delay, @NonNull TimeUnit unit) { * the {@code Scheduler} on which the waiting and subscription will happen * @return a {@code Maybe} that delays the subscription to the source {@code Maybe} by a given * amount, waiting and subscribing on the given {@code Scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -4075,7 +4087,7 @@ public final Flowable repeat() { * @return a {@code Flowable} that repeats the sequence of items emitted by the source {@code Maybe} at most * {@code count} times * @throws IllegalArgumentException - * if {@code count} is less than zero + * if {@code times} is negative * @see ReactiveX operators documentation: Repeat */ @BackpressureSupport(BackpressureKind.FULL) @@ -4134,6 +4146,7 @@ public final Flowable repeatUntil(@NonNull BooleanSupplier stop) { * @param handler * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the repeat. * @return the source {@code Publisher} modified with repeat logic + * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Repeat */ @BackpressureSupport(BackpressureKind.FULL) @@ -4181,6 +4194,7 @@ public final Maybe retry() { * the predicate that determines if a resubscription may happen in case of a specific exception * and retry count * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code predicate} is {@code null} * @see #retry() * @see ReactiveX operators documentation: Retry */ @@ -4205,16 +4219,17 @@ public final Maybe retry(@NonNull BiPredicate{@code retry} does not operate by default on a particular {@link Scheduler}. * * - * @param count + * @param times * the number of times to resubscribe if the current {@code Maybe} fails * @return the new {@code Maybe} instance + * @throws IllegalArgumentException if {@code times} is negative * @see ReactiveX operators documentation: Retry */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull - public final Maybe retry(long count) { - return retry(count, Functions.alwaysTrue()); + public final Maybe retry(long times) { + return retry(times, Functions.alwaysTrue()); } /** @@ -4227,6 +4242,8 @@ public final Maybe retry(long count) { * @param times the number of times to resubscribe if the current {@code Maybe} fails * @param predicate the predicate called with the failure {@link Throwable} and should return {@code true} to trigger a retry. * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code predicate} is {@code null} + * @throws IllegalArgumentException if {@code times} is negative */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -4244,6 +4261,7 @@ public final Maybe retry(long times, @NonNull Predicate pr * * @param predicate the predicate that receives the failure {@link Throwable} and should return {@code true} to trigger a retry. * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code predicate} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -4341,6 +4359,7 @@ public final Maybe retryUntil(@NonNull BooleanSupplier stop) { * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the * retry * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Retry */ @CheckReturnValue @@ -4665,16 +4684,17 @@ public final Maybe takeUntil(@NonNull Publisher other) { * * @param timeout * maximum duration between emitted items before a timeout occurs - * @param timeUnit + * @param unit * the unit of time that applies to the {@code timeout} argument. * @return the new {@code Maybe} instance + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) @NonNull - public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit) { - return timeout(timeout, timeUnit, Schedulers.computation()); + public final Maybe timeout(long timeout, @NonNull TimeUnit unit) { + return timeout(timeout, unit, Schedulers.computation()); } /** @@ -4690,20 +4710,20 @@ public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit) { * * @param timeout * maximum duration between items before a timeout occurs - * @param timeUnit + * @param unit * the unit of time that applies to the {@code timeout} argument * @param fallback * the fallback {@code MaybeSource} to use in case of a timeout * @return the new {@code Maybe} instance - * @throws NullPointerException if {@code timeUnit} or {@code fallback} is {@code null} + * @throws NullPointerException if {@code unit} or {@code fallback} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @NonNull @SchedulerSupport(SchedulerSupport.COMPUTATION) - public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull MaybeSource fallback) { + public final Maybe timeout(long timeout, @NonNull TimeUnit unit, @NonNull MaybeSource fallback) { Objects.requireNonNull(fallback, "fallback is null"); - return timeout(timeout, timeUnit, Schedulers.computation(), fallback); + return timeout(timeout, unit, Schedulers.computation(), fallback); } /** @@ -4720,22 +4740,22 @@ public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull * * @param timeout * maximum duration between items before a timeout occurs - * @param timeUnit + * @param unit * the unit of time that applies to the {@code timeout} argument * @param fallback * the {@code MaybeSource} to use as the fallback in case of a timeout * @param scheduler * the {@code Scheduler} to run the timeout timers on * @return the new {@code Maybe} instance - * @throws NullPointerException if {@code fallback}, {@code timeUnit} or {@code scheduler} is {@code null} + * @throws NullPointerException if {@code fallback}, {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @NonNull @SchedulerSupport(SchedulerSupport.CUSTOM) - public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull Scheduler scheduler, @NonNull MaybeSource fallback) { + public final Maybe timeout(long timeout, @NonNull TimeUnit unit, @NonNull Scheduler scheduler, @NonNull MaybeSource fallback) { Objects.requireNonNull(fallback, "fallback is null"); - return timeout(timer(timeout, timeUnit, scheduler), fallback); + return timeout(timer(timeout, unit, scheduler), fallback); } /** @@ -4752,18 +4772,19 @@ public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull * * @param timeout * maximum duration between items before a timeout occurs - * @param timeUnit + * @param unit * the unit of time that applies to the {@code timeout} argument * @param scheduler * the {@code Scheduler} to run the timeout timers on * @return the new {@code Maybe} instance * @see ReactiveX operators documentation: Timeout + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) @NonNull - public final Maybe timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull Scheduler scheduler) { - return timeout(timer(timeout, timeUnit, scheduler)); + public final Maybe timeout(long timeout, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) { + return timeout(timer(timeout, unit, scheduler)); } /** @@ -4909,7 +4930,7 @@ public final Maybe unsubscribeOn(@NonNull Scheduler scheduler) { * a function that combines the pairs of items from the two {@code MaybeSource}s to generate the items to * be emitted by the resulting {@code Maybe} * @return the new {@code Maybe} instance - * @throws NullPointerException if {@code other} is {@code null} + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue diff --git a/src/main/java/io/reactivex/rxjava3/core/Observable.java b/src/main/java/io/reactivex/rxjava3/core/Observable.java index 2d75dee207..85a34c0334 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Observable.java +++ b/src/main/java/io/reactivex/rxjava3/core/Observable.java @@ -207,6 +207,7 @@ public static int bufferSize() { * the aggregation function used to combine the items emitted by the returned {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of combining the items emitted by the returned * {@code ObservableSource}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @CheckReturnValue @@ -305,6 +306,7 @@ public static Observable combineLatest( * the aggregation function used to combine the items emitted by the {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of combining the items emitted by the returned * {@code ObservableSource}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @CheckReturnValue @@ -879,6 +881,7 @@ public static Observable combineLates * the aggregation function used to combine the items emitted by the {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of combining the items emitted by the * {@code ObservableSource}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @CheckReturnValue @@ -980,6 +983,7 @@ public static Observable combineLatestDelayError(@NonNull ObservableSo * the aggregation function used to combine the items emitted by the {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of combining the items emitted by the * {@code ObservableSource}s by means of the given aggregation function + * @throws NullPointerException if {@code sources} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: CombineLatest */ @CheckReturnValue @@ -1300,6 +1304,7 @@ public static Observable concatArrayDelayError(@NonNull ObservableSource< * @param the value type * @param sources an array of {@code ObservableSource}s that need to be eagerly concatenated * @return the new {@code Observable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -1328,6 +1333,8 @@ public static Observable concatArrayEager(@NonNull ObservableSource Observable concatArrayEager(int maxConcurrency, int bufferS * @param the value type * @param sources an array of {@code ObservableSource}s that need to be eagerly concatenated * @return the new {@code Observable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.2.1 - experimental */ @CheckReturnValue @@ -1384,6 +1392,8 @@ public static Observable concatArrayEagerDelayError(@NonNull ObservableSo * is interpreted as indication to subscribe to all sources at once * @param bufferSize the number of elements expected from each {@code ObservableSource} to be buffered * @return the new {@code Observable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} or {@code bufferSize} is non-positive * @since 2.2.1 - experimental */ @SuppressWarnings({ "rawtypes", "unchecked" }) @@ -1433,6 +1443,7 @@ public static Observable concatDelayError(@NonNull Iterable the common element base type * @param sources the {@code ObservableSource} sequence of {@code ObservableSource}s * @return the new {@code Observable} with the concatenating behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -1540,6 +1551,7 @@ public static Observable concatEager(@NonNull ObservableSource the value type * @param sources a sequence of {@code ObservableSource}s that need to be eagerly concatenated * @return the new {@code Observable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -1567,6 +1579,8 @@ public static Observable concatEager(@NonNull Iterable interval(long initialDelay, long period, @NonNull * @param unit * time units to use for the interval size * @return an {@code Observable} that emits a sequential number each time interval + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Interval */ @CheckReturnValue @@ -2273,6 +2288,7 @@ public static Observable interval(long period, @NonNull TimeUnit unit) { * @param scheduler * the {@code Scheduler} to use for scheduling the items * @return an {@code Observable} that emits a sequential number each time interval + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Interval */ @CheckReturnValue @@ -2298,6 +2314,10 @@ public static Observable interval(long period, @NonNull TimeUnit unit, @No * @param period the period between subsequent values * @param unit the unit of measure of the {@code initialDelay} and {@code period} amounts * @return the new {@code Observable} instance + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException + * if {@code count} is negative, or if {@code start} + {@code count} − 1 exceeds + * {@link Long#MAX_VALUE} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) @@ -2801,8 +2821,9 @@ public static Observable just(@NonNull T item1, @NonNull T item2, @NonNul * the number of items expected from each inner {@code ObservableSource} to be buffered * @return an {@code Observable} that emits items that are the result of flattening the items emitted by the * {@code ObservableSource}s in the {@code Iterable} + * @throws NullPointerException if {@code sources} is {@code null} * @throws IllegalArgumentException - * if {@code maxConcurrent} is less than or equal to 0 + * if {@code maxConcurrent} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Iterable, int, int) */ @@ -2849,8 +2870,9 @@ public static Observable merge(@NonNull IterableReactiveX operators documentation: Merge * @see #mergeArrayDelayError(int, int, ObservableSource...) */ @@ -2893,6 +2915,7 @@ public static Observable mergeArray(int maxConcurrency, int bufferSize, @ * the {@code Iterable} of {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of flattening the items emitted by the * {@code ObservableSource}s in the {@code Iterable} + * @throws NullPointerException if {@code sources} is {@code null} * @see ReactiveX operators documentation: Merge * @see #mergeDelayError(Iterable) */ @@ -2937,8 +2960,9 @@ public static Observable merge(@NonNull IterableReactiveX operators documentation: Merge * @see #mergeDelayError(Iterable, int) */ @@ -3373,6 +3397,8 @@ public static Observable mergeArrayDelayError(int maxConcurrency, int buf * the maximum number of {@code ObservableSource}s that may be subscribed to concurrently * @return an {@code Observable} that emits items that are the result of flattening the items emitted by the * {@code ObservableSource}s in the {@code Iterable} + * @throws NullPointerException if {@code sources} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive * @see ReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -3609,6 +3635,7 @@ public static Observable mergeDelayError( * the array of {@code ObservableSource}s * @return an {@code Observable} that emits items that are the result of flattening the items emitted by the * {@code ObservableSource}s in the array + * @throws NullPointerException if {@code sources} is {@code null} * @see ReactiveX operators documentation: Merge */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -3742,6 +3769,7 @@ public static Observable rangeLong(long start, long count) { * @param * the type of items emitted by each {@code ObservableSource} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same + * @throws NullPointerException if {@code source1} or {@code source2} is {@code null} * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -3772,6 +3800,7 @@ public static Single sequenceEqual(@NonNull ObservableSourceReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -3842,6 +3871,8 @@ public static Single sequenceEqual( * @param * the type of items emitted by each {@code ObservableSource} * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same + * @throws NullPointerException if {@code source1} or {@code source2} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: SequenceEqual */ @CheckReturnValue @@ -3914,6 +3945,7 @@ public static Observable switchOnNext(@NonNull ObservableSourceReactiveX operators documentation: Switch */ @CheckReturnValue @@ -3947,6 +3979,7 @@ public static Observable switchOnNext(@NonNull ObservableSourceReactiveX operators documentation: Switch * @since 2.0 */ @@ -4012,6 +4045,7 @@ public static Observable switchOnNextDelayError(@NonNull ObservableSource * @param unit * time units to use for {@code delay} * @return an {@code Observable} that {@code 0L} after a specified delay, and then completes + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Timer */ @CheckReturnValue @@ -4457,6 +4491,7 @@ public static Observable zip( * @param bufferSize the number of elements expected from each source {@code ObservableSource} to be buffered * @return an {@code Observable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2} or {@code zipper} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -5199,12 +5234,14 @@ public final T blockingFirst() { * a default value to return if the current {@code Observable} emits no items * @return the first item emitted by the current {@code Observable}, or the default value if it emits no * items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX documentation: First */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final T blockingFirst(@NonNull T defaultItem) { + Objects.requireNonNull(defaultItem, "defaultItem is null"); BlockingFirstObserver observer = new BlockingFirstObserver<>(); subscribe(observer); T v = observer.blockingGet(); @@ -5392,12 +5429,14 @@ public final T blockingLast() { * a default value to return if the current {@code Observable} emits no items * @return the last item emitted by the {@code Observable}, or the default value if it emits no * items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX documentation: Last */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final T blockingLast(@NonNull T defaultItem) { + Objects.requireNonNull(defaultItem, "defaultItem is null"); BlockingLastObserver observer = new BlockingLastObserver<>(); subscribe(observer); T v = observer.blockingGet(); @@ -5522,6 +5561,7 @@ public final T blockingSingle() { * a default value to return if the current {@code Observable} emits no items * @return the single item emitted by the current {@code Observable}, or the default value if it emits no * items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX documentation: First */ @CheckReturnValue @@ -5934,6 +5974,7 @@ public final > Observable buffer(int count, i * the unit of time that applies to the {@code timespan} argument * @return an {@code Observable} that emits connected, non-overlapping buffers of items emitted by the current * {@code Observable} within a fixed duration + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -5968,6 +6009,8 @@ public final > Observable buffer(int count, i * @return an {@code Observable} that emits connected, non-overlapping buffers of items emitted by the current * {@code Observable}, after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6004,6 +6047,8 @@ public final > Observable buffer(int count, i * @return an {@code Observable} that emits connected, non-overlapping buffers of items emitted by the current * {@code Observable} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -10382,6 +10427,7 @@ public final Observable observeOn(@NonNull Scheduler scheduler) { * from the current {@code Observable} * @return the current {@code Observable} modified so that its {@code Observer}s are notified on the specified * {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples * @see #subscribeOn @@ -10855,7 +10901,7 @@ public final Observable repeat() { * @return an {@code Observable} that repeats the sequence of items emitted by the current {@code Observable} at most * {@code count} times * @throws IllegalArgumentException - * if {@code count} is negative + * if {@code times} is negative * @see ReactiveX operators documentation: Repeat */ @CheckReturnValue @@ -11913,6 +11959,7 @@ public final Observable sample(long period, @NonNull TimeUnit unit) { * if {@code true} and the upstream completes while there is still an unsampled item available, * that item is emitted to downstream before completion * if {@code false}, an unsampled last item is ignored. + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample * @see #throttleLast(long, TimeUnit) * @since 2.1 @@ -12306,13 +12353,17 @@ public final Single singleOrError() { * the number of items to skip * @return an {@code Observable} that is identical to the current {@code Observable} except that it does not emit the first * {@code count} items that the current {@code Observable} emits + * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: Skip */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull public final Observable skip(long count) { - if (count <= 0) { + if (count < 0) { + throw new IllegalArgumentException("count >= 0 expected but it was " + count); + } + if (count == 0) { return RxJavaPlugins.onAssembly(this); } return RxJavaPlugins.onAssembly(new ObservableSkip<>(this, count)); @@ -13534,6 +13585,7 @@ public final Observable takeLast(int count) { * @return an {@code Observable} that emits at most {@code count} items from the current {@code Observable} that were emitted * in a specified window of time before the current {@code Observable} completed * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -13639,6 +13691,7 @@ public final Observable takeLast(long count, long time, @NonNull TimeUnit uni * the time unit of {@code time} * @return an {@code Observable} that emits the items from the current {@code Observable} that were emitted in the window of * time before the current {@code Observable} completed specified by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -13668,6 +13721,8 @@ public final Observable takeLast(long time, @NonNull TimeUnit unit) { * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @return an {@code Observable} that emits the items from the current {@code Observable} that were emitted in the window of * time before the current {@code Observable} completed specified by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -13697,6 +13752,7 @@ public final Observable takeLast(long time, @NonNull TimeUnit unit, boolean d * @return an {@code Observable} that emits the items from the current {@code Observable} that were emitted in the window of * time before the current {@code Observable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -13729,6 +13785,7 @@ public final Observable takeLast(long time, @NonNull TimeUnit unit, @NonNull * @return an {@code Observable} that emits the items from the current {@code Observable} that were emitted in the window of * time before the current {@code Observable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -13763,6 +13820,8 @@ public final Observable takeLast(long time, @NonNull TimeUnit unit, @NonNull * @return an {@code Observable} that emits the items from the current {@code Observable} that were emitted in the window of * time before the current {@code Observable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -14458,6 +14517,7 @@ public final Observable timeout(long timeout, @NonNull TimeUnit unit, @NonNul * the {@code Scheduler} to run the timeout timers on * @return the current {@code Observable} modified to notify observers of a {@code TimeoutException} in case of a * timeout + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue diff --git a/src/main/java/io/reactivex/rxjava3/core/Scheduler.java b/src/main/java/io/reactivex/rxjava3/core/Scheduler.java index 80eda093c4..7b96792bbe 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Scheduler.java +++ b/src/main/java/io/reactivex/rxjava3/core/Scheduler.java @@ -13,6 +13,7 @@ package io.reactivex.rxjava3.core; +import java.util.Objects; import java.util.concurrent.TimeUnit; import io.reactivex.rxjava3.annotations.*; @@ -128,6 +129,7 @@ public static long clockDriftTolerance() { * Returns the 'current time' of the Scheduler in the specified time unit. * @param unit the time unit * @return the 'current time' + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.0 */ public long now(@NonNull TimeUnit unit) { @@ -172,6 +174,7 @@ public void shutdown() { * @param run the task to execute * * @return the Disposable instance that let's one cancel this particular task. + * @throws NullPointerException if {@code run} is {@code null} * @since 2.0 */ @NonNull @@ -190,6 +193,7 @@ public Disposable scheduleDirect(@NonNull Runnable run) { * @param delay the delay amount, non-positive values indicate non-delayed scheduling * @param unit the unit of measure of the delay amount * @return the Disposable that let's one cancel this particular delayed task. + * @throws NullPointerException if {@code run} or {@code unit} is {@code null} * @since 2.0 */ @NonNull @@ -222,6 +226,7 @@ public Disposable scheduleDirect(@NonNull Runnable run, long delay, @NonNull Tim * @param period the period at which the task should be re-executed * @param unit the unit of measure of the delay amount * @return the Disposable that let's one cancel this particular delayed task. + * @throws NullPointerException if {@code run} or {@code unit} is {@code null} * @since 2.0 */ @NonNull @@ -313,11 +318,13 @@ public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initial * @param combine the function that takes a two-level nested Flowable sequence of a Completable and returns * the Completable that will be subscribed to and should trigger the execution of the scheduled Actions. * @return the Scheduler with the customized execution behavior + * @throws NullPointerException if {@code combine} is {@code null} * @since 2.1 */ @SuppressWarnings("unchecked") @NonNull public S when(@NonNull Function>, Completable> combine) { + Objects.requireNonNull(combine, "combine is null"); return (S) new SchedulerWhen(combine, this); } @@ -365,6 +372,7 @@ public abstract static class Worker implements Disposable { * @param run * Runnable to schedule * @return a Disposable to be able to unsubscribe the action (cancel it if not executed) + * @throws NullPointerException if {@code run} is {@code null} */ @NonNull public Disposable schedule(@NonNull Runnable run) { @@ -386,6 +394,7 @@ public Disposable schedule(@NonNull Runnable run) { * @param unit * the time unit of {@code delayTime} * @return a Disposable to be able to unsubscribe the action (cancel it if not executed) + * @throws NullPointerException if {@code run} or {@code unit} is {@code null} */ @NonNull public abstract Disposable schedule(@NonNull Runnable run, long delay, @NonNull TimeUnit unit); @@ -417,6 +426,7 @@ public Disposable schedule(@NonNull Runnable run) { * @param unit * the time unit of {@code period} * @return a Disposable to be able to unsubscribe the action (cancel it if not executed) + * @throws NullPointerException if {@code run} or {@code unit} is {@code null} */ @NonNull public Disposable schedulePeriodically(@NonNull Runnable run, final long initialDelay, final long period, @NonNull final TimeUnit unit) { @@ -445,6 +455,7 @@ public Disposable schedulePeriodically(@NonNull Runnable run, final long initial * Returns the 'current time' of the Worker in the specified time unit. * @param unit the time unit * @return the 'current time' + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.0 */ public long now(@NonNull TimeUnit unit) { diff --git a/src/main/java/io/reactivex/rxjava3/core/Single.java b/src/main/java/io/reactivex/rxjava3/core/Single.java index 9b60269cd3..a1fae2e6fc 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Single.java +++ b/src/main/java/io/reactivex/rxjava3/core/Single.java @@ -186,6 +186,7 @@ public static Single ambArray(@NonNull SingleSource... sourc * @param the value type * @param sources the {@code Iterable} sequence of {@code SingleSource} instances * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -235,6 +236,7 @@ public static Observable concat(@NonNull ObservableSource the value type * @param sources the {@code Publisher} of {@code SingleSource} instances * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -397,6 +399,7 @@ public static Flowable concat( * @param the value type * @param sources the array of {@code SingleSource} instances * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -426,6 +429,7 @@ public static Flowable concatArray(@NonNull SingleSource... * @param the value type * @param sources a sequence of {@code SingleSource}s that need to be eagerly concatenated * @return the new {@link Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @@ -455,6 +459,7 @@ public static Flowable concatArrayEager(@NonNull SingleSource the value type * @param sources a sequence of {@code SingleSource}s that need to be eagerly concatenated * @return the new {@link Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @@ -481,6 +486,7 @@ public static Flowable concatEager(@NonNull Publisher the value type * @param sources an {@code Iterable} sequence of {@code SingleSource} that need to be eagerly concatenated * @return the new {@link Flowable} instance with the specified concatenation behavior + * @throws NullPointerException if {@code sources} is {@code null} */ @BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @@ -714,6 +720,7 @@ public static Single error(@NonNull Throwable exception) { * the type of object that the {@code Future} returns, and also the type of item to be emitted by * the resulting {@code Single} * @return the new {@code Single} that emits the item from the source {@code Future} + * @throws NullPointerException if {@code future} or {@code unit} is {@code null} * @see ReactiveX operators documentation: From */ @CheckReturnValue @@ -1337,6 +1344,7 @@ public static Single never() { * @param delay the delay amount * @param unit the time unit of the delay * @return the new {@code Single} instance + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -2190,6 +2198,7 @@ public final Flowable concatWith(@NonNull SingleSource other) { * @param unit the time unit * @return the new {@code Single} instance * @since 2.0 + * @throws NullPointerException if {@code unit} is {@code null} * @see #delay(long, TimeUnit, boolean) */ @CheckReturnValue @@ -2212,6 +2221,7 @@ public final Single delay(long time, @NonNull TimeUnit unit) { * @param unit the time unit * @param delayError if {@code true}, both success and error signals are delayed. if {@code false}, only success signals are delayed. * @return the new {@code Single} instance + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -2419,6 +2429,7 @@ public final Single delaySubscription(long time, @NonNull TimeUnit unit) { * @param unit the time unit of the waiting * @param scheduler the {@code Scheduler} to wait on and subscribe on to the current {@code Single} * @return the new {@code Single} instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -3418,6 +3429,7 @@ public final Flowable repeat() { * * @param times the number of times to re-subscribe to the current {@code Single} * @return the new {@code Flowable} instance + * @throws IllegalArgumentException if {@code times} is negative * @since 2.0 */ @BackpressureSupport(BackpressureKind.FULL) @@ -3446,6 +3458,7 @@ public final Flowable repeat(long times) { * trigger a resubscription to the current {@code Single}, otherwise the terminal signal of * the {@code Publisher} will be the terminal signal of the sequence as well. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code handler} is {@code null} * @since 2.0 */ @BackpressureSupport(BackpressureKind.FULL) @@ -3470,6 +3483,7 @@ public final Flowable repeatWhen(@NonNull Function, * @param stop the {@code BooleanSupplier} called after the current {@code Single} succeeds and if returns {@code false}, * the {@code Single} is re-subscribed; otherwise the sequence completes. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code stop} is {@code null} * @since 2.0 */ @BackpressureSupport(BackpressureKind.FULL) @@ -3509,6 +3523,7 @@ public final Single retry() { * * @param times the number of times to resubscribe if the current {@code Single} fails * @return the new {@code Single} instance + * @throws IllegalArgumentException if {@code times} is negative * @since 2.0 */ @CheckReturnValue @@ -3530,6 +3545,7 @@ public final Single retry(long times) { * @param predicate the predicate called with the resubscription count and the failure {@link Throwable} * and should return {@code true} if a resubscription should happen * @return the new {@code Single} instance + * @throws NullPointerException if {@code predicate} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -3553,6 +3569,8 @@ public final Single retry(@NonNull BiPredicate retry(long times, @NonNull Predicate p * @param predicate the predicate called with the failure {@link Throwable} * and should return {@code true} if a resubscription should happen * @return the new {@code Single} instance + * @throws NullPointerException if {@code predicate} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -3625,6 +3644,7 @@ public final Single retry(@NonNull Predicate predicate) { * throwable the {@code Flowable} emits) to trigger a resubscription or signal an error to * be the output of the resulting {@code Single} * @return the new {@code Single} instance + * @throws NullPointerException if {@code handler} is {@code null} */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @@ -3931,6 +3951,7 @@ public final Single takeUntil(@NonNull SingleSource other) { * @param timeout the timeout amount * @param unit the time unit * @return the new {@code Single} instance + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -3954,6 +3975,7 @@ public final Single timeout(long timeout, @NonNull TimeUnit unit) { * @param scheduler the target {@code Scheduler} where the timeout is awaited and the {@code TimeoutException} * signaled * @return the new {@code Single} instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -4195,6 +4217,7 @@ public final Single unsubscribeOn(@NonNull Scheduler scheduler) { * be emitted by the resulting {@code Single} * @return the new {@code Single} that pairs up values from the source {@code Single} and the {@code other} {@code SingleSource} * and emits the results of {@code zipFunction} applied to these pairs + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue diff --git a/src/main/java/io/reactivex/rxjava3/disposables/CompositeDisposable.java b/src/main/java/io/reactivex/rxjava3/disposables/CompositeDisposable.java index eaf067c177..f877dc1381 100644 --- a/src/main/java/io/reactivex/rxjava3/disposables/CompositeDisposable.java +++ b/src/main/java/io/reactivex/rxjava3/disposables/CompositeDisposable.java @@ -14,13 +14,14 @@ import java.util.*; -import io.reactivex.rxjava3.annotations.NonNull; +import io.reactivex.rxjava3.annotations.*; import io.reactivex.rxjava3.exceptions.*; import io.reactivex.rxjava3.internal.util.*; /** - * A disposable container that can hold onto multiple other disposables and - * offers O(1) add and removal complexity. + * A disposable container that can hold onto multiple other {@link Disposable}s and + * offers O(1) time complexity for {@link #add(Disposable)}, {@link #remove(Disposable)} and {@link #delete(Disposable)} + * operations. */ public final class CompositeDisposable implements Disposable, DisposableContainer { @@ -29,14 +30,14 @@ public final class CompositeDisposable implements Disposable, DisposableContaine volatile boolean disposed; /** - * Creates an empty CompositeDisposable. + * Creates an empty {@code CompositeDisposable}. */ public CompositeDisposable() { } /** - * Creates a CompositeDisposables with the given array of initial elements. - * @param disposables the array of Disposables to start with + * Creates a {@code CompositeDisposable} with the given array of initial {@link Disposable} elements. + * @param disposables the array of {@code Disposable}s to start with * @throws NullPointerException if {@code disposables} or any of its array items is {@code null} */ public CompositeDisposable(@NonNull Disposable... disposables) { @@ -49,8 +50,8 @@ public CompositeDisposable(@NonNull Disposable... disposables) { } /** - * Creates a CompositeDisposables with the given Iterable sequence of initial elements. - * @param disposables the Iterable sequence of Disposables to start with + * Creates a {@code CompositeDisposable} with the given {@link Iterable} sequence of initial {@link Disposable} elements. + * @param disposables the {@code Iterable} sequence of {@code Disposable} to start with * @throws NullPointerException if {@code disposables} or any of its items is {@code null} */ public CompositeDisposable(@NonNull Iterable disposables) { @@ -86,10 +87,10 @@ public boolean isDisposed() { } /** - * Adds a disposable to this container or disposes it if the + * Adds a {@link Disposable} to this container or disposes it if the * container has been disposed. - * @param disposable the disposable to add, not null - * @return true if successful, false if this container has been disposed + * @param disposable the {@code Disposable} to add, not {@code null} + * @return {@code true} if successful, {@code false} if this container has been disposed * @throws NullPointerException if {@code disposable} is {@code null} */ @Override @@ -113,10 +114,10 @@ public boolean add(@NonNull Disposable disposable) { } /** - * Atomically adds the given array of Disposables to the container or + * Atomically adds the given array of {@link Disposable}s to the container or * disposes them all if the container has been disposed. - * @param disposables the array of Disposables - * @return true if the operation was successful, false if the container has been disposed + * @param disposables the array of {@code Disposable}s + * @return {@code true} if the operation was successful, {@code false} if the container has been disposed * @throws NullPointerException if {@code disposables} or any of its array items is {@code null} */ public boolean addAll(@NonNull Disposable... disposables) { @@ -144,10 +145,11 @@ public boolean addAll(@NonNull Disposable... disposables) { } /** - * Removes and disposes the given disposable if it is part of this + * Removes and disposes the given {@link Disposable} if it is part of this * container. - * @param disposable the disposable to remove and dispose, not null - * @return true if the operation was successful + * @param disposable the disposable to remove and dispose, not {@code null} + * @return {@code true} if the operation was successful + * @throws NullPointerException if {@code disposable} is {@code null} */ @Override public boolean remove(@NonNull Disposable disposable) { @@ -159,15 +161,15 @@ public boolean remove(@NonNull Disposable disposable) { } /** - * Removes (but does not dispose) the given disposable if it is part of this + * Removes (but does not dispose) the given {@link Disposable} if it is part of this * container. - * @param disposable the disposable to remove, not null - * @return true if the operation was successful + * @param disposable the disposable to remove, not {@code null} + * @return {@code true} if the operation was successful * @throws NullPointerException if {@code disposable} is {@code null} */ @Override public boolean delete(@NonNull Disposable disposable) { - Objects.requireNonNull(disposable, "disposables is null"); + Objects.requireNonNull(disposable, "disposable is null"); if (disposed) { return false; } @@ -185,7 +187,7 @@ public boolean delete(@NonNull Disposable disposable) { } /** - * Atomically clears the container, then disposes all the previously contained Disposables. + * Atomically clears the container, then disposes all the previously contained {@link Disposable}s. */ public void clear() { if (disposed) { @@ -205,8 +207,8 @@ public void clear() { } /** - * Returns the number of currently held Disposables. - * @return the number of currently held Disposables + * Returns the number of currently held {@link Disposable}s. + * @return the number of currently held {@code Disposable}s */ public int size() { if (disposed) { @@ -222,11 +224,11 @@ public int size() { } /** - * Dispose the contents of the OpenHashSet by suppressing non-fatal - * Throwables till the end. - * @param set the OpenHashSet to dispose elements of + * Dispose the contents of the {@link OpenHashSet} by suppressing non-fatal + * {@link Throwable}s till the end. + * @param set the {@code OpenHashSet} to dispose elements of */ - void dispose(OpenHashSet set) { + void dispose(@Nullable OpenHashSet set) { if (set == null) { return; } diff --git a/src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java b/src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java index 7f0cfd1100..3e80c68ced 100644 --- a/src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java +++ b/src/main/java/io/reactivex/rxjava3/flowables/ConnectableFlowable.java @@ -67,6 +67,7 @@ public abstract class ConnectableFlowable extends Flowable { * @param connection * the action that receives the connection subscription before the subscription to source happens * allowing the caller to synchronously disconnect a synchronous source + * @throws NullPointerException if {@code connection} is {@code null} * @see ReactiveX documentation: Connect */ @SchedulerSupport(SchedulerSupport.NONE) @@ -168,6 +169,7 @@ public final Flowable refCount(int subscriberCount) { * @param timeout the time to wait before disconnecting after all subscribers unsubscribed * @param unit the time unit of the timeout * @return the new Flowable instance + * @throws NullPointerException if {@code unit} is {@code null} * @see #refCount(long, TimeUnit, Scheduler) * @since 2.2 */ @@ -195,6 +197,7 @@ public final Flowable refCount(long timeout, @NonNull TimeUnit unit) { * @param unit the time unit of the timeout * @param scheduler the target scheduler to wait on before disconnecting * @return the new Flowable instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -221,6 +224,7 @@ public final Flowable refCount(long timeout, @NonNull TimeUnit unit, @NonNull * @param timeout the time to wait before disconnecting after all subscribers unsubscribed * @param unit the time unit of the timeout * @return the new Flowable instance + * @throws NullPointerException if {@code unit} is {@code null} * @see #refCount(int, long, TimeUnit, Scheduler) * @since 2.2 */ @@ -364,12 +368,14 @@ public Flowable autoConnect(int numberOfSubscribers) { * @return a Flowable that automatically connects to this ConnectableFlowable * when the specified number of Subscribers subscribe to it and calls the * specified callback with the Subscription associated with the established connection + * @throws NullPointerException if {@code connection} is {@code null} */ @NonNull @CheckReturnValue @BackpressureSupport(BackpressureKind.PASS_THROUGH) @SchedulerSupport(SchedulerSupport.NONE) public Flowable autoConnect(int numberOfSubscribers, @NonNull Consumer connection) { + Objects.requireNonNull(connection, "connection is null"); if (numberOfSubscribers <= 0) { this.connect(connection); return RxJavaPlugins.onAssembly(this); diff --git a/src/main/java/io/reactivex/rxjava3/observables/ConnectableObservable.java b/src/main/java/io/reactivex/rxjava3/observables/ConnectableObservable.java index 19a083d727..2221ac62b0 100644 --- a/src/main/java/io/reactivex/rxjava3/observables/ConnectableObservable.java +++ b/src/main/java/io/reactivex/rxjava3/observables/ConnectableObservable.java @@ -64,6 +64,7 @@ public abstract class ConnectableObservable extends Observable { * @param connection * the action that receives the connection subscription before the subscription to source happens * allowing the caller to synchronously disconnect a synchronous source + * @throws NullPointerException if {@code connection} is {@code null} * @see ReactiveX documentation: Connect */ @SchedulerSupport(SchedulerSupport.NONE) @@ -155,6 +156,7 @@ public final Observable refCount(int subscriberCount) { * @param timeout the time to wait before disconnecting after all subscribers unsubscribed * @param unit the time unit of the timeout * @return the new Observable instance + * @throws NullPointerException if {@code unit} is {@code null} * @see #refCount(long, TimeUnit, Scheduler) * @since 2.2 */ @@ -178,6 +180,7 @@ public final Observable refCount(long timeout, @NonNull TimeUnit unit) { * @param unit the time unit of the timeout * @param scheduler the target scheduler to wait on before disconnecting * @return the new Observable instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -200,6 +203,7 @@ public final Observable refCount(long timeout, @NonNull TimeUnit unit, @NonNu * @param timeout the time to wait before disconnecting after all subscribers unsubscribed * @param unit the time unit of the timeout * @return the new Observable instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see #refCount(int, long, TimeUnit, Scheduler) * @since 2.2 */ @@ -224,8 +228,8 @@ public final Observable refCount(int subscriberCount, long timeout, @NonNull * @param unit the time unit of the timeout * @param scheduler the target scheduler to wait on before disconnecting * @return the new Observable instance - * @throws IllegalArgumentException if {@code subscriberCount} is non-positive * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code subscriberCount} is non-positive * @since 2.2 */ @CheckReturnValue @@ -326,11 +330,13 @@ public Observable autoConnect(int numberOfSubscribers) { * @return an Observable that automatically connects to this ConnectableObservable * when the specified number of Subscribers subscribe to it and calls the * specified callback with the Subscription associated with the established connection + * @throws NullPointerException if {@code connection} is {@code null} */ @NonNull @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public Observable autoConnect(int numberOfSubscribers, @NonNull Consumer connection) { + Objects.requireNonNull(connection, "connection is null"); if (numberOfSubscribers <= 0) { this.connect(connection); return RxJavaPlugins.onAssembly(this); diff --git a/src/main/java/io/reactivex/rxjava3/parallel/ParallelFlowable.java b/src/main/java/io/reactivex/rxjava3/parallel/ParallelFlowable.java index df1861c032..17d22690ad 100644 --- a/src/main/java/io/reactivex/rxjava3/parallel/ParallelFlowable.java +++ b/src/main/java/io/reactivex/rxjava3/parallel/ParallelFlowable.java @@ -20,6 +20,7 @@ import io.reactivex.rxjava3.annotations.*; import io.reactivex.rxjava3.core.*; +import io.reactivex.rxjava3.exceptions.MissingBackpressureException; import io.reactivex.rxjava3.functions.*; import io.reactivex.rxjava3.internal.functions.*; import io.reactivex.rxjava3.internal.jdk8.*; @@ -42,7 +43,7 @@ public abstract class ParallelFlowable<@NonNull T> { /** - * Subscribes an array of Subscribers to this ParallelFlowable and triggers + * Subscribes an array of {@link Subscriber}s to this {@code ParallelFlowable} and triggers * the execution chain for all 'rails'. *
*
Backpressure:
@@ -52,7 +53,8 @@ public abstract class ParallelFlowable<@NonNull T> { *
* * @param subscribers the subscribers array to run in parallel, the number - * of items must be equal to the parallelism level of this ParallelFlowable + * of items must be equal to the parallelism level of this {@code ParallelFlowable} + * @throws NullPointerException if {@code subscribers} is {@code null} * @see #parallelism() */ @BackpressureSupport(BackpressureKind.SPECIAL) @@ -60,18 +62,18 @@ public abstract class ParallelFlowable<@NonNull T> { public abstract void subscribe(@NonNull Subscriber[] subscribers); /** - * Returns the number of expected parallel Subscribers. - * @return the number of expected parallel Subscribers + * Returns the number of expected parallel {@link Subscriber}s. + * @return the number of expected parallel {@code Subscriber}s */ @CheckReturnValue public abstract int parallelism(); /** - * Validates the number of subscribers and returns true if their number - * matches the parallelism level of this ParallelFlowable. + * Validates the number of subscribers and returns {@code true} if their number + * matches the parallelism level of this {@code ParallelFlowable}. * - * @param subscribers the array of Subscribers - * @return true if the number of subscribers equals to the parallelism level + * @param subscribers the array of {@link Subscriber}s + * @return {@code true} if the number of subscribers equals to the parallelism level * @throws NullPointerException if {@code subscribers} is {@code null} * @throws IllegalArgumentException if {@code subscribers.length} is different from {@link #parallelism()} */ @@ -89,7 +91,7 @@ protected final boolean validate(@NonNull Subscriber[] subscribers) { } /** - * Take a Publisher and prepare to consume it on multiple 'rails' (number of CPUs) + * Take a {@link Publisher} and prepare to consume it on multiple 'rails' (number of CPUs) * in a round-robin fashion. *
*
Backpressure:
@@ -100,8 +102,9 @@ protected final boolean validate(@NonNull Subscriber[] subscribers) { *
{@code from} does not operate by default on a particular {@link Scheduler}.
*
* @param the value type - * @param source the source Publisher - * @return the ParallelFlowable instance + * @param source the source {@code Publisher} + * @return the {@code ParallelFlowable} instance + * @throws NullPointerException if {@code source} is {@code null} */ @CheckReturnValue @NonNull @@ -112,7 +115,7 @@ public static ParallelFlowable from(@NonNull Publisher sourc } /** - * Take a Publisher and prepare to consume it on parallelism number of 'rails' in a round-robin fashion. + * Take a {@link Publisher} and prepare to consume it on parallelism number of 'rails' in a round-robin fashion. *
*
Backpressure:
*
The operator honors the backpressure of the parallel rails and @@ -122,9 +125,11 @@ public static ParallelFlowable from(@NonNull Publisher sourc *
{@code from} does not operate by default on a particular {@link Scheduler}.
*
* @param the value type - * @param source the source Publisher + * @param source the source {@code Publisher} * @param parallelism the number of parallel rails - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code source} is {@code null} + * @throws IllegalArgumentException if {@code parallelism} is non-positive */ @CheckReturnValue @NonNull @@ -135,9 +140,9 @@ public static ParallelFlowable from(@NonNull Publisher sourc } /** - * Take a Publisher and prepare to consume it on parallelism number of 'rails' , + * Take a {@link Publisher} and prepare to consume it on parallelism number of 'rails' , * possibly ordered and round-robin fashion and use custom prefetch amount and queue - * for dealing with the source Publisher's values. + * for dealing with the source {@code Publisher}'s values. *
*
Backpressure:
*
The operator honors the backpressure of the parallel rails and @@ -147,11 +152,13 @@ public static ParallelFlowable from(@NonNull Publisher sourc *
{@code from} does not operate by default on a particular {@link Scheduler}.
*
* @param the value type - * @param source the source Publisher + * @param source the source {@code Publisher} * @param parallelism the number of parallel rails * @param prefetch the number of values to prefetch from the source * the source until there is a rail ready to process it. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code source} is {@code null} + * @throws IllegalArgumentException if {@code parallelism} or {@code prefetch} is non-positive */ @CheckReturnValue @NonNull @@ -169,7 +176,7 @@ public static ParallelFlowable from(@NonNull Publisher sourc /** * Maps the source values on each 'rail' to another value. *

- * Note that the same mapper function may be called from multiple threads concurrently. + * Note that the same {@code mapper} function may be called from multiple threads concurrently. *

*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -179,7 +186,8 @@ public static ParallelFlowable from(@NonNull Publisher sourc *
* @param the output value type * @param mapper the mapper function turning Ts into Rs. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -194,7 +202,7 @@ public final ParallelFlowable map(@NonNull Function - * Note that the same mapper function may be called from multiple threads concurrently. + * Note that the same {@code mapper} function may be called from multiple threads concurrently. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -206,8 +214,9 @@ public final ParallelFlowable map(@NonNull Function the output value type * @param mapper the mapper function turning Ts into Rs. * @param errorHandler the enumeration that defines how to handle errors thrown - * from the mapper function - * @return the new ParallelFlowable instance + * from the {@code mapper} function + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -224,7 +233,7 @@ public final ParallelFlowable map(@NonNull Function - * Note that the same mapper function may be called from multiple threads concurrently. + * Note that the same {@code mapper} function may be called from multiple threads concurrently. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -236,9 +245,10 @@ public final ParallelFlowable map(@NonNull Function the output value type * @param mapper the mapper function turning Ts into Rs. * @param errorHandler the function called with the current repeat count and - * failure Throwable and should return one of the {@link ParallelFailureHandling} + * failure {@link Throwable} and should return one of the {@link ParallelFailureHandling} * enumeration values to indicate how to proceed. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -262,8 +272,9 @@ public final ParallelFlowable map(@NonNull FunctionScheduler: *
{@code filter} does not operate by default on a particular {@link Scheduler}.
*
- * @param predicate the function returning true to keep a value or false to drop a value - * @return the new ParallelFlowable instance + * @param predicate the function returning {@code true} to keep a value or {@code false} to drop a value + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code predicate} is {@code null} */ @CheckReturnValue @NonNull @@ -287,10 +298,11 @@ public final ParallelFlowable filter(@NonNull Predicate predicate) *
{@code filter} does not operate by default on a particular {@link Scheduler}.
*
*

History: 2.0.8 - experimental - * @param predicate the function returning true to keep a value or false to drop a value + * @param predicate the function returning {@code true} to keep a value or {@code false} to drop a value * @param errorHandler the enumeration that defines how to handle errors thrown - * from the predicate - * @return the new ParallelFlowable instance + * from the {@code predicate} + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code predicate} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -316,11 +328,12 @@ public final ParallelFlowable filter(@NonNull Predicate predicate, *

{@code map} does not operate by default on a particular {@link Scheduler}.
* *

History: 2.0.8 - experimental - * @param predicate the function returning true to keep a value or false to drop a value + * @param predicate the function returning {@code true} to keep a value or {@code false} to drop a value * @param errorHandler the function called with the current repeat count and - * failure Throwable and should return one of the {@link ParallelFailureHandling} + * failure {@link Throwable} and should return one of the {@link ParallelFailureHandling} * enumeration values to indicate how to proceed. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code predicate} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -334,19 +347,19 @@ public final ParallelFlowable filter(@NonNull Predicate predicate, } /** - * Specifies where each 'rail' will observe its incoming values with + * Specifies where each 'rail' will observe its incoming values, specified via a {@link Scheduler}, with * no work-stealing and default prefetch amount. *

- * This operator uses the default prefetch size returned by {@code Flowable.bufferSize()}. + * This operator uses the default prefetch size returned by {@link Flowable#bufferSize()}. *

- * The operator will call {@code Scheduler.createWorker()} as many - * times as this ParallelFlowable's parallelism level is. + * The operator will call {@link Scheduler#createWorker()} as many + * times as this {@code ParallelFlowable}'s parallelism level is. *

- * No assumptions are made about the Scheduler's parallelism level, - * if the Scheduler's parallelism level is lower than the ParallelFlowable's, + * No assumptions are made about the {@code Scheduler}'s parallelism level, + * if the {@code Scheduler}'s parallelism level is lower than the {@code ParallelFlowable}'s, * some rails may end up on the same thread/worker. *

- * This operator doesn't require the Scheduler to be trampolining as it + * This operator doesn't require the {@code Scheduler} to be trampolining as it * does its own built-in trampolining logic. *

*
Backpressure:
@@ -354,12 +367,13 @@ public final ParallelFlowable filter(@NonNull Predicate predicate, * requests {@link Flowable#bufferSize} amount from the upstream, followed * by 75% of that amount requested after every 75% received. *
Scheduler:
- *
{@code runOn} drains the upstream rails on the specified {@link Scheduler}'s + *
{@code runOn} drains the upstream rails on the specified {@code Scheduler}'s * {@link io.reactivex.rxjava3.core.Scheduler.Worker Worker}s.
*
* * @param scheduler the scheduler to use - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code scheduler} is {@code null} */ @CheckReturnValue @NonNull @@ -370,19 +384,19 @@ public final ParallelFlowable runOn(@NonNull Scheduler scheduler) { } /** - * Specifies where each 'rail' will observe its incoming values with + * Specifies where each 'rail' will observe its incoming values, specified via a {@link Scheduler}, with * possibly work-stealing and a given prefetch amount. *

- * This operator uses the default prefetch size returned by {@code Flowable.bufferSize()}. + * This operator uses the default prefetch size returned by {@link Flowable#bufferSize()}. *

- * The operator will call {@code Scheduler.createWorker()} as many - * times as this ParallelFlowable's parallelism level is. + * The operator will call {@link Scheduler#createWorker()} as many + * times as this {@code ParallelFlowable}'s parallelism level is. *

- * No assumptions are made about the Scheduler's parallelism level, - * if the Scheduler's parallelism level is lower than the ParallelFlowable's, + * No assumptions are made about the {@code Scheduler}'s parallelism level, + * if the {@code Scheduler}'s parallelism level is lower than the {@code ParallelFlowable}'s, * some rails may end up on the same thread/worker. *

- * This operator doesn't require the Scheduler to be trampolining as it + * This operator doesn't require the {@code Scheduler} to be trampolining as it * does its own built-in trampolining logic. *

*
Backpressure:
@@ -390,14 +404,16 @@ public final ParallelFlowable runOn(@NonNull Scheduler scheduler) { * requests the {@code prefetch} amount from the upstream, followed * by 75% of that amount requested after every 75% received. *
Scheduler:
- *
{@code runOn} drains the upstream rails on the specified {@link Scheduler}'s + *
{@code runOn} drains the upstream rails on the specified {@code Scheduler}'s * {@link io.reactivex.rxjava3.core.Scheduler.Worker Worker}s.
*
* * @param scheduler the scheduler to use * that rail's worker has run out of work. * @param prefetch the number of values to request on each 'rail' from the source - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code prefetch} is non-positive */ @CheckReturnValue @NonNull @@ -410,8 +426,8 @@ public final ParallelFlowable runOn(@NonNull Scheduler scheduler, int prefetc } /** - * Reduces all values within a 'rail' and across 'rails' with a reducer function into a single - * sequential value. + * Reduces all values within a 'rail' and across 'rails' with a reducer function into one + * {@link Flowable} sequence. *

* Note that the same reducer function may be called from multiple threads concurrently. *

@@ -422,7 +438,8 @@ public final ParallelFlowable runOn(@NonNull Scheduler scheduler, int prefetc *
{@code reduce} does not operate by default on a particular {@link Scheduler}.
*
* @param reducer the function to reduce two values into one. - * @return the new Flowable instance emitting the reduced value or empty if the ParallelFlowable was empty + * @return the new {@code Flowable} instance emitting the reduced value or empty if the current {@code ParallelFlowable} is empty + * @throws NullPointerException if {@code reducer} is {@code null} */ @CheckReturnValue @NonNull @@ -435,7 +452,7 @@ public final Flowable reduce(@NonNull BiFunction reducer) { /** * Reduces all values within a 'rail' to a single value (with a possibly different type) via - * a reducer function that is initialized on each rail from an initialSupplier value. + * a reducer function that is initialized on each rail from an {@code initialSupplier} value. *

* Note that the same mapper function may be called from multiple threads concurrently. *

@@ -449,7 +466,8 @@ public final Flowable reduce(@NonNull BiFunction reducer) { * @param initialSupplier the supplier for the initial value * @param reducer the function to reduce a previous output of reduce (or the initial value supplied) * with a current source value. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code initialSupplier} or {@code reducer} is {@code null} */ @CheckReturnValue @NonNull @@ -463,7 +481,7 @@ public final ParallelFlowable reduce(@NonNull Supplier initialSupplier /** * Merges the values from each 'rail' in a round-robin or same-order fashion and - * exposes it as a regular Publisher sequence, running with a default prefetch value + * exposes it as a regular {@link Flowable} sequence, running with a default prefetch value * for the rails. *

* This operator uses the default prefetch size returned by {@code Flowable.bufferSize()}. @@ -476,7 +494,7 @@ public final ParallelFlowable reduce(@NonNull Supplier initialSupplier *

Scheduler:
*
{@code sequential} does not operate by default on a particular {@link Scheduler}.
*
- * @return the new Flowable instance + * @return the new {@code Flowable} instance * @see ParallelFlowable#sequential(int) * @see ParallelFlowable#sequentialDelayError() */ @@ -490,7 +508,7 @@ public final Flowable sequential() { /** * Merges the values from each 'rail' in a round-robin or same-order fashion and - * exposes it as a regular Publisher sequence, running with a give prefetch value + * exposes it as a regular {@link Flowable} sequence, running with a give prefetch value * for the rails. * *
@@ -502,7 +520,8 @@ public final Flowable sequential() { *
{@code sequential} does not operate by default on a particular {@link Scheduler}.
*
* @param prefetch the prefetch amount to use for each rail - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ParallelFlowable#sequential() * @see ParallelFlowable#sequentialDelayError(int) */ @@ -517,7 +536,7 @@ public final Flowable sequential(int prefetch) { /** * Merges the values from each 'rail' in a round-robin or same-order fashion and - * exposes it as a regular Flowable sequence, running with a default prefetch value + * exposes it as a regular {@link Flowable} sequence, running with a default prefetch value * for the rails and delaying errors from all rails till all terminate. *

* This operator uses the default prefetch size returned by {@code Flowable.bufferSize()}. @@ -531,7 +550,7 @@ public final Flowable sequential(int prefetch) { *

{@code sequentialDelayError} does not operate by default on a particular {@link Scheduler}.
* *

History: 2.0.7 - experimental - * @return the new Flowable instance + * @return the new {@code Flowable} instance * @see ParallelFlowable#sequentialDelayError(int) * @see ParallelFlowable#sequential() * @since 2.2 @@ -546,7 +565,7 @@ public final Flowable sequentialDelayError() { /** * Merges the values from each 'rail' in a round-robin or same-order fashion and - * exposes it as a regular Publisher sequence, running with a give prefetch value + * exposes it as a regular {@link Flowable} sequence, running with a give prefetch value * for the rails and delaying errors from all rails till all terminate. * *

@@ -559,7 +578,8 @@ public final Flowable sequentialDelayError() { *
*

History: 2.0.7 - experimental * @param prefetch the prefetch amount to use for each rail - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ParallelFlowable#sequential() * @see ParallelFlowable#sequentialDelayError() * @since 2.2 @@ -574,10 +594,10 @@ public final Flowable sequentialDelayError(int prefetch) { } /** - * Sorts the 'rails' of this ParallelFlowable and returns a Publisher that sequentially + * Sorts the 'rails' of this {@code ParallelFlowable} and returns a {@link Flowable} that sequentially * picks the smallest next value from the rails. *

- * This operator requires a finite source ParallelFlowable. + * This operator requires a finite source {@code ParallelFlowable}. *

*
Backpressure:
*
The operator honors backpressure from the downstream and @@ -587,7 +607,8 @@ public final Flowable sequentialDelayError(int prefetch) { *
* * @param comparator the comparator to use - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code comparator} is {@code null} */ @CheckReturnValue @NonNull @@ -598,10 +619,10 @@ public final Flowable sorted(@NonNull Comparator comparator) { } /** - * Sorts the 'rails' of this ParallelFlowable and returns a Publisher that sequentially + * Sorts the 'rails' of this {@code ParallelFlowable} and returns a {@link Flowable} that sequentially * picks the smallest next value from the rails. *

- * This operator requires a finite source ParallelFlowable. + * This operator requires a finite source {@code ParallelFlowable}. *

*
Backpressure:
*
The operator honors backpressure from the downstream and @@ -612,7 +633,9 @@ public final Flowable sorted(@NonNull Comparator comparator) { * * @param comparator the comparator to use * @param capacityHint the expected number of total elements - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code comparator} is {@code null} + * @throws IllegalArgumentException if {@code capacityHint} is non-positive */ @CheckReturnValue @NonNull @@ -629,9 +652,9 @@ public final Flowable sorted(@NonNull Comparator comparator, int c } /** - * Sorts the 'rails' according to the comparator and returns a full sorted list as a Publisher. + * Sorts the 'rails' according to the comparator and returns a full sorted {@link List} as a {@link Flowable}. *

- * This operator requires a finite source ParallelFlowable. + * This operator requires a finite source {@code ParallelFlowable}. *

*
Backpressure:
*
The operator honors backpressure from the downstream and @@ -641,7 +664,8 @@ public final Flowable sorted(@NonNull Comparator comparator, int c *
* * @param comparator the comparator to compare elements - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code comparator} is {@code null} */ @CheckReturnValue @NonNull @@ -651,9 +675,9 @@ public final Flowable> toSortedList(@NonNull Comparator compa return toSortedList(comparator, 16); } /** - * Sorts the 'rails' according to the comparator and returns a full sorted list as a Publisher. + * Sorts the 'rails' according to the comparator and returns a full sorted {@link List} as a {@link Flowable}. *

- * This operator requires a finite source ParallelFlowable. + * This operator requires a finite source {@code ParallelFlowable}. *

*
Backpressure:
*
The operator honors backpressure from the downstream and @@ -664,7 +688,9 @@ public final Flowable> toSortedList(@NonNull Comparator compa * * @param comparator the comparator to compare elements * @param capacityHint the expected number of total elements - * @return the new Flowable instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code comparator} is {@code null} + * @throws IllegalArgumentException if {@code capacityHint} is non-positive */ @CheckReturnValue @NonNull @@ -694,7 +720,8 @@ public final Flowable> toSortedList(@NonNull Comparator compa *
* * @param onNext the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onNext} is {@code null} */ @CheckReturnValue @NonNull @@ -727,8 +754,9 @@ public final ParallelFlowable doOnNext(@NonNull Consumer onNext) { *

History: 2.0.8 - experimental * @param onNext the callback * @param errorHandler the enumeration that defines how to handle errors thrown - * from the onNext consumer - * @return the new ParallelFlowable instance + * from the {@code onNext} consumer + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onNext} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -754,9 +782,10 @@ public final ParallelFlowable doOnNext(@NonNull Consumer onNext, @ *

History: 2.0.8 - experimental * @param onNext the callback * @param errorHandler the function called with the current repeat count and - * failure Throwable and should return one of the {@link ParallelFailureHandling} + * failure {@link Throwable} and should return one of the {@link ParallelFailureHandling} * enumeration values to indicate how to proceed. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onNext} or {@code errorHandler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -781,7 +810,8 @@ public final ParallelFlowable doOnNext(@NonNull Consumer onNext, @ *

* * @param onAfterNext the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onAfterNext} is {@code null} */ @CheckReturnValue @NonNull @@ -812,7 +842,8 @@ public final ParallelFlowable doAfterNext(@NonNull Consumer onAfte * * * @param onError the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onError} is {@code null} */ @CheckReturnValue @NonNull @@ -833,7 +864,7 @@ public final ParallelFlowable doOnError(@NonNull Consumer onError) } /** - * Run the specified Action when a 'rail' completes. + * Run the specified {@link Action} when a 'rail' completes. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -843,7 +874,8 @@ public final ParallelFlowable doOnError(@NonNull Consumer onError) *
* * @param onComplete the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onComplete} is {@code null} */ @CheckReturnValue @NonNull @@ -864,7 +896,7 @@ public final ParallelFlowable doOnComplete(@NonNull Action onComplete) { } /** - * Run the specified Action when a 'rail' completes or signals an error. + * Run the specified {@link Action} when a 'rail' completes or signals an error. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -874,7 +906,8 @@ public final ParallelFlowable doOnComplete(@NonNull Action onComplete) { *
* * @param onAfterTerminate the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onAfterTerminate} is {@code null} */ @CheckReturnValue @NonNull @@ -895,7 +928,7 @@ public final ParallelFlowable doAfterTerminated(@NonNull Action onAfterTermin } /** - * Call the specified callback when a 'rail' receives a Subscription from its upstream. + * Call the specified callback when a 'rail' receives a {@link Subscription} from its upstream. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -905,7 +938,8 @@ public final ParallelFlowable doAfterTerminated(@NonNull Action onAfterTermin *
* * @param onSubscribe the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onSubscribe} is {@code null} */ @CheckReturnValue @NonNull @@ -936,7 +970,8 @@ public final ParallelFlowable doOnSubscribe(@NonNull Consumer * * @param onRequest the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onRequest} is {@code null} */ @CheckReturnValue @NonNull @@ -957,7 +992,7 @@ public final ParallelFlowable doOnRequest(@NonNull LongConsumer onRequest) { } /** - * Run the specified Action when a 'rail' receives a cancellation. + * Run the specified {@link Action} when a 'rail' receives a cancellation. *
*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -967,7 +1002,8 @@ public final ParallelFlowable doOnRequest(@NonNull LongConsumer onRequest) { *
* * @param onCancel the callback - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code onCancel} is {@code null} */ @BackpressureSupport(BackpressureKind.PASS_THROUGH) @SchedulerSupport(SchedulerSupport.NONE) @@ -988,7 +1024,7 @@ public final ParallelFlowable doOnCancel(@NonNull Action onCancel) { } /** - * Collect the elements in each rail into a collection supplied via a collectionSupplier + * Collect the elements in each rail into a collection supplied via a {@code collectionSupplier} * and collected into with a collector action, emitting the collection at the end. *
*
Backpressure:
@@ -1001,7 +1037,8 @@ public final ParallelFlowable doOnCancel(@NonNull Action onCancel) { * @param the collection type * @param collectionSupplier the supplier of the collection in each rail * @param collector the collector, taking the per-rail collection and the current item - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code collectionSupplier} or {@code collector} is {@code null} */ @CheckReturnValue @NonNull @@ -1014,7 +1051,7 @@ public final ParallelFlowable collect(@NonNull Supplier coll } /** - * Wraps multiple Publishers into a ParallelFlowable which runs them + * Wraps multiple {@link Publisher}s into a {@code ParallelFlowable} which runs them * in parallel and unordered. *
*
Backpressure:
@@ -1026,7 +1063,8 @@ public final ParallelFlowable collect(@NonNull Supplier coll * * @param the value type * @param publishers the array of publishers - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code publishers} is {@code null} * @throws IllegalArgumentException if {@code publishers} is an empty array */ @CheckReturnValue @@ -1055,9 +1093,9 @@ public final ParallelFlowable collect(@NonNull Supplier coll *
*

History: 2.1.7 - experimental * @param the resulting object type - * @param converter the function that receives the current ParallelFlowable instance and returns a value + * @param converter the function that receives the current {@code ParallelFlowable} instance and returns a value * @return the converted value - * @throws NullPointerException if converter is null + * @throws NullPointerException if {@code converter} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -1069,8 +1107,8 @@ public final ParallelFlowable collect(@NonNull Supplier coll } /** - * Allows composing operators, in assembly time, on top of this ParallelFlowable - * and returns another ParallelFlowable with composed features. + * Allows composing operators, in assembly time, on top of this {@code ParallelFlowable} + * and returns another {@code ParallelFlowable} with composed features. *

*
Backpressure:
*
The operator is a pass-through for backpressure and the behavior @@ -1080,8 +1118,9 @@ public final ParallelFlowable collect(@NonNull Supplier coll *
* * @param the output value type - * @param composer the composer function from ParallelFlowable (this) to another ParallelFlowable - * @return the ParallelFlowable returned by the function + * @param composer the composer function from {@code ParallelFlowable} (this) to another {@code ParallelFlowable} + * @return the {@code ParallelFlowable} returned by the function + * @throws NullPointerException if {@code composer} is {@code null} */ @CheckReturnValue @NonNull @@ -1092,9 +1131,9 @@ public final ParallelFlowable compose(@NonNull ParallelTransformer } /** - * Generates and flattens Publishers on each 'rail'. + * Generates and flattens {@link Publisher}s on each 'rail'. *

- * Errors are not delayed and uses unbounded concurrency along with default inner prefetch. + * The errors are not delayed and uses unbounded concurrency along with default inner prefetch. *

*
Backpressure:
*
The operator honors backpressure from the downstream rails and @@ -1107,8 +1146,9 @@ public final ParallelFlowable compose(@NonNull ParallelTransformer *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher - * @return the new ParallelFlowable instance + * @param mapper the function to map each rail's value into a {@code Publisher} + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -1119,7 +1159,7 @@ public final ParallelFlowable flatMap(@NonNull Function * It uses unbounded concurrency along with default inner prefetch. *
@@ -1135,9 +1175,10 @@ public final ParallelFlowable flatMap(@NonNull Function * * @param the result type - * @param mapper the function to map each rail's value into a Publisher + * @param mapper the function to map each rail's value into a {@code Publisher} * @param delayError should the errors from the main and the inner sources delayed till everybody terminates? - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -1149,8 +1190,8 @@ public final ParallelFlowable flatMap( } /** - * Generates and flattens Publishers on each 'rail', optionally delaying errors - * and having a total number of simultaneous subscriptions to the inner Publishers. + * Generates and flattens {@link Publisher}s on each 'rail', optionally delaying errors + * and having a total number of simultaneous subscriptions to the inner {@code Publisher}s. *

* It uses a default inner prefetch. *

@@ -1166,10 +1207,12 @@ public final ParallelFlowable flatMap( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher + * @param mapper the function to map each rail's value into a {@code Publisher} * @param delayError should the errors from the main and the inner sources delayed till everybody terminates? - * @param maxConcurrency the maximum number of simultaneous subscriptions to the generated inner Publishers - * @return the new ParallelFlowable instance + * @param maxConcurrency the maximum number of simultaneous subscriptions to the generated inner {@code Publisher}s + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive */ @CheckReturnValue @NonNull @@ -1181,9 +1224,9 @@ public final ParallelFlowable flatMap( } /** - * Generates and flattens Publishers on each 'rail', optionally delaying errors, - * having a total number of simultaneous subscriptions to the inner Publishers - * and using the given prefetch amount for the inner Publishers. + * Generates and flattens {@link Publisher}s on each 'rail', optionally delaying errors, + * having a total number of simultaneous subscriptions to the inner {@code Publisher}s + * and using the given prefetch amount for the inner {@code Publisher}s. *
*
Backpressure:
*
The operator honors backpressure from the downstream rails and @@ -1197,11 +1240,13 @@ public final ParallelFlowable flatMap( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher + * @param mapper the function to map each rail's value into a {@code Publisher} * @param delayError should the errors from the main and the inner sources delayed till everybody terminates? - * @param maxConcurrency the maximum number of simultaneous subscriptions to the generated inner Publishers - * @param prefetch the number of items to prefetch from each inner Publisher - * @return the new ParallelFlowable instance + * @param maxConcurrency the maximum number of simultaneous subscriptions to the generated inner {@code Publisher}s + * @param prefetch the number of items to prefetch from each inner {@code Publisher} + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} or {@code prefetch} is non-positive */ @CheckReturnValue @NonNull @@ -1217,7 +1262,7 @@ public final ParallelFlowable flatMap( } /** - * Generates and concatenates Publishers on each 'rail', signalling errors immediately + * Generates and concatenates {@link Publisher}s on each 'rail', signalling errors immediately * and generating 2 publishers upfront. *
*
Backpressure:
@@ -1230,9 +1275,10 @@ public final ParallelFlowable flatMap( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher - * source and the inner Publishers (immediate, boundary, end) - * @return the new ParallelFlowable instance + * @param mapper the function to map each rail's value into a {@code Publisher} + * source and the inner {@code Publisher}s (immediate, boundary, end) + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -1244,8 +1290,8 @@ public final ParallelFlowable concatMap( } /** - * Generates and concatenates Publishers on each 'rail', signalling errors immediately - * and using the given prefetch amount for generating Publishers upfront. + * Generates and concatenates {@link Publisher}s on each 'rail', signalling errors immediately + * and using the given prefetch amount for generating {@code Publisher}s upfront. *
*
Backpressure:
*
The operator honors backpressure from the downstream rails and @@ -1258,10 +1304,12 @@ public final ParallelFlowable concatMap( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher - * @param prefetch the number of items to prefetch from each inner Publisher - * source and the inner Publishers (immediate, boundary, end) - * @return the new ParallelFlowable instance + * @param mapper the function to map each rail's value into a {@code Publisher} + * @param prefetch the number of items to prefetch from each inner {@code Publisher} + * source and the inner {@code Publisher}s (immediate, boundary, end) + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} + * @throws IllegalArgumentException if {@code prefetch} is non-positive */ @CheckReturnValue @NonNull @@ -1276,7 +1324,7 @@ public final ParallelFlowable concatMap( } /** - * Generates and concatenates Publishers on each 'rail', optionally delaying errors + * Generates and concatenates {@link Publisher}s on each 'rail', optionally delaying errors * and generating 2 publishers upfront. *
*
Backpressure:
@@ -1289,11 +1337,12 @@ public final ParallelFlowable concatMap( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher - * @param tillTheEnd if true all errors from the upstream and inner Publishers are delayed - * till all of them terminate, if false, the error is emitted when an inner Publisher terminates. - * source and the inner Publishers (immediate, boundary, end) - * @return the new ParallelFlowable instance + * @param mapper the function to map each rail's value into a {@code Publisher} + * @param tillTheEnd if {@code true}, all errors from the upstream and inner {@code Publisher}s are delayed + * till all of them terminate, if {@code false}, the error is emitted when an inner {@code Publisher} terminates. + * source and the inner {@code Publisher}s (immediate, boundary, end) + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -1306,8 +1355,8 @@ public final ParallelFlowable concatMapDelayError( } /** - * Generates and concatenates Publishers on each 'rail', optionally delaying errors - * and using the given prefetch amount for generating Publishers upfront. + * Generates and concatenates {@link Publisher}s on each 'rail', optionally delaying errors + * and using the given prefetch amount for generating {@code Publisher}s upfront. *
*
Backpressure:
*
The operator honors backpressure from the downstream rails and @@ -1320,11 +1369,13 @@ public final ParallelFlowable concatMapDelayError( *
* * @param the result type - * @param mapper the function to map each rail's value into a Publisher - * @param prefetch the number of items to prefetch from each inner Publisher - * @param tillTheEnd if true all errors from the upstream and inner Publishers are delayed - * till all of them terminate, if false, the error is emitted when an inner Publisher terminates. - * @return the new ParallelFlowable instance + * @param mapper the function to map each rail's value into a {@code Publisher} + * @param prefetch the number of items to prefetch from each inner {@code Publisher} + * @param tillTheEnd if {@code true}, all errors from the upstream and inner {@code Publisher}s are delayed + * till all of them terminate, if {@code false}, the error is emitted when an inner {@code Publisher} terminates. + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} + * @throws IllegalArgumentException if {@code prefetch} is non-positive */ @CheckReturnValue @NonNull @@ -1348,7 +1399,7 @@ public final ParallelFlowable concatMapDelayError( *
Backpressure:
*
The operator honors backpressure from each downstream rail. The source {@code ParallelFlowable}s is * expected to honor backpressure as well. If the source {@code ParallelFlowable} violates the rule, the operator will - * signal a {@code MissingBackpressureException}.
+ * signal a {@link MissingBackpressureException}. *
Scheduler:
*
{@code flatMapIterable} does not operate by default on a particular {@link Scheduler}.
*
@@ -1358,10 +1409,11 @@ public final ParallelFlowable concatMapDelayError( * @param mapper * a function that returns an {@code Iterable} sequence of values for when given an item emitted by the * source {@code ParallelFlowable} - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance * @see ReactiveX operators documentation: FlatMap * @see #flatMapStream(Function) * @since 3.0.0 + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @@ -1373,14 +1425,14 @@ public final ParallelFlowable flatMapIterable(@NonNull Function * *
*
Backpressure:
*
The operator honors backpressure from each downstream rail. The source {@code ParallelFlowable}s is * expected to honor backpressure as well. If the source {@code ParallelFlowable} violates the rule, the operator will - * signal a {@code MissingBackpressureException}.
+ * signal a {@link MissingBackpressureException}. *
Scheduler:
*
{@code flatMapIterable} does not operate by default on a particular {@link Scheduler}.
*
@@ -1396,6 +1448,8 @@ public final ParallelFlowable flatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #flatMapStream(Function, int) * @since 3.0.0 + * @throws NullPointerException if {@code mapper} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive */ @CheckReturnValue @NonNull @@ -1424,8 +1478,9 @@ public final ParallelFlowable flatMapIterable(@NonNull Function * @param the output value type * @param mapper the mapper function turning Ts into optional of Rs. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance * @since 3.0.0 + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @NonNull @@ -1453,8 +1508,9 @@ public final ParallelFlowable mapOptional(@NonNull Function ParallelFlowable mapOptional(@NonNull Function the output value type * @param mapper the mapper function turning Ts into optional of Rs. * @param errorHandler the function called with the current repeat count and - * failure Throwable and should return one of the {@link ParallelFailureHandling} + * failure {@link Throwable} and should return one of the {@link ParallelFailureHandling} * enumeration values to indicate how to proceed. - * @return the new ParallelFlowable instance + * @return the new {@code ParallelFlowable} instance + * @throws NullPointerException if {@code mapper} or {@code errorHandler} is {@code null} * @since 3.0.0 */ @CheckReturnValue @@ -1502,11 +1559,11 @@ public final ParallelFlowable mapOptional(@NonNull Function * *

- * Due to the blocking and sequential nature of Java {@link Stream}s, the streams are mapped and consumed in a sequential fashion + * Due to the blocking and sequential nature of Java {@code Stream}s, the streams are mapped and consumed in a sequential fashion * without interleaving (unlike a more general {@link #flatMap(Function)}). Therefore, {@code flatMapStream} and * {@code concatMapStream} are identical operators and are provided as aliases. *

- * The operator closes the {@code Stream} upon cancellation and when it terminates. Exceptions raised when + * The operator closes the {@code Stream} upon cancellation and when it terminates. The exceptions raised when * closing a {@code Stream} are routed to the global error handler ({@link RxJavaPlugins#onError(Throwable)}. * If a {@code Stream} should not be closed, turn it into an {@link Iterable} and use {@link #flatMapIterable(Function)}: *


@@ -1536,7 +1593,8 @@ public final  ParallelFlowable mapOptional(@NonNull Function the element type of the {@code Stream}s and the result
      * @param mapper the function that receives an upstream item and should return a {@code Stream} whose elements
      * will be emitted to the downstream
-     * @return the new Flowable instance
+     * @return the new {@code ParallelFlowable} instance
+     * @throws NullPointerException if {@code mapper} is {@code null}
      * @see #flatMap(Function)
      * @see #flatMapIterable(Function)
      * @see #flatMapStream(Function, int)
@@ -1555,11 +1613,11 @@ public final  ParallelFlowable mapOptional(@NonNull Function
      * 
      * 

- * Due to the blocking and sequential nature of Java {@link Stream}s, the streams are mapped and consumed in a sequential fashion + * Due to the blocking and sequential nature of Java {@code Stream}s, the streams are mapped and consumed in a sequential fashion * without interleaving (unlike a more general {@link #flatMap(Function)}). Therefore, {@code flatMapStream} and * {@code concatMapStream} are identical operators and are provided as aliases. *

- * The operator closes the {@code Stream} upon cancellation and when it terminates. Exceptions raised when + * The operator closes the {@code Stream} upon cancellation and when it terminates. The exceptions raised when * closing a {@code Stream} are routed to the global error handler ({@link RxJavaPlugins#onError(Throwable)}. * If a {@code Stream} should not be closed, turn it into an {@link Iterable} and use {@link #flatMapIterable(Function, int)}: *


@@ -1589,7 +1647,9 @@ public final  ParallelFlowable mapOptional(@NonNull Function ParallelFlowable mapOptional(@NonNull Function
      * Each parallel rail receives its own {@link Collector#accumulator()} and
      * {@link Collector#combiner()}.
@@ -1620,7 +1680,8 @@ public final  ParallelFlowable mapOptional(@NonNull Function the accumulator type
      * @param  the output value type
      * @param collector the {@code Collector} instance
-     * @return the new Flowable instance emitting the collected value.
+     * @return the new {@code Flowable} instance emitting the collected value.
+     * @throws NullPointerException if {@code collector} is {@code null}
      * @since 3.0.0
      */
     @CheckReturnValue
diff --git a/src/main/java/io/reactivex/rxjava3/processors/ReplayProcessor.java b/src/main/java/io/reactivex/rxjava3/processors/ReplayProcessor.java
index b7880d6833..6e903e5aab 100644
--- a/src/main/java/io/reactivex/rxjava3/processors/ReplayProcessor.java
+++ b/src/main/java/io/reactivex/rxjava3/processors/ReplayProcessor.java
@@ -190,10 +190,12 @@ public static  ReplayProcessor create() {
      * @param capacityHint
      *          the initial buffer capacity
      * @return the created processor
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplayProcessor create(int capacityHint) {
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
         return new ReplayProcessor<>(new UnboundedReplayBuffer<>(capacityHint));
     }
 
@@ -216,10 +218,12 @@ public static  ReplayProcessor create(int capacityHint) {
      * @param maxSize
      *          the maximum number of buffered items
      * @return the created processor
+     * @throws IllegalArgumentException if {@code maxSize} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplayProcessor createWithSize(int maxSize) {
+        ObjectHelper.verifyPositive(maxSize, "maxSize");
         return new ReplayProcessor<>(new SizeBoundReplayBuffer<>(maxSize));
     }
 
@@ -272,10 +276,15 @@ public static  ReplayProcessor createWithSize(int maxSize) {
      * @param scheduler
      *          the {@link Scheduler} that provides the current time
      * @return the created processor
+     * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
+     * @throws IllegalArgumentException if {@code maxAge} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplayProcessor createWithTime(long maxAge, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) {
+        ObjectHelper.verifyPositive(maxAge, "maxAge");
+        Objects.requireNonNull(unit, "unit is null");
+        Objects.requireNonNull(scheduler, "scheduler is null");
         return new ReplayProcessor<>(new SizeAndTimeBoundReplayBuffer<>(Integer.MAX_VALUE, maxAge, unit, scheduler));
     }
 
@@ -312,10 +321,16 @@ public static  ReplayProcessor createWithTime(long maxAge, @NonNull TimeUn
      * @param scheduler
      *          the {@link Scheduler} that provides the current time
      * @return the created processor
+     * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
+     * @throws IllegalArgumentException if {@code maxAge} or {@code maxSize} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplayProcessor createWithTimeAndSize(long maxAge, @NonNull TimeUnit unit, @NonNull Scheduler scheduler, int maxSize) {
+        ObjectHelper.verifyPositive(maxSize, "maxSize");
+        ObjectHelper.verifyPositive(maxAge, "maxAge");
+        Objects.requireNonNull(unit, "unit is null");
+        Objects.requireNonNull(scheduler, "scheduler is null");
         return new ReplayProcessor<>(new SizeAndTimeBoundReplayBuffer<>(maxSize, maxAge, unit, scheduler));
     }
 
@@ -645,7 +660,7 @@ static final class UnboundedReplayBuffer
         volatile int size;
 
         UnboundedReplayBuffer(int capacityHint) {
-            this.buffer = new ArrayList<>(ObjectHelper.verifyPositive(capacityHint, "capacityHint"));
+            this.buffer = new ArrayList<>(capacityHint);
         }
 
         @Override
@@ -845,7 +860,7 @@ static final class SizeBoundReplayBuffer
         volatile boolean done;
 
         SizeBoundReplayBuffer(int maxSize) {
-            this.maxSize = ObjectHelper.verifyPositive(maxSize, "maxSize");
+            this.maxSize = maxSize;
             Node h = new Node<>(null);
             this.tail = h;
             this.head = h;
@@ -1061,10 +1076,10 @@ static final class SizeAndTimeBoundReplayBuffer
         volatile boolean done;
 
         SizeAndTimeBoundReplayBuffer(int maxSize, long maxAge, TimeUnit unit, Scheduler scheduler) {
-            this.maxSize = ObjectHelper.verifyPositive(maxSize, "maxSize");
-            this.maxAge = ObjectHelper.verifyPositive(maxAge, "maxAge");
-            this.unit = Objects.requireNonNull(unit, "unit is null");
-            this.scheduler = Objects.requireNonNull(scheduler, "scheduler is null");
+            this.maxSize = maxSize;
+            this.maxAge = maxAge;
+            this.unit = unit;
+            this.scheduler = scheduler;
             TimedNode h = new TimedNode<>(null, 0L);
             this.tail = h;
             this.head = h;
diff --git a/src/main/java/io/reactivex/rxjava3/processors/UnicastProcessor.java b/src/main/java/io/reactivex/rxjava3/processors/UnicastProcessor.java
index eab7da4f05..a1af942d8d 100644
--- a/src/main/java/io/reactivex/rxjava3/processors/UnicastProcessor.java
+++ b/src/main/java/io/reactivex/rxjava3/processors/UnicastProcessor.java
@@ -179,7 +179,7 @@ public final class UnicastProcessor extends FlowableProcessor {
     @CheckReturnValue
     @NonNull
     public static  UnicastProcessor create() {
-        return create(bufferSize(), Functions.EMPTY_RUNNABLE, true);
+        return new UnicastProcessor<>(bufferSize(), null, true);
     }
 
     /**
@@ -187,11 +187,13 @@ public static  UnicastProcessor create() {
      * @param  the value type
      * @param capacityHint the hint to size the internal unbounded buffer
      * @return an UnicastProcessor instance
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  UnicastProcessor create(int capacityHint) {
-        return create(capacityHint, Functions.EMPTY_RUNNABLE, true);
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
+        return new UnicastProcessor<>(capacityHint, null, true);
     }
 
     /**
@@ -205,7 +207,7 @@ public static  UnicastProcessor create(int capacityHint) {
     @CheckReturnValue
     @NonNull
     public static  UnicastProcessor create(boolean delayError) {
-        return create(bufferSize(), Functions.EMPTY_RUNNABLE, delayError);
+        return new UnicastProcessor<>(bufferSize(), null, delayError);
     }
 
     /**
@@ -220,6 +222,8 @@ public static  UnicastProcessor create(boolean delayError) {
      * @param capacityHint the hint to size the internal unbounded buffer
      * @param onTerminate the non null callback
      * @return an UnicastProcessor instance
+     * @throws NullPointerException if {@code onTerminate} is {@code null}
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
@@ -240,11 +244,15 @@ public static  UnicastProcessor create(int capacityHint, @NonNull Runnable
      * @param onTerminate the non null callback
      * @param delayError deliver pending onNext events before onError
      * @return an UnicastProcessor instance
+     * @throws NullPointerException if {@code onTerminate} is {@code null}
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      * @since 2.2
      */
     @CheckReturnValue
     @NonNull
     public static  UnicastProcessor create(int capacityHint, @NonNull Runnable onTerminate, boolean delayError) {
+        Objects.requireNonNull(onTerminate, "onTerminate");
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
         return new UnicastProcessor<>(capacityHint, onTerminate, delayError);
     }
 
@@ -258,8 +266,8 @@ public static  UnicastProcessor create(int capacityHint, @NonNull Runnable
      * @since 2.2
      */
     UnicastProcessor(int capacityHint, Runnable onTerminate, boolean delayError) {
-        this.queue = new SpscLinkedArrayQueue<>(ObjectHelper.verifyPositive(capacityHint, "capacityHint"));
-        this.onTerminate = new AtomicReference<>(Objects.requireNonNull(onTerminate, "onTerminate"));
+        this.queue = new SpscLinkedArrayQueue<>(capacityHint);
+        this.onTerminate = new AtomicReference<>(onTerminate);
         this.delayError = delayError;
         this.downstream = new AtomicReference<>();
         this.once = new AtomicBoolean();
diff --git a/src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java b/src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java
index d7f5516e7d..abc51887f8 100644
--- a/src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java
+++ b/src/main/java/io/reactivex/rxjava3/subjects/BehaviorSubject.java
@@ -176,7 +176,7 @@ public final class BehaviorSubject extends Subject {
     @CheckReturnValue
     @NonNull
     public static  BehaviorSubject create() {
-        return new BehaviorSubject<>();
+        return new BehaviorSubject<>(null);
     }
 
     /**
@@ -189,38 +189,30 @@ public static  BehaviorSubject create() {
      *            the item that will be emitted first to any {@link Observer} as long as the
      *            {@link BehaviorSubject} has not yet observed any items from its source {@code Observable}
      * @return the constructed {@link BehaviorSubject}
+     * @throws NullPointerException if {@code defaultValue} is {@code null}
      */
     @CheckReturnValue
     @NonNull
     public static <@NonNull T> BehaviorSubject createDefault(T defaultValue) {
+        Objects.requireNonNull(defaultValue, "defaultValue is null");
         return new BehaviorSubject<>(defaultValue);
     }
 
     /**
      * Constructs an empty BehaviorSubject.
+     * @param defaultValue the initial value, not null (verified)
      * @since 2.0
      */
     @SuppressWarnings("unchecked")
-    BehaviorSubject() {
+    BehaviorSubject(T defaultValue) {
         this.lock = new ReentrantReadWriteLock();
         this.readLock = lock.readLock();
         this.writeLock = lock.writeLock();
         this.subscribers = new AtomicReference<>(EMPTY);
-        this.value = new AtomicReference<>();
+        this.value = new AtomicReference<>(defaultValue);
         this.terminalEvent = new AtomicReference<>();
     }
 
-    /**
-     * Constructs a BehaviorSubject with the given initial value.
-     * @param defaultValue the initial value, not null (verified)
-     * @throws NullPointerException if {@code defaultValue} is {@code null}
-     * @since 2.0
-     */
-    BehaviorSubject(T defaultValue) {
-        this();
-        this.value.lazySet(Objects.requireNonNull(defaultValue, "defaultValue is null"));
-    }
-
     @Override
     protected void subscribeActual(Observer observer) {
         BehaviorDisposable bs = new BehaviorDisposable<>(observer, this);
diff --git a/src/main/java/io/reactivex/rxjava3/subjects/ReplaySubject.java b/src/main/java/io/reactivex/rxjava3/subjects/ReplaySubject.java
index efad31e669..a956035c3d 100644
--- a/src/main/java/io/reactivex/rxjava3/subjects/ReplaySubject.java
+++ b/src/main/java/io/reactivex/rxjava3/subjects/ReplaySubject.java
@@ -177,10 +177,12 @@ public static  ReplaySubject create() {
      * @param capacityHint
      *          the initial buffer capacity
      * @return the created subject
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplaySubject create(int capacityHint) {
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
         return new ReplaySubject<>(new UnboundedReplayBuffer<>(capacityHint));
     }
 
@@ -203,10 +205,12 @@ public static  ReplaySubject create(int capacityHint) {
      * @param maxSize
      *          the maximum number of buffered items
      * @return the created subject
+     * @throws IllegalArgumentException if {@code maxSize} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplaySubject createWithSize(int maxSize) {
+        ObjectHelper.verifyPositive(maxSize, "maxSize");
         return new ReplaySubject<>(new SizeBoundReplayBuffer<>(maxSize));
     }
 
@@ -258,10 +262,15 @@ public static  ReplaySubject createWithSize(int maxSize) {
      * @param scheduler
      *          the {@link Scheduler} that provides the current time
      * @return the created subject
+     * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
+     * @throws IllegalArgumentException if {@code maxAge} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplaySubject createWithTime(long maxAge, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) {
+        ObjectHelper.verifyPositive(maxAge, "maxAge");
+        Objects.requireNonNull(unit, "unit is null");
+        Objects.requireNonNull(scheduler, "scheduler is null");
         return new ReplaySubject<>(new SizeAndTimeBoundReplayBuffer<>(Integer.MAX_VALUE, maxAge, unit, scheduler));
     }
 
@@ -298,10 +307,16 @@ public static  ReplaySubject createWithTime(long maxAge, @NonNull TimeUnit
      * @param scheduler
      *          the {@link Scheduler} that provides the current time
      * @return the created subject
+     * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
+     * @throws IllegalArgumentException if {@code maxAge} or {@code maxSize} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  ReplaySubject createWithTimeAndSize(long maxAge, @NonNull TimeUnit unit, @NonNull Scheduler scheduler, int maxSize) {
+        ObjectHelper.verifyPositive(maxSize, "maxSize");
+        ObjectHelper.verifyPositive(maxAge, "maxAge");
+        Objects.requireNonNull(unit, "unit is null");
+        Objects.requireNonNull(scheduler, "scheduler is null");
         return new ReplaySubject<>(new SizeAndTimeBoundReplayBuffer<>(maxSize, maxAge, unit, scheduler));
     }
 
@@ -646,7 +661,7 @@ static final class UnboundedReplayBuffer
         volatile int size;
 
         UnboundedReplayBuffer(int capacityHint) {
-            this.buffer = new ArrayList<>(ObjectHelper.verifyPositive(capacityHint, "capacityHint"));
+            this.buffer = new ArrayList<>(capacityHint);
         }
 
         @Override
@@ -848,7 +863,7 @@ static final class SizeBoundReplayBuffer
         volatile boolean done;
 
         SizeBoundReplayBuffer(int maxSize) {
-            this.maxSize = ObjectHelper.verifyPositive(maxSize, "maxSize");
+            this.maxSize = maxSize;
             Node h = new Node<>(null);
             this.tail = h;
             this.head = h;
@@ -1061,10 +1076,10 @@ static final class SizeAndTimeBoundReplayBuffer
         volatile boolean done;
 
         SizeAndTimeBoundReplayBuffer(int maxSize, long maxAge, TimeUnit unit, Scheduler scheduler) {
-            this.maxSize = ObjectHelper.verifyPositive(maxSize, "maxSize");
-            this.maxAge = ObjectHelper.verifyPositive(maxAge, "maxAge");
-            this.unit = Objects.requireNonNull(unit, "unit is null");
-            this.scheduler = Objects.requireNonNull(scheduler, "scheduler is null");
+            this.maxSize = maxSize;
+            this.maxAge = maxAge;
+            this.unit = unit;
+            this.scheduler = scheduler;
             TimedNode h = new TimedNode<>(null, 0L);
             this.tail = h;
             this.head = h;
diff --git a/src/main/java/io/reactivex/rxjava3/subjects/UnicastSubject.java b/src/main/java/io/reactivex/rxjava3/subjects/UnicastSubject.java
index 5e19604eed..63afa9c335 100644
--- a/src/main/java/io/reactivex/rxjava3/subjects/UnicastSubject.java
+++ b/src/main/java/io/reactivex/rxjava3/subjects/UnicastSubject.java
@@ -180,7 +180,7 @@ public final class UnicastSubject extends Subject {
     @CheckReturnValue
     @NonNull
     public static  UnicastSubject create() {
-        return create(bufferSize(), Functions.EMPTY_RUNNABLE, true);
+        return new UnicastSubject<>(bufferSize(), null, true);
     }
 
     /**
@@ -188,11 +188,13 @@ public static  UnicastSubject create() {
      * @param  the value type
      * @param capacityHint the hint to size the internal unbounded buffer
      * @return an UnicastSubject instance
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  UnicastSubject create(int capacityHint) {
-        return create(capacityHint, Functions.EMPTY_RUNNABLE, true);
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
+        return new UnicastSubject<>(capacityHint, null, true);
     }
 
     /**
@@ -207,11 +209,15 @@ public static  UnicastSubject create(int capacityHint) {
      * @param capacityHint the hint to size the internal unbounded buffer
      * @param onTerminate the callback to run when the Subject is terminated or cancelled, null not allowed
      * @return an UnicastSubject instance
+     * @throws NullPointerException if {@code onTerminate} is {@code null}
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      */
     @CheckReturnValue
     @NonNull
     public static  UnicastSubject create(int capacityHint, @NonNull Runnable onTerminate) {
-        return create(capacityHint, onTerminate, true);
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
+        Objects.requireNonNull(onTerminate, "onTerminate");
+        return new UnicastSubject<>(capacityHint, onTerminate, true);
     }
 
     /**
@@ -227,11 +233,15 @@ public static  UnicastSubject create(int capacityHint, @NonNull Runnable o
      * @param onTerminate the callback to run when the Subject is terminated or cancelled, null not allowed
      * @param delayError deliver pending onNext events before onError
      * @return an UnicastSubject instance
+     * @throws NullPointerException if {@code onTerminate} is {@code null}
+     * @throws IllegalArgumentException if {@code capacityHint} is non-positive
      * @since 2.2
      */
     @CheckReturnValue
     @NonNull
     public static  UnicastSubject create(int capacityHint, @NonNull Runnable onTerminate, boolean delayError) {
+        ObjectHelper.verifyPositive(capacityHint, "capacityHint");
+        Objects.requireNonNull(onTerminate, "onTerminate");
         return new UnicastSubject<>(capacityHint, onTerminate, delayError);
     }
 
@@ -249,7 +259,7 @@ public static  UnicastSubject create(int capacityHint, @NonNull Runnable o
     @CheckReturnValue
     @NonNull
     public static  UnicastSubject create(boolean delayError) {
-        return create(bufferSize(), Functions.EMPTY_RUNNABLE, delayError);
+        return new UnicastSubject<>(bufferSize(), null, delayError);
     }
 
     /**
@@ -262,8 +272,8 @@ public static  UnicastSubject create(boolean delayError) {
      * @since 2.2
      */
     UnicastSubject(int capacityHint, Runnable onTerminate, boolean delayError) {
-        this.queue = new SpscLinkedArrayQueue<>(ObjectHelper.verifyPositive(capacityHint, "capacityHint"));
-        this.onTerminate = new AtomicReference<>(Objects.requireNonNull(onTerminate, "onTerminate"));
+        this.queue = new SpscLinkedArrayQueue<>(capacityHint);
+        this.onTerminate = new AtomicReference<>(onTerminate);
         this.delayError = delayError;
         this.downstream = new AtomicReference<>();
         this.once = new AtomicBoolean();
diff --git a/src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSkipTest.java b/src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSkipTest.java
index deb672124a..cb902082c3 100644
--- a/src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSkipTest.java
+++ b/src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableSkipTest.java
@@ -31,7 +31,7 @@
 
 public class FlowableSkipTest extends RxJavaTest {
 
-    @Test
+    @Test(expected = IllegalArgumentException.class)
     public void skipNegativeElements() {
 
         Flowable skip = Flowable.just("one", "two", "three").skip(-99);
diff --git a/src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableSkipTest.java b/src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableSkipTest.java
index fbd5572246..93c4694616 100644
--- a/src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableSkipTest.java
+++ b/src/test/java/io/reactivex/rxjava3/internal/operators/observable/ObservableSkipTest.java
@@ -27,7 +27,7 @@
 
 public class ObservableSkipTest extends RxJavaTest {
 
-    @Test
+    @Test(expected = IllegalArgumentException.class)
     public void skipNegativeElements() {
 
         Observable skip = Observable.just("one", "two", "three").skip(-99);
diff --git a/src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java b/src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java
index 30dc074813..55cecb6097 100644
--- a/src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java
+++ b/src/test/java/io/reactivex/rxjava3/validators/JavadocCodesAndLinks.java
@@ -55,6 +55,16 @@ public void checkObservable() throws Exception {
         checkSource("Observable", "io.reactivex.rxjava3.core");
     }
 
+    @Test
+    public void checkParallelFlowable() throws Exception {
+        checkSource("ParallelFlowable", "io.reactivex.rxjava3.parallel");
+    }
+
+    @Test
+    public void checkCompositeDisposable() throws Exception {
+        checkSource("CompositeDisposable", "io.reactivex.rxjava3.disposables");
+    }
+
     static void checkSource(String baseClassName, String packageName) throws Exception {
         File f = TestHelper.findSource(baseClassName, packageName);
         if (f == null) {
@@ -376,7 +386,7 @@ static void blankRange(StringBuilder builder, int start, int end) {
 
             "Supplier", "Callable", "TimeUnit",
 
-            "BackpressureOverflowStrategy",
+            "BackpressureOverflowStrategy", "ParallelFailureHandling",
 
             "Exception", "Throwable", "NullPointerException", "IllegalStateException", "IllegalArgumentException", "MissingBackpressureException", "UndeliverableException",
             "OutOfMemoryError", "StackOverflowError", "NoSuchElementException", "ClassCastException", "CompositeException",
diff --git a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationCheckerTest.java b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationCheckerTest.java
index b46f59f42a..f9becca37c 100644
--- a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationCheckerTest.java
+++ b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationCheckerTest.java
@@ -93,7 +93,7 @@ public void checkParallelFlowable() {
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.NON_NEGATIVE, "elementAtOrError", Long.TYPE));
 
         // negative skip count is ignored
-        addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "skip", Long.TYPE));
+        addOverride(new ParamOverride(Flowable.class, 0, ParamMode.NON_NEGATIVE, "skip", Long.TYPE));
         // negative skip time is considered as zero skip time
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "skip", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "skip", Long.TYPE, TimeUnit.class, Scheduler.class));
@@ -126,9 +126,6 @@ public void checkParallelFlowable() {
         // negative timeout is allowed
         addOverride(new ParamOverride(Flowable.class, 1, ParamMode.ANY, "fromFuture", Future.class, Long.TYPE, TimeUnit.class));
 
-        // null default is allowed
-        addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "blockingLast", Object.class));
-
         // negative time is considered as zero time
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "timer", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "timer", Long.TYPE, TimeUnit.class, Scheduler.class));
@@ -152,9 +149,6 @@ public void checkParallelFlowable() {
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "delaySubscription", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "delaySubscription", Long.TYPE, TimeUnit.class, Scheduler.class));
 
-        // null default is allowed
-        addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "blockingFirst", Object.class));
-
         // negative time is considered as zero time
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "debounce", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Flowable.class, 0, ParamMode.ANY, "debounce", Long.TYPE, TimeUnit.class, Scheduler.class));
@@ -351,7 +345,7 @@ public void checkParallelFlowable() {
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.NON_NEGATIVE, "elementAtOrError", Long.TYPE));
 
         // negative skip count is ignored
-        addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "skip", Long.TYPE));
+        addOverride(new ParamOverride(Observable.class, 0, ParamMode.NON_NEGATIVE, "skip", Long.TYPE));
         // negative skip time is considered as zero skip time
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "skip", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "skip", Long.TYPE, TimeUnit.class, Scheduler.class));
@@ -380,9 +374,6 @@ public void checkParallelFlowable() {
         // negative timeout is allowed
         addOverride(new ParamOverride(Observable.class, 1, ParamMode.ANY, "fromFuture", Future.class, Long.TYPE, TimeUnit.class));
 
-        // null default is allowed
-        addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "blockingLast", Object.class));
-
         // negative time is considered as zero time
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "timer", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "timer", Long.TYPE, TimeUnit.class, Scheduler.class));
@@ -406,9 +397,6 @@ public void checkParallelFlowable() {
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "delaySubscription", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "delaySubscription", Long.TYPE, TimeUnit.class, Scheduler.class));
 
-        // null default is allowed
-        addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "blockingFirst", Object.class));
-
         // negative time is considered as zero time
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "debounce", Long.TYPE, TimeUnit.class));
         addOverride(new ParamOverride(Observable.class, 0, ParamMode.ANY, "debounce", Long.TYPE, TimeUnit.class, Scheduler.class));
diff --git a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java
index e19048f473..fe5ed0ad36 100644
--- a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java
+++ b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java
@@ -21,7 +21,7 @@
 
 import io.reactivex.rxjava3.core.*;
 import io.reactivex.rxjava3.core.Observable;
-import io.reactivex.rxjava3.disposables.Disposable;
+import io.reactivex.rxjava3.disposables.*;
 import io.reactivex.rxjava3.flowables.ConnectableFlowable;
 import io.reactivex.rxjava3.observables.ConnectableObservable;
 import io.reactivex.rxjava3.parallel.ParallelFlowable;
@@ -172,6 +172,11 @@ public void checkMulticastProcessor() throws Exception {
         processFile(MulticastProcessor.class);
     }
 
+    @Test
+    public void checkCompositeDisposable() throws Exception {
+        processFile(CompositeDisposable.class);
+    }
+
     static void processFile(Class clazz) throws Exception {
         String baseClassName = clazz.getSimpleName();
         File f = TestHelper.findSource(baseClassName, clazz.getPackage().getName());
@@ -200,7 +205,11 @@ static void processFile(Class clazz) throws Exception {
 
                     String message = line.substring(quote + 1, quote + 2 + paramName.length());
 
-                    if (!line.contains("The RxJavaPlugins")
+                    if (line.contains("\"A Disposable")) {
+                        continue;
+                    }
+
+                    if (!line.contains("\"The RxJavaPlugins")
                             && !(message.startsWith(paramName)
                             && (message.endsWith(" ") || message.endsWith("\"")))) {
                         errorCount++;
@@ -220,21 +229,14 @@ static void processFile(Class clazz) throws Exception {
                         ;
                     }
 
-                    // FIXME enable for other types in separate PR!
-                    if (!baseClassName.equals("Completable")
-                            && !baseClassName.equals("Single")
-                            && !baseClassName.equals("Maybe")
-                            && !baseClassName.equals("Observable")
-                    ) {
-                        continue;
-                    }
-
                     int midx = j - 1;
                     // find the method declaration
                     for (; midx >= 0; midx--) {
                         String linek = lines.get(midx).trim();
                         if (linek.startsWith("public") || linek.startsWith("private")
-                                || linek.startsWith("protected")) {
+                                || linek.startsWith("protected")
+                                || linek.startsWith("static")
+                                || linek.startsWith(baseClassName)) {
                             break;
                         }
                     }
@@ -300,7 +302,9 @@ static void processFile(Class clazz) throws Exception {
                     for (; midx >= 0; midx--) {
                         String linek = lines.get(midx).trim();
                         if (linek.startsWith("public") || linek.startsWith("private")
-                                || linek.startsWith("protected")) {
+                                || linek.startsWith("protected")
+                                || linek.startsWith("static")
+                                || linek.startsWith(baseClassName)) {
                             break;
                         }
                     }
@@ -340,6 +344,78 @@ static void processFile(Class clazz) throws Exception {
                     }
                 }
             }
+
+            if (line.startsWith("public") || line.startsWith("protected") || line.startsWith("final") || line.startsWith("private")
+                    || line.startsWith("static")) {
+                for (ValidatorStrings validatorStr : TYPICAL_ARGUMENT_STRINGS) {
+                    // find the method declaration ending {
+                    for (int i = j; i < lines.size(); i++) {
+                        String linei = lines.get(i).trim();
+
+                        // space + code for capturing type declarations
+                        String varPattern = " " + validatorStr.code;
+                        if (linei.contains(varPattern + ")")
+                                || linei.contains(varPattern + ",")
+                                || linei.endsWith(varPattern)) {
+                            // ignore nullable-annotated arguments
+                            if (!linei.matches(".*\\@Nullable\\s.*" + validatorStr.code + ".*")) {
+                                boolean found = false;
+                                for (int k = i - 1; k >= 0; k--) {
+                                    String linek = lines.get(k).trim();
+                                    if (linek.startsWith("/**")) {
+                                        break;
+                                    }
+                                    if (linek.startsWith("}")) {
+                                        found = true; // no method JavaDoc present
+                                        break;
+                                    }
+                                    if (linek.startsWith(validatorStr.javadoc)) {
+                                        // see if a @code paramName is present
+                                        String paramStr = "{@code " + validatorStr.code + "}";
+                                        for (int m = k; m < lines.size(); m++) {
+                                            String linem = lines.get(m).trim();
+                                            if (linem.startsWith("* @see")
+                                                    || linem.startsWith("* @since")
+                                                    || linem.startsWith("*/")) {
+                                                break;
+                                            }
+                                            if (linem.contains(paramStr)) {
+                                                found = true;
+                                                break;
+                                            }
+                                        }
+                                        break;
+                                    }
+                                }
+
+                                if (!found) {
+                                    errorCount++;
+                                    errors.append("L")
+                                    .append(j)
+                                    .append(" : missing '")
+                                    .append(validatorStr.javadoc)
+                                    .append("' for typical argument: ")
+                                    .append(validatorStr.code)
+                                    .append("\r\n    ")
+                                    .append(line)
+                                    .append("\r\n at ")
+                                    .append(fullClassName)
+                                    .append(".method(")
+                                    .append(f.getName())
+                                    .append(":")
+                                    .append(j + 1)
+                                    .append(")\r\n")
+                                    ;
+                                }
+                            }
+                        }
+
+                        if (linei.endsWith("{") || linei.endsWith(";")) {
+                            break;
+                        }
+                    }
+                }
+            }
         }
 
         if (errorCount != 0) {
@@ -369,4 +445,49 @@ static final class ValidatorStrings {
             new ValidatorStrings("throw new IndexOutOfBoundsException(", "* @throws IndexOutOfBoundsException")
     );
 
+    static final List TYPICAL_ARGUMENT_STRINGS = Arrays.asList(
+            new ValidatorStrings("source", "* @throws NullPointerException"),
+            new ValidatorStrings("source1", "* @throws NullPointerException"),
+            new ValidatorStrings("source2", "* @throws NullPointerException"),
+            new ValidatorStrings("source3", "* @throws NullPointerException"),
+            new ValidatorStrings("source4", "* @throws NullPointerException"),
+            new ValidatorStrings("source5", "* @throws NullPointerException"),
+            new ValidatorStrings("source6", "* @throws NullPointerException"),
+            new ValidatorStrings("source7", "* @throws NullPointerException"),
+            new ValidatorStrings("source8", "* @throws NullPointerException"),
+            new ValidatorStrings("source9", "* @throws NullPointerException"),
+            new ValidatorStrings("sources", "* @throws NullPointerException"),
+            new ValidatorStrings("mapper", "* @throws NullPointerException"),
+            new ValidatorStrings("combiner", "* @throws NullPointerException"),
+            new ValidatorStrings("zipper", "* @throws NullPointerException"),
+            new ValidatorStrings("predicate", "* @throws NullPointerException"),
+            new ValidatorStrings("item", "* @throws NullPointerException"),
+            new ValidatorStrings("item1", "* @throws NullPointerException"),
+            new ValidatorStrings("item2", "* @throws NullPointerException"),
+            new ValidatorStrings("item3", "* @throws NullPointerException"),
+            new ValidatorStrings("item4", "* @throws NullPointerException"),
+            new ValidatorStrings("item5", "* @throws NullPointerException"),
+            new ValidatorStrings("item6", "* @throws NullPointerException"),
+            new ValidatorStrings("item7", "* @throws NullPointerException"),
+            new ValidatorStrings("item8", "* @throws NullPointerException"),
+            new ValidatorStrings("item9", "* @throws NullPointerException"),
+            new ValidatorStrings("item10", "* @throws NullPointerException"),
+            new ValidatorStrings("unit", "* @throws NullPointerException"),
+            new ValidatorStrings("scheduler", "* @throws NullPointerException"),
+            new ValidatorStrings("other", "* @throws NullPointerException"),
+            new ValidatorStrings("fallback", "* @throws NullPointerException"),
+            new ValidatorStrings("defaultItem", "* @throws NullPointerException"),
+            new ValidatorStrings("defaultValue", "* @throws NullPointerException"),
+            new ValidatorStrings("stop", "* @throws NullPointerException"),
+            new ValidatorStrings("stopPredicate", "* @throws NullPointerException"),
+            new ValidatorStrings("handler", "* @throws NullPointerException"),
+
+            new ValidatorStrings("prefetch", "* @throws IllegalArgumentException"),
+            new ValidatorStrings("bufferSize", "* @throws IllegalArgumentException"),
+            new ValidatorStrings("capacityHint", "* @throws IllegalArgumentException"),
+            new ValidatorStrings("count", "* @throws IllegalArgumentException"),
+            new ValidatorStrings("skip", "* @throws IllegalArgumentException"),
+            new ValidatorStrings("times", "* @throws IllegalArgumentException")
+    );
+
 }

From a40d4e73c413c3eb905cf525662c6b2bc2294029 Mon Sep 17 00:00:00 2001
From: akarnokd 
Date: Fri, 10 Jan 2020 14:50:55 +0100
Subject: [PATCH 2/3] More cleanup

---
 .../reactivex/rxjava3/core/Completable.java   |   2 +
 .../io/reactivex/rxjava3/core/Flowable.java   | 362 +++++++++++++++---
 .../io/reactivex/rxjava3/core/Observable.java |  20 +-
 .../validators/ParamValidationNaming.java     |  43 ++-
 4 files changed, 361 insertions(+), 66 deletions(-)

diff --git a/src/main/java/io/reactivex/rxjava3/core/Completable.java b/src/main/java/io/reactivex/rxjava3/core/Completable.java
index 27ff402b91..9d785d96d5 100644
--- a/src/main/java/io/reactivex/rxjava3/core/Completable.java
+++ b/src/main/java/io/reactivex/rxjava3/core/Completable.java
@@ -1655,6 +1655,7 @@ public final Completable doOnSubscribe(@NonNull Consumer onS
      * 
      * @param onTerminate the {@code Action} to call just before this {@code Completable} terminates
      * @return the new {@code Completable} instance
+     * @throws NullPointerException if {@code onTerminate} is {@code null}
      * @see #doFinally(Action)
      */
     @CheckReturnValue
@@ -1677,6 +1678,7 @@ public final Completable doOnTerminate(@NonNull Action onTerminate) {
      * 
      * @param onAfterTerminate the {@code Action} to call after this {@code Completable} terminates
      * @return the new {@code Completable} instance
+     * @throws NullPointerException if {@code onAfterTerminate} is {@code null}
      * @see #doFinally(Action)
      */
     @CheckReturnValue
diff --git a/src/main/java/io/reactivex/rxjava3/core/Flowable.java b/src/main/java/io/reactivex/rxjava3/core/Flowable.java
index a1881c85da..94b082ef8c 100644
--- a/src/main/java/io/reactivex/rxjava3/core/Flowable.java
+++ b/src/main/java/io/reactivex/rxjava3/core/Flowable.java
@@ -3627,6 +3627,7 @@ public static  Flowable merge(
      *            the {@code Iterable} of {@code Publisher}s
      * @return a {@code Flowable} that emits items that are the result of flattening the items emitted by the
      *         {@code Publisher}s in the {@code Iterable}
+     * @throws NullPointerException if {@code sources} is {@code null}
      * @see ReactiveX operators documentation: Merge
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -3668,6 +3669,8 @@ public static  Flowable mergeDelayError(@NonNull IterableReactiveX operators documentation: Merge
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -3709,6 +3712,8 @@ public static  Flowable mergeDelayError(@NonNull IterableReactiveX operators documentation: Merge
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -3749,6 +3754,8 @@ public static  Flowable mergeArrayDelayError(int maxConcurrency, int buffe
      *            the maximum number of {@code Publisher}s that may be subscribed to concurrently
      * @return a {@code Flowable} that emits items that are the result of flattening the items emitted by the
      *         {@code Publisher}s in the {@code Iterable}
+     * @throws NullPointerException if {@code sources} is {@code null}
+     * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive
      * @see ReactiveX operators documentation: Merge
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -3787,6 +3794,7 @@ public static  Flowable mergeDelayError(@NonNull IterableReactiveX operators documentation: Merge
      */
     @CheckReturnValue
@@ -4261,6 +4269,8 @@ public static  Single sequenceEqual(@NonNull Publisher
      * @param 
      *            the type of items emitted by each {@code Publisher}
      * @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same
+     * @throws NullPointerException if {@code source1} or {@code source2} is {@code null}
+     * @throws IllegalArgumentException if {@code bufferSize} is non-positive
      * @see ReactiveX operators documentation: SequenceEqual
      */
     @CheckReturnValue
@@ -4301,6 +4311,8 @@ public static  Single sequenceEqual(@NonNull Publisher
      *            the number of items to prefetch from the inner {@code Publisher}s
      * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} most recently emitted by the source
      *         {@code Publisher}
+     * @throws NullPointerException if {@code sources} is {@code null}
+     * @throws IllegalArgumentException if {@code bufferSize} is non-positive
      * @see ReactiveX operators documentation: Switch
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -4340,6 +4352,7 @@ public static  Flowable switchOnNext(@NonNull PublisherReactiveX operators documentation: Switch
      */
     @SuppressWarnings({ "unchecked", "rawtypes" })
@@ -4380,6 +4393,7 @@ public static  Flowable switchOnNext(@NonNull PublisherReactiveX operators documentation: Switch
      * @since 2.0
      */
@@ -4422,6 +4436,8 @@ public static  Flowable switchOnNextDelayError(@NonNull PublisherReactiveX operators documentation: Switch
      * @since 2.0
      */
@@ -4450,6 +4466,7 @@ public static  Flowable switchOnNextDelayError(@NonNull PublisherReactiveX operators documentation: Timer
      */
     @CheckReturnValue
@@ -4903,6 +4920,7 @@ public static  Flowable zip(
      * @param bufferSize the number of elements to prefetch from each source {@code Publisher}
      * @return a {@code Flowable} that emits the zipped results
      * @throws NullPointerException if {@code source1}, {@code source2} or {@code zipper} is {@code null}
+     * @throws IllegalArgumentException if {@code bufferSize} is non-positive
      * @see ReactiveX operators documentation: Zip
      */
     @CheckReturnValue
@@ -5746,6 +5764,7 @@ public final T blockingFirst(@NonNull T defaultItem) {
      *
      * @param onNext
      *            the {@code Consumer} to invoke for each item emitted by the {@code Flowable}
+     * @throws NullPointerException if {@code onNext} is {@code null}
      * @throws RuntimeException
      *             if an error occurs; {@code Error}s and {@code RuntimeException}s are rethrown
      *             as they are, checked {@code Exception}s are wrapped into {@code RuntimeException}s
@@ -6065,6 +6084,7 @@ public final T blockingSingle() {
      *            a default value to return if this {@code Flowable} emits no items
      * @return the single item emitted by this {@code Flowable}, or the default value if it emits no
      *         items
+     * @throws NullPointerException if {@code defaultItem} is {@code null}
      * @see ReactiveX documentation: First
      */
     @CheckReturnValue
@@ -6149,6 +6169,7 @@ public final void blockingSubscribe() {
      *  
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
* * @param onNext the callback action for each source value + * @throws NullPointerException if {@code onNext} is {@code null} * @since 2.0 * @see #blockingSubscribe(Consumer, Consumer) * @see #blockingSubscribe(Consumer, Consumer, Action) @@ -6181,6 +6202,8 @@ public final void blockingSubscribe(@NonNull Consumer onNext) { *

History: 2.1.15 - experimental * @param onNext the callback action for each source value * @param bufferSize the size of the buffer + * @throws NullPointerException if {@code onNext} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see #blockingSubscribe(Consumer, Consumer) * @see #blockingSubscribe(Consumer, Consumer, Action) * @since 2.2 @@ -6206,6 +6229,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, int buf * * @param onNext the callback action for each source value * @param onError the callback action for an error event + * @throws NullPointerException if {@code onNext} or {@code onError} is {@code null} * @since 2.0 * @see #blockingSubscribe(Consumer, Consumer, Action) */ @@ -6232,6 +6256,8 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * @param onNext the callback action for each source value * @param onError the callback action for an error event * @param bufferSize the size of the buffer + * @throws NullPointerException if {@code onNext} or {@code onError} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @since 2.2 * @see #blockingSubscribe(Consumer, Consumer, Action) */ @@ -6258,6 +6284,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * @param onNext the callback action for each source value * @param onError the callback action for an error event * @param onComplete the callback action for the completion event. + * @throws NullPointerException if {@code onNext}, {@code onError} or {@code onComplete} is {@code null} * @since 2.0 */ @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @@ -6284,12 +6311,14 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * @param onError the callback action for an error event * @param onComplete the callback action for the completion event. * @param bufferSize the size of the buffer + * @throws NullPointerException if {@code onNext}, {@code onError} or {@code onComplete} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @since 2.2 */ @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) public final void blockingSubscribe(@NonNull Consumer onNext, @NonNull Consumer onError, @NonNull Action onComplete, - int bufferSize) { + int bufferSize) { FlowableBlockingSubscribe.subscribe(this, onNext, onError, onComplete, bufferSize); } @@ -6340,6 +6369,7 @@ public final void blockingSubscribe(@NonNull Subscriber subscriber) { * the maximum number of items in each buffer before it should be emitted * @return a {@code Flowable} that emits connected, non-overlapping buffers, each containing at most * {@code count} items from the source {@code Publisher} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6375,6 +6405,7 @@ public final Flowable> buffer(int count) { * {@link #buffer(int)}. * @return a {@code Flowable} that emits buffers for every {@code skip} item from the source {@code Publisher} and * containing at most {@code count} items + * @throws IllegalArgumentException if {@code count} or {@code skip} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6454,6 +6485,8 @@ public final > Flowable buffer(int count, int * as the buffer * @return a {@code Flowable} that emits connected, non-overlapping buffers, each containing at most * {@code count} items from the source {@code Publisher} + * @throws NullPointerException if {@code bufferSupplier} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6489,6 +6522,7 @@ public final > Flowable buffer(int count, @No * the unit of time that applies to the {@code timespan} and {@code timeskip} arguments * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after * a fixed timespan has elapsed + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6527,6 +6561,7 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim * the {@code Scheduler} to use when determining the end and start of a buffer * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after * a fixed timespan has elapsed + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6569,6 +6604,7 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim * as the buffer * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after * a fixed timespan has elapsed + * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code bufferSupplier} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6607,6 +6643,7 @@ public final > Flowable buffer(long timespan, * the unit of time that applies to the {@code timespan} argument * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source * {@code Publisher} within a fixed duration + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6644,6 +6681,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit) { * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source * {@code Publisher}, after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6684,6 +6723,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, int * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source * {@code Publisher} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6730,6 +6771,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source * {@code Publisher} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) + * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code bufferSupplier} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6774,6 +6817,7 @@ public final > Flowable buffer( * the {@code Scheduler} to use when determining the end and start of a buffer * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source * {@code Publisher} within a fixed duration + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6809,6 +6853,7 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No * {@code Publisher} emits an item, the associated buffer is emitted. * @return a {@code Flowable} that emits buffers, containing items from the source {@code Publisher}, that are created * and closed when the specified {@code Publisher}s emit items + * @throws NullPointerException if {@code openingIndicator} or {@code closingIndicator} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6850,6 +6895,7 @@ public final Flowable> buffer( * as the buffer * @return a {@code Flowable} that emits buffers, containing items from the source {@code Publisher}, that are created * and closed when the specified {@code Publisher}s emit items + * @throws NullPointerException if {@code openingIndicator}, {@code closingIndicator} or {@code bufferSupplier} is {@code null} * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @@ -6890,6 +6936,7 @@ public final > Flowable b * the boundary {@code Publisher} * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} * emits an item + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @see #buffer(Publisher, int) * @see ReactiveX operators documentation: Buffer */ @@ -6927,6 +6974,8 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato * the initial capacity of each buffer chunk * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} * emits an item + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} + * @throws IllegalArgumentException if {@code initialCapacity} is non-positive * @see ReactiveX operators documentation: Buffer * @see #buffer(Publisher) */ @@ -6967,6 +7016,7 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato * as the buffer * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} * emits an item + * @throws NullPointerException if {@code boundaryIndicator} or {@code bufferSupplier} is {@code null} * @see #buffer(Publisher, int) * @see ReactiveX operators documentation: Buffer */ @@ -7094,6 +7144,7 @@ public final Flowable cache() { * @param initialCapacity hint for number of items to cache (for optimizing underlying data structure) * @return a {@code Flowable} that, when first subscribed to, caches all of its items and notifications for the * benefit of subsequent subscribers + * @throws IllegalArgumentException if {@code initialCapacity} is non-positive * @see ReactiveX operators documentation: Replay * @see #takeUntil(Predicate) * @see #takeUntil(Publisher) @@ -7126,6 +7177,7 @@ public final Flowable cacheWithInitialCapacity(int initialCapacity) { * into before emitting them from the resulting {@code Publisher} * @return a {@code Flowable} that emits each item from the source {@code Publisher} after converting it to the * specified type + * @throws NullPointerException if {@code clazz} is {@code null} * @see ReactiveX operators documentation: Map */ @CheckReturnValue @@ -7164,6 +7216,7 @@ public final Flowable cast(@NonNull Class clazz) { * accordingly * @return a {@code Single} that emits the result of collecting the values emitted by the source {@code Publisher} * into a single mutable data structure + * @throws NullPointerException if {@code initialItemSupplier} or {@code collector} is {@code null} * @see ReactiveX operators documentation: Reduce * @see #collect(Collector) */ @@ -7204,6 +7257,7 @@ public final Single collect(@NonNull Supplier initialItemSup * accordingly * @return a {@code Single} that emits the result of collecting the values emitted by the source {@code Publisher} * into a single mutable data structure + * @throws NullPointerException if {@code initialItem} or {@code collector} is {@code null} * @see ReactiveX operators documentation: Reduce */ @CheckReturnValue @@ -7235,6 +7289,7 @@ public final Single collect(@NonNull Supplier initialItemSup * @param the value type of the output {@code Publisher} * @param composer implements the function that transforms the source {@code Publisher} * @return the source {@code Publisher}, transformed by the transformer function + * @throws NullPointerException if {@code composer} is {@code null} * @see RxJava wiki: Implementing Your Own Operators */ @SuppressWarnings("unchecked") @@ -7273,6 +7328,7 @@ public final Flowable compose(@NonNull FlowableTransformerReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -7312,6 +7368,7 @@ public final Flowable concatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #concatMap(Function, int, Scheduler) @@ -7364,6 +7421,7 @@ public final Flowable concatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 3.0.0 @@ -7398,6 +7456,7 @@ public final Flowable concatMap(@NonNull Function the result value type * @param mapper the function that maps the items of this {@code Publisher} into the inner {@code Publisher}s. * @return the new {@code Publisher} instance with the concatenation behavior + * @throws NullPointerException if {@code mapper} is {@code null} * @see #concatMapDelayError(Function, boolean, int, Scheduler) */ @CheckReturnValue @@ -7612,6 +7676,7 @@ public final Flowable concatMapDelayError(@NonNull Function Flowable concatMapDelayError(@NonNull Function Flowable concatMapDelayError(@NonNull Function Flowable concatMapEager(@NonNull Function Flowable concatMapEager(@NonNull Function Flowable concatMapEagerDelayError(@NonNull Function Flowable concatMapEagerDelayError(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -7867,6 +7938,7 @@ public final Flowable concatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @@ -7900,6 +7972,7 @@ public final Flowable concatMapIterable(@NonNull Function Flowable concatMapMaybe(@NonNull Function Flowable concatMapMaybe(@NonNull Function Flowable concatMapMaybeDelayError(@NonNull Function Flowable concatMapMaybeDelayError(@NonNull Function Flowable concatMapMaybeDelayError(@NonNull Function Flowable concatMapSingle(@NonNull Function Flowable concatMapSingle(@NonNull Function Flowable concatMapSingleDelayError(@NonNull Function Flowable concatMapSingleDelayError(@NonNull Function Flowable concatMapSingleDelayError(@NonNull FunctionReactiveX operators documentation: Concat */ @CheckReturnValue @@ -8294,6 +8377,7 @@ public final Flowable concatWith(@NonNull Publisher other) { *

History: 2.1.10 - experimental * @param other the {@code SingleSource} whose signal should be emitted after this {@code Flowable} completes normally. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -8320,6 +8404,7 @@ public final Flowable concatWith(@NonNull SingleSource other) { *

History: 2.1.10 - experimental * @param other the {@code MaybeSource} whose signal should be emitted after this {@code Flowable} completes normally. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -8348,6 +8433,7 @@ public final Flowable concatWith(@NonNull MaybeSource other) { *

History: 2.1.10 - experimental * @param other the {@code CompletableSource} to subscribe to once the current {@code Flowable} completes normally * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -8376,6 +8462,7 @@ public final Flowable concatWith(@NonNull CompletableSource other) { * the item to search for in the emissions from the source {@code Publisher} * @return a {@code Single} that emits {@code true} if the specified item is emitted by the source {@code Publisher}, * or {@code false} if the source {@code Publisher} completes without emitting that item + * @throws NullPointerException if {@code item} is {@code null} * @see ReactiveX operators documentation: Contains */ @CheckReturnValue @@ -8439,6 +8526,7 @@ public final Single count() { * function to retrieve a sequence that indicates the throttle duration for each item * @return a {@code Flowable} that omits items emitted by the source {@code Publisher} that are followed by another item * within a computed debounce duration + * @throws NullPointerException if {@code debounceIndicator} is {@code null} * @see ReactiveX operators documentation: Debounce * @see RxJava wiki: Backpressure */ @@ -8482,6 +8570,7 @@ public final Flowable debounce(@NonNull FunctionReactiveX operators documentation: Debounce * @see RxJava wiki: Backpressure * @see #throttleWithTimeout(long, TimeUnit) @@ -8527,6 +8616,7 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit) { * item * @return a {@code Flowable} that filters out items from the source {@code Publisher} that are too quickly followed by * newer items + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Debounce * @see RxJava wiki: Backpressure * @see #throttleWithTimeout(long, TimeUnit, Scheduler) @@ -8560,6 +8650,7 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit, @NonNull * the item to emit if the source {@code Publisher} emits no items * @return a {@code Flowable} that emits either the specified default item if the source {@code Publisher} emits no * items, or the items emitted by the source {@code Publisher} + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: DefaultIfEmpty */ @CheckReturnValue @@ -8596,6 +8687,7 @@ public final Flowable defaultIfEmpty(@NonNull T defaultItem) { * returned from {@code itemDelay} emits an item * @return a {@code Flowable} that delays the emissions of the source {@code Publisher} via another {@code Publisher} on a * per-item basis + * @throws NullPointerException if {@code itemDelayIndicator} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8624,6 +8716,7 @@ public final Flowable delay(@NonNull FunctionReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8654,6 +8747,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit) { * if {@code true}, the upstream exception is signaled with the given delay, after all preceding normal elements, * if {@code false}, the upstream exception is signaled immediately * @return the source {@code Publisher} shifted in time by the specified delay + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8683,6 +8777,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, boolean delay * @param scheduler * the {@code Scheduler} to use for delaying * @return the source {@code Publisher} shifted in time by the specified delay + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8715,6 +8810,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche * if {@code true}, the upstream exception is signaled with the given delay, after all preceding normal elements, * if {@code false}, the upstream exception is signaled immediately * @return the source {@code Publisher} shifted in time by the specified delay + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8785,6 +8881,7 @@ public final Flowable delay(@NonNull Publisher subscriptionIndicato * to this {@code Publisher}. * @return a {@code Flowable} that delays the subscription to this {@code Publisher} * until the other {@code Publisher} emits an element or completes normally. + * @throws NullPointerException if {@code subscriptionIndicator} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -8812,6 +8909,7 @@ public final Flowable delaySubscription(@NonNull Publisher subscriptio * @param unit * the time unit of {@code delay} * @return a {@code Flowable} that delays the subscription to the source {@code Publisher} by the given amount + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8842,6 +8940,7 @@ public final Flowable delaySubscription(long delay, @NonNull TimeUnit unit) { * the {@code Scheduler} on which the waiting and subscription will happen * @return a {@code Flowable} that delays the subscription to the source {@code Publisher} by a given * amount, waiting and subscribing on the given {@code Scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @CheckReturnValue @@ -8899,6 +8998,7 @@ public final Flowable delaySubscription(long delay, @NonNull TimeUnit unit, @ * the corresponding {@code Subscriber} event to the downstream. * @return a {@code Flowable} that emits the items and notifications embedded in the {@code Notification} objects * selected from the items emitted by the source {@code Flowable} + * @throws NullPointerException if {@code selector} is {@code null} * @see ReactiveX operators documentation: Dematerialize * @since 3.0.0 */ @@ -8986,6 +9086,7 @@ public final Flowable distinct() { * a function that projects an emitted item to a key value that is used to decide whether an item * is distinct from another one or not * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} that have distinct keys + * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: Distinct * @see #distinct(Function, Supplier) */ @@ -9022,6 +9123,7 @@ public final Flowable distinct(@NonNull Function keySelecto * function called for each individual {@link Subscriber} to return a {@link Collection} subtype for holding the extracted * keys and whose add() method's return indicates uniqueness. * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} that have distinct keys + * @throws NullPointerException if {@code keySelector} or {@code collectionSupplier} is {@code null} * @see ReactiveX operators documentation: Distinct */ @CheckReturnValue @@ -9114,6 +9216,7 @@ public final Flowable distinctUntilChanged() { * is distinct from another one or not * @return a {@code Flowable} that emits those items from the source {@code Publisher} whose keys are distinct from * those of their immediate predecessors + * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: Distinct */ @CheckReturnValue @@ -9152,6 +9255,7 @@ public final Flowable distinctUntilChanged(@NonNull FunctionReactiveX operators documentation: Distinct * @since 2.0 */ @@ -9183,6 +9287,7 @@ public final Flowable distinctUntilChanged(@NonNull BiPredicate *

History: 2.0.1 - experimental * @param onFinally the action called when this {@code Flowable} terminates or gets canceled + * @throws NullPointerException if {@code onFinally} is {@code null} * @return the new {@code Flowable} instance * @since 2.1 */ @@ -9211,6 +9316,7 @@ public final Flowable doFinally(@NonNull Action onFinally) { * *

History: 2.0.1 - experimental * @param onAfterNext the {@link Consumer} that will be called after emitting an item from upstream to the downstream + * @throws NullPointerException if {@code onAfterNext} is {@code null} * @return the new {@code Flowable} instance * @since 2.1 */ @@ -9240,6 +9346,7 @@ public final Flowable doAfterNext(@NonNull Consumer onAfterNext) { * an {@code Action} to be invoked when the source {@code Publisher} finishes * @return a {@code Flowable} that emits the same items as the source {@code Publisher}, then invokes the * {@code Action} + * @throws NullPointerException if {@code onAfterTerminate} is {@code null} * @see ReactiveX operators documentation: Do * @see #doOnTerminate(Action) */ @@ -9273,6 +9380,7 @@ public final Flowable doAfterTerminate(@NonNull Action onAfterTerminate) { * @param onCancel * the action that gets called when the source {@link Publisher}'s {@link Subscription} is canceled * @return the source {@code Publisher} modified so as to call this {@code Action} when appropriate + * @throws NullPointerException if {@code onCancel} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9298,6 +9406,7 @@ public final Flowable doOnCancel(@NonNull Action onCancel) { * @param onComplete * the action to invoke when the source {@code Publisher} calls {@code onComplete} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onComplete} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9323,6 +9432,7 @@ public final Flowable doOnComplete(@NonNull Action onComplete) { * * * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onNext}, {@code onError}, {@code onComplete} or {@code onAfterTerminate} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9353,6 +9463,7 @@ private Flowable doOnEach(@NonNull Consumer onNext, @NonNull Consu * @param onNotification * the action to invoke for each item emitted by the source {@code Publisher} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onNotification} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9390,6 +9501,7 @@ public final Flowable doOnEach(@NonNull Consumer<@NonNull ? super Notificatio * the {@code Subscriber} to be notified about {@code onNext}, {@code onError} and {@code onComplete} events on its * respective methods before the actual downstream {@code Subscriber} gets notified. * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code subscriber} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9423,6 +9535,7 @@ public final Flowable doOnEach(@NonNull Subscriber subscriber) { * @param onError * the action to invoke if the source {@code Publisher} calls {@code onError} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onError} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9454,6 +9567,7 @@ public final Flowable doOnError(@NonNull Consumer onError) * @param onCancel * called when the downstream cancels the {@code Subscription} via {@link Subscription#cancel()} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onSubscribe}, {@code onRequest} or {@code onCancel} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9483,6 +9597,7 @@ public final Flowable doOnLifecycle(@NonNull Consumer o * @param onNext * the action to invoke when the source {@code Publisher} calls {@code onNext} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onNext} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9512,6 +9627,7 @@ public final Flowable doOnNext(@NonNull Consumer onNext) { * the action that gets called when a {@link Subscriber} requests items from this * {@code Publisher} * @return the source {@code Publisher} modified so as to call this {@link Action} when appropriate + * @throws NullPointerException if {@code onRequest} is {@code null} * @see ReactiveX operators * documentation: Do * @since 2.0 @@ -9542,6 +9658,7 @@ public final Flowable doOnRequest(@NonNull LongConsumer onRequest) { * @param onSubscribe * the {@link Consumer} that gets called when a {@link Subscriber} subscribes to the current {@code Flowable} * @return the source {@code Publisher} modified so as to call this {@code Consumer} when appropriate + * @throws NullPointerException if {@code onSubscribe} is {@code null} * @see ReactiveX operators documentation: Do */ @CheckReturnValue @@ -9571,6 +9688,7 @@ public final Flowable doOnSubscribe(@NonNull Consumer o * @param onTerminate * the action to invoke when the source {@code Publisher} calls {@code onComplete} or {@code onError} * @return the source {@code Publisher} with the side-effecting behavior applied + * @throws NullPointerException if {@code onTerminate} is {@code null} * @see ReactiveX operators documentation: Do * @see #doAfterTerminate(Action) */ @@ -9631,6 +9749,7 @@ public final Maybe elementAt(long index) { * the default item * @return a {@code Single} that emits the item at the specified position in the sequence emitted by the source * {@code Publisher}, or the default item if that index is outside the bounds of the source sequence + * @throws NullPointerException if {@code defaultItem} is {@code null} * @throws IndexOutOfBoundsException * if {@code index} is negative * @see ReactiveX operators documentation: ElementAt @@ -9695,6 +9814,7 @@ public final Single elementAtOrError(long index) { * if it passes the filter * @return a {@code Flowable} that emits only those items emitted by the source {@code Publisher} that the filter * evaluates as {@code true} + * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: Filter */ @CheckReturnValue @@ -9745,6 +9865,7 @@ public final Maybe firstElement() { * the default item to emit if the source {@code Publisher} doesn't emit anything * @return a {@code Single} that emits only the very first item from the source, or a default item if the * source {@code Publisher} completes without emitting any items + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: First */ @CheckReturnValue @@ -9801,6 +9922,7 @@ public final Single firstOrError() { * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted * by the source {@code Publisher} and merging the results of the {@code Publisher}s obtained from this * transformation + * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -9837,6 +9959,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -9873,6 +9996,8 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -9913,6 +10038,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -9955,6 +10081,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 @@ -10006,6 +10133,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10052,6 +10180,8 @@ public final Flowable flatMap( * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @return a {@code Flowable} that emits the results of merging the {@code Publisher}s returned from applying the * specified functions to the emissions and notifications of the source {@code Publisher} + * @throws NullPointerException if {@code onNextMapper}, {@code onErrorMapper} or {@code onCompleteSupplier} is {@code null} + * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive * @see ReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10097,6 +10227,7 @@ public final Flowable flatMap( * returns an item to be emitted by the resulting {@code Publisher} * @return a {@code Flowable} that emits the results of applying a function to a pair of values emitted by the * source {@code Publisher} and the collection {@code Publisher} + * @throws NullPointerException if {@code mapper} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10137,6 +10268,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10180,6 +10312,8 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10226,6 +10360,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 @@ -10272,6 +10407,8 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10295,6 +10432,7 @@ public final Flowable flatMap(@NonNull Function * @param mapper the function that received each source value and transforms them into {@code CompletableSource}s. * @return the new {@link Completable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @@ -10320,6 +10458,8 @@ public final Completable flatMapCompletable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10383,6 +10524,7 @@ public final Flowable flatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @@ -10418,11 +10560,12 @@ public final Flowable flatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap */ @CheckReturnValue @@ -10430,10 +10573,10 @@ public final Flowable flatMapIterable(@NonNull Function Flowable flatMapIterable(@NonNull Function> mapper, - @NonNull BiFunction resultSelector) { + @NonNull BiFunction combiner) { Objects.requireNonNull(mapper, "mapper is null"); - Objects.requireNonNull(resultSelector, "resultSelector is null"); - return flatMap(FlowableInternalHelper.flatMapIntoIterable(mapper), resultSelector, false, bufferSize(), bufferSize()); + Objects.requireNonNull(combiner, "combiner is null"); + return flatMap(FlowableInternalHelper.flatMapIntoIterable(mapper), combiner, false, bufferSize(), bufferSize()); } /** @@ -10459,12 +10602,14 @@ public final Flowable flatMapIterable(@NonNull FunctionReactiveX operators documentation: FlatMap * @since 2.0 */ @@ -10473,10 +10618,10 @@ public final Flowable flatMapIterable(@NonNull Function Flowable flatMapIterable(@NonNull Function> mapper, - @NonNull BiFunction resultSelector, int prefetch) { + @NonNull BiFunction combiner, int prefetch) { Objects.requireNonNull(mapper, "mapper is null"); - Objects.requireNonNull(resultSelector, "resultSelector is null"); - return flatMap(FlowableInternalHelper.flatMapIntoIterable(mapper), resultSelector, false, bufferSize(), prefetch); + Objects.requireNonNull(combiner, "combiner is null"); + return flatMap(FlowableInternalHelper.flatMapIntoIterable(mapper), combiner, false, bufferSize(), prefetch); } /** @@ -10491,6 +10636,7 @@ public final Flowable flatMapIterable(@NonNull Function the result value type * @param mapper the function that received each source value and transforms them into {@code MaybeSource}s. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @@ -10518,6 +10664,8 @@ public final Flowable flatMapMaybe(@NonNull Function Flowable flatMapMaybe(@NonNull Function the result value type * @param mapper the function that received each source value and transforms them into {@code SingleSource}s. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @@ -10568,6 +10717,8 @@ public final Flowable flatMapSingle(@NonNull Function onNext) { * @return * a {@link Disposable} that allows canceling an asynchronous sequence * @throws NullPointerException - * if {@code onNext} is {@code null}, or - * if {@code onError} is {@code null} + * if {@code onNext} or {@code onError} is {@code null} * @see ReactiveX operators documentation: Subscribe */ @CheckReturnValue @@ -10688,9 +10838,7 @@ public final Disposable forEachWhile(@NonNull Predicate onNext, @NonN * @return * a {@link Disposable} that allows canceling an asynchronous sequence * @throws NullPointerException - * if {@code onNext} is {@code null}, or - * if {@code onError} is {@code null}, or - * if {@code onComplete} is {@code null} + * if {@code onNext}, {@code onError} or {@code onComplete} is {@code null} * @see ReactiveX operators documentation: Subscribe */ @CheckReturnValue @@ -10755,6 +10903,7 @@ public final Disposable forEachWhile(@NonNull Predicate onNext, @NonN * @return a {@code Publisher} that emits {@code GroupedFlowable}s, each of which corresponds to a * unique key value and each of which emits those items from the source {@code Publisher} that share that * key value + * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: GroupBy * @see #groupBy(Function, boolean) * @see #groupBy(Function, Function) @@ -10817,6 +10966,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy */ @CheckReturnValue @@ -10878,6 +11028,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy * @see #groupBy(Function, Function, boolean) * @see #groupBy(Function, Function, boolean, int) @@ -10946,6 +11097,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy * @see #groupBy(Function, Function, boolean, int) */ @@ -11014,6 +11166,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy */ @@ -11134,6 +11287,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy * @@ -11187,6 +11341,7 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: Join */ @CheckReturnValue @@ -11312,6 +11467,7 @@ public final Single isEmpty() { * overlapping items emitted by the two {@code Publisher}s * @return a {@code Flowable} that emits items correlating to items emitted by the source {@code Publisher}s that have * overlapping durations + * @throws NullPointerException if {@code other}, {@code leftEnd}, {@code rightEnd} or {@code resultSelector} is {@code null} * @see ReactiveX operators documentation: Join */ @CheckReturnValue @@ -11371,6 +11527,7 @@ public final Maybe lastElement() { * @param defaultItem * the default item to emit if the source {@code Publisher} is empty * @return the new {@code Single} instance + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: Last */ @CheckReturnValue @@ -11549,6 +11706,7 @@ public final Single lastOrError() { * a {@code Subscriber} with custom behavior to be used as the consumer for the current * {@code Flowable}. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code lifter} is {@code null} * @see RxJava wiki: Writing operators * @see #compose(FlowableTransformer) */ @@ -11579,6 +11737,7 @@ public final Flowable lift(@NonNull FlowableOperatorReactiveX operators documentation: Map * @see #mapOptional(Function) */ @@ -11635,6 +11794,7 @@ public final Flowable> materialize() { * @param other * a {@code Publisher} to be merged * @return a {@code Flowable} that emits all of the items emitted by the source {@code Publisher}s + * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: Merge */ @CheckReturnValue @@ -11663,6 +11823,7 @@ public final Flowable mergeWith(@NonNull Publisher other) { *

History: 2.1.10 - experimental * @param other the {@code SingleSource} whose success value to merge with * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -11692,6 +11853,7 @@ public final Flowable mergeWith(@NonNull SingleSource other) { *

History: 2.1.10 - experimental * @param other the {@code MaybeSource} which provides a success value to merge with or completes * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -11718,6 +11880,7 @@ public final Flowable mergeWith(@NonNull MaybeSource other) { *

History: 2.1.10 - experimental * @param other the {@code CompletableSource} to await for completion * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code other} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -11765,6 +11928,7 @@ public final Flowable mergeWith(@NonNull CompletableSource other) { * the {@code Scheduler} to notify {@link Subscriber}s on * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples * @see #subscribeOn @@ -11817,6 +11981,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler) { * from upstream * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples * @see #subscribeOn @@ -11870,6 +12035,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * @param bufferSize the size of the buffer. * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: ObserveOn * @see RxJava Threading Examples @@ -11904,6 +12070,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * @param clazz * the class type to filter the items emitted by the source {@code Publisher} * @return a {@code Flowable} that emits items from the source {@code Publisher} of type {@code clazz} + * @throws NullPointerException if {@code clazz} is {@code null} * @see ReactiveX operators documentation: Filter */ @CheckReturnValue @@ -11983,6 +12150,7 @@ public final Flowable onBackpressureBuffer(boolean delayError) { * * @param capacity number of slots available in the buffer. * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12015,6 +12183,7 @@ public final Flowable onBackpressureBuffer(int capacity) { * consumed by the downstream; if {@code false}, an exception is immediately signaled to the downstream, skipping * any buffered element * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12049,6 +12218,7 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError) * @param unbounded * if {@code true}, the capacity value is interpreted as the internal "island" size of the unbounded buffer * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12085,6 +12255,8 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, * if {@code true}, the capacity value is interpreted as the internal "island" size of the unbounded buffer * @param onOverflow action to execute if an item needs to be buffered, but there are no available slots. Null is allowed. * @return the source {@code Publisher} modified to buffer items up to the given capacity + * @throws NullPointerException if {@code onOverflow} is {@code null} + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12117,6 +12289,8 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, * @param capacity number of slots available in the buffer. * @param onOverflow action to execute if an item needs to be buffered, but there are no available slots. Null is allowed. * @return the source {@code Publisher} modified to buffer items up to the given capacity + * @throws NullPointerException if {@code onOverflow} is {@code null} + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12158,6 +12332,8 @@ public final Flowable onBackpressureBuffer(int capacity, @NonNull Action onOv * @param onOverflow action to execute if an item needs to be buffered, but there are no available slots, {@code null} is allowed. * @param overflowStrategy how should the {@code Publisher} react to buffer overflows, {@code null} is not allowed. * @return the source {@code Flowable} modified to buffer items up to the given capacity + * @throws NullPointerException if {@code onOverflow} or {@code overflowStrategy} is {@code null} + * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 2.0 */ @@ -12216,6 +12392,7 @@ public final Flowable onBackpressureDrop() { * * @param onDrop the action to invoke for each item dropped, should be fast and should never block. * @return the source {@code Publisher} modified to drop {@code onNext} notifications on overflow + * @throws NullPointerException if {@code onDrop} is {@code null} * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 */ @@ -12294,6 +12471,7 @@ public final Flowable onBackpressureLatest() { * a function that returns a {@code Publisher} that will take over if the source {@code Publisher} encounters * an error * @return the original {@code Publisher}, with appropriately modified behavior + * @throws NullPointerException if {@code resumeFunction} is {@code null} * @see ReactiveX operators documentation: Catch */ @CheckReturnValue @@ -12338,6 +12516,7 @@ public final Flowable onErrorResumeNext(@NonNull FunctionReactiveX operators documentation: Catch */ @CheckReturnValue @@ -12378,6 +12557,7 @@ public final Flowable onErrorResumeWith(@NonNull Publisher next) * a function that returns a single value that will be emitted along with a regular {@code onComplete} in case * the current {@code Flowable} signals an {@code onError} event * @return the original {@code Publisher} with appropriately modified behavior + * @throws NullPointerException if {@code valueSupplier} is {@code null} * @see ReactiveX operators documentation: Catch */ @CheckReturnValue @@ -12418,6 +12598,7 @@ public final Flowable onErrorReturn(@NonNull FunctionReactiveX operators documentation: Catch */ @CheckReturnValue @@ -12502,6 +12683,7 @@ public final ParallelFlowable parallel() { *

History: 2.0.5 - experimental; 2.1 - beta * @param parallelism the number of 'rails' to use * @return the new {@link ParallelFlowable} instance + * @throws IllegalArgumentException if {@code parallelism} is non-positive * @since 2.2 */ @BackpressureSupport(BackpressureKind.FULL) @@ -12509,7 +12691,6 @@ public final ParallelFlowable parallel() { @CheckReturnValue @NonNull public final ParallelFlowable parallel(int parallelism) { - ObjectHelper.verifyPositive(parallelism, "parallelism"); return ParallelFlowable.from(this, parallelism); } @@ -12544,8 +12725,6 @@ public final ParallelFlowable parallel(int parallelism) { @CheckReturnValue @NonNull public final ParallelFlowable parallel(int parallelism, int prefetch) { - ObjectHelper.verifyPositive(parallelism, "parallelism"); - ObjectHelper.verifyPositive(prefetch, "prefetch"); return ParallelFlowable.from(this, parallelism, prefetch); } @@ -12599,6 +12778,7 @@ public final ConnectableFlowable publish() { * causing multiple subscriptions to the source sequence. {@link Subscriber}s to the given source will * receive all notifications of the source from the time of the subscription forward. * @return a {@code Flowable} that emits the results of invoking the selector on the items emitted by a {@code ConnectableFlowable} that shares a single subscription to the underlying sequence + * @throws NullPointerException if {@code selector} is {@code null} * @see ReactiveX operators documentation: Publish */ @CheckReturnValue @@ -12634,6 +12814,7 @@ public final Flowable publish(@NonNull Function, ? ex * @param prefetch * the number of elements to prefetch from the current {@code Flowable} * @return a {@code Flowable} that emits the results of invoking the selector on the items emitted by a {@code ConnectableFlowable} that shares a single subscription to the underlying sequence + * @throws NullPointerException if {@code selector} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ReactiveX operators documentation: Publish */ @@ -12694,6 +12875,7 @@ public final ConnectableFlowable publish(int bufferSize) { * * @param n the initial request amount, further request will happen after 75% of this value * @return the {@link Publisher} that rebatches request amounts from downstream + * @throws IllegalArgumentException if {@code n} is non-positive * @since 2.0 */ @CheckReturnValue @@ -12732,6 +12914,7 @@ public final Flowable rebatchRequests(int n) { * result will be used in the next accumulator call * @return a {@code Maybe} that emits a single item that is the result of accumulating the items emitted by * the source {@code Flowable} + * @throws NullPointerException if {@code reducer} is {@code null} * @see ReactiveX operators documentation: Reduce * @see Wikipedia: Fold (higher-order function) */ @@ -12793,6 +12976,7 @@ public final Maybe reduce(@NonNull BiFunction reducer) { * result of which will be used in the next accumulator call * @return a {@code Single} that emits a single item that is the result of accumulating the output from the * items emitted by the source {@code Publisher} + * @throws NullPointerException if {@code seed} or {@code reducer} is {@code null} * @see ReactiveX operators documentation: Reduce * @see Wikipedia: Fold (higher-order function) * @see #reduceWith(Supplier, BiFunction) @@ -12839,6 +13023,7 @@ public final Maybe reduce(@NonNull BiFunction reducer) { * result of which will be used in the next accumulator call * @return a {@code Single} that emits a single item that is the result of accumulating the output from the * items emitted by the source {@code Publisher} + * @throws NullPointerException if {@code seedSupplier} or {@code reducer} is {@code null} * @see ReactiveX operators documentation: Reduce * @see Wikipedia: Fold (higher-order function) */ @@ -12894,7 +13079,7 @@ public final Flowable repeat() { * @return a {@code Flowable} that repeats the sequence of items emitted by the source {@code Publisher} at most * {@code count} times * @throws IllegalArgumentException - * if {@code count} is less than zero + * if {@code times} is less than zero * @see ReactiveX operators documentation: Repeat */ @CheckReturnValue @@ -12961,6 +13146,7 @@ public final Flowable repeatUntil(@NonNull BooleanSupplier stop) { * @param handler * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the repeat. * @return the source {@code Publisher} modified with repeat logic + * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Repeat */ @CheckReturnValue @@ -13021,6 +13207,7 @@ public final ConnectableFlowable replay() { * causing multiple subscriptions to the {@code Publisher} * @return a {@code Flowable} that emits items that are the results of invoking the selector on a * {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} + * @throws NullPointerException if {@code selector} is {@code null} * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13060,6 +13247,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} * replaying no more than {@code bufferSize} items + * @throws NullPointerException if {@code selector} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(Function, int, boolean) @@ -13105,6 +13293,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} * replaying no more than {@code bufferSize} items + * @throws NullPointerException if {@code selector} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay */ @@ -13151,6 +13340,8 @@ public final Flowable replay(@NonNull Function, ? ext * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} + * @throws NullPointerException if {@code selector} or {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13196,8 +13387,9 @@ public final Flowable replay(@NonNull Function, ? ext * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} + * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException - * if {@code bufferSize} is less than zero + * if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(Function, int, long, TimeUnit, Scheduler, boolean) */ @@ -13252,6 +13444,7 @@ public final Flowable replay(@NonNull Function, ? ext * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} + * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException * if {@code bufferSize} is less than zero * @see ReactiveX operators documentation: Replay @@ -13296,6 +13489,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, * replaying all items that were emitted within the window defined by {@code time} + * @throws NullPointerException if {@code selector} or {@code unit} is {@code null} * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13335,6 +13529,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, * replaying all items that were emitted within the window defined by {@code time} + * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay * @see #replay(Function, long, TimeUnit, Scheduler, boolean) */ @@ -13381,6 +13576,7 @@ public final Flowable replay(@NonNull Function, ? ext * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, * replaying all items that were emitted within the window defined by {@code time} + * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13501,6 +13697,8 @@ public final ConnectableFlowable replay(int bufferSize, boolean eagerTruncate * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(int, long, TimeUnit, Scheduler, boolean) */ @@ -13544,8 +13742,8 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} - * @throws IllegalArgumentException - * if {@code bufferSize} is less than zero + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(int, long, TimeUnit, Scheduler, boolean) */ @@ -13594,8 +13792,8 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} - * @throws IllegalArgumentException - * if {@code bufferSize} is less than zero + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @since 3.0.0 */ @@ -13635,6 +13833,7 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * the time unit of {@code time} * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays the items that were emitted during the window defined by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13672,6 +13871,7 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit) { * the {@code Scheduler} that is the time source for the window * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays the items that were emitted during the window defined by {@code time} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay * @see #replay(long, TimeUnit, Scheduler, boolean) */ @@ -13715,6 +13915,7 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit, @N * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and * replays the items that were emitted during the window defined by {@code time} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay */ @CheckReturnValue @@ -13776,6 +13977,7 @@ public final Flowable retry() { * the predicate that determines if a resubscription may happen in case of a specific exception * and retry count * @return the source {@code Publisher} modified with retry logic + * @throws NullPointerException if {@code predicate} is {@code null} * @see #retry() * @see ReactiveX operators documentation: Retry */ @@ -13811,17 +14013,18 @@ public final Flowable retry(@NonNull BiPredicate<@NonNull ? super Integer, @N *

{@code retry} does not operate by default on a particular {@link Scheduler}.
* * - * @param count + * @param times * the number of times to resubscribe if the current {@code Flowable} fails * @return the source {@code Publisher} modified with retry logic + * @throws IllegalArgumentException if {@code times} is negative * @see ReactiveX operators documentation: Retry */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) @NonNull - public final Flowable retry(long count) { - return retry(count, Functions.alwaysTrue()); + public final Flowable retry(long times) { + return retry(times, Functions.alwaysTrue()); } /** @@ -13836,6 +14039,7 @@ public final Flowable retry(long count) { * * @param times the number of times to resubscribe if the current {@code Flowable} fails * @param predicate the predicate called with the failure {@link Throwable} and should return {@code true} to trigger a retry. + * @throws NullPointerException if {@code predicate} is {@code null} * @throws IllegalArgumentException if {@code times} is negative * @return the new {@code Flowable} instance */ @@ -13864,6 +14068,7 @@ public final Flowable retry(long times, @NonNull Predicate<@NonNull ? super T * * @param predicate the predicate that receives the failure {@link Throwable} and should return {@code true} to trigger a retry. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code predicate} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @@ -13884,6 +14089,7 @@ public final Flowable retry(@NonNull Predicate<@NonNull ? super Throwable> pr * * @param stop the function that should return {@code true} to stop retrying * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code stop} is {@code null} */ @CheckReturnValue @NonNull @@ -13969,6 +14175,7 @@ public final Flowable retryUntil(@NonNull BooleanSupplier stop) { * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the * retry * @return the source {@code Publisher} modified with retry logic + * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Retry */ @CheckReturnValue @@ -13993,17 +14200,17 @@ public final Flowable retryWhen( *
Scheduler:
*
{@code safeSubscribe} does not operate by default on a particular {@link Scheduler}.
* - * @param s the incoming {@code Subscriber} instance - * @throws NullPointerException if s is {@code null} + * @param subscriber the incoming {@code Subscriber} instance + * @throws NullPointerException if {@code subscriber} is {@code null} */ @BackpressureSupport(BackpressureKind.PASS_THROUGH) @SchedulerSupport(SchedulerSupport.NONE) - public final void safeSubscribe(@NonNull Subscriber s) { - Objects.requireNonNull(s, "s is null"); - if (s instanceof SafeSubscriber) { - subscribe((SafeSubscriber)s); + public final void safeSubscribe(@NonNull Subscriber subscriber) { + Objects.requireNonNull(subscriber, "subscriber is null"); + if (subscriber instanceof SafeSubscriber) { + subscribe((SafeSubscriber)subscriber); } else { - subscribe(new SafeSubscriber<>(s)); + subscribe(new SafeSubscriber<>(subscriber)); } } @@ -14025,6 +14232,7 @@ public final void safeSubscribe(@NonNull Subscriber s) { * the {@link TimeUnit} in which {@code period} is defined * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at * the specified time interval + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #throttleLast(long, TimeUnit) @@ -14060,6 +14268,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit) { * if {@code false}, an unsampled last item is ignored. * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at * the specified time interval + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #throttleLast(long, TimeUnit) @@ -14093,6 +14302,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, boolean emi * the {@code Scheduler} to use when sampling * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at * the specified time interval + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #throttleLast(long, TimeUnit, Scheduler) @@ -14133,6 +14343,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc * if {@code false}, an unsampled last item is ignored. * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at * the specified time interval + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #throttleLast(long, TimeUnit, Scheduler) @@ -14167,6 +14378,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc * the {@code Publisher} to use for sampling the source {@code Publisher} * @return a {@code Flowable} that emits the results of sampling the items emitted by this {@code Publisher} whenever * the {@code sampler} {@code Publisher} emits an item or completes + * @throws NullPointerException if {@code sampler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure */ @@ -14204,6 +14416,7 @@ public final Flowable sample(@NonNull Publisher sampler) { * if {@code false}, an unsampled last item is ignored. * @return a {@code Flowable} that emits the results of sampling the items emitted by this {@code Publisher} whenever * the {@code sampler} {@code Publisher} emits an item or completes + * @throws NullPointerException if {@code sampler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @since 2.1 @@ -14239,6 +14452,7 @@ public final Flowable sample(@NonNull Publisher sampler, boolean emitL * result will be emitted to {@link Subscriber}s via {@link Subscriber#onNext onNext} and used in the * next accumulator call * @return a {@code Flowable} that emits the results of each call to the accumulator function + * @throws NullPointerException if {@code accumulator} is {@code null} * @see ReactiveX operators documentation: Scan */ @CheckReturnValue @@ -14293,6 +14507,7 @@ public final Flowable scan(@NonNull BiFunction accumulator) { * next accumulator call * @return a {@code Flowable} that emits {@code initialValue} followed by the results of each call to the * accumulator function + * @throws NullPointerException if {@code initialValue} or {@code accumulator} is {@code null} * @see ReactiveX operators documentation: Scan */ @CheckReturnValue @@ -14333,6 +14548,7 @@ public final Flowable scan(@NonNull BiFunction accumulator) { * next accumulator call * @return a {@code Flowable} that emits {@code initialValue} followed by the results of each call to the * accumulator function + * @throws NullPointerException if {@code seedSupplier} or {@code accumulator} is {@code null} * @see ReactiveX operators documentation: Scan */ @CheckReturnValue @@ -14448,6 +14664,7 @@ public final Maybe singleElement() { * a default value to emit if the source {@code Publisher} emits no item * @return a {@code Single} that emits the single item emitted by the source {@code Publisher}, or a default item if * the source {@code Publisher} is empty + * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: First */ @CheckReturnValue @@ -14539,6 +14756,7 @@ public final Flowable skip(long count) { * the time unit of {@code time} * @return a {@code Flowable} that skips values emitted by the source {@code Publisher} before the time window defined * by {@code time} elapses and the emits the remainder + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Skip */ @CheckReturnValue @@ -14570,6 +14788,7 @@ public final Flowable skip(long time, @NonNull TimeUnit unit) { * the {@code Scheduler} on which the timed wait happens * @return a {@code Flowable} that skips values emitted by the source {@code Publisher} before the time window defined * by {@code time} and {@code scheduler} elapses, and then emits the remainder + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Skip */ @CheckReturnValue @@ -14641,6 +14860,7 @@ public final Flowable skipLast(int count) { * the time unit of {@code time} * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: SkipLast */ @CheckReturnValue @@ -14676,6 +14896,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit) { * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: SkipLast */ @CheckReturnValue @@ -14709,6 +14930,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, boolean del * the scheduler used as the time source * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} and {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SkipLast */ @CheckReturnValue @@ -14745,6 +14967,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} and {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SkipLast */ @CheckReturnValue @@ -14783,6 +15006,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * the hint about how many elements to expect to be skipped * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the * source completes defined by {@code time} and {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: SkipLast */ @@ -14818,6 +15042,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * to be mirrored by the resulting {@code Publisher} * @return a {@code Flowable} that skips items from the source {@code Publisher} until the second {@code Publisher} emits an * item, then emits the remaining items + * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: SkipUntil */ @CheckReturnValue @@ -14846,6 +15071,7 @@ public final Flowable skipUntil(@NonNull Publisher other) { * a function to test each item emitted from the source {@code Publisher} * @return a {@code Flowable} that begins emitting items emitted by the source {@code Publisher} when the specified * predicate becomes {@code false} + * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: SkipWhile */ @CheckReturnValue @@ -14900,18 +15126,19 @@ public final Flowable sorted() { *
{@code sorted} does not operate by default on a particular {@link Scheduler}.
* * - * @param sortFunction + * @param comparator * a function that compares two items emitted by the source {@code Publisher} and returns an {@link Integer} * that indicates their sort order + * @throws NullPointerException if {@code comparator} is {@code null} * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} in sorted order */ @CheckReturnValue @NonNull @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) - public final Flowable sorted(@NonNull Comparator<@NonNull ? super T> sortFunction) { - Objects.requireNonNull(sortFunction, "sortFunction is null"); - return toList().toFlowable().map(Functions.listSorter(sortFunction)).flatMapIterable(Functions.identity()); + public final Flowable sorted(@NonNull Comparator<@NonNull ? super T> comparator) { + Objects.requireNonNull(comparator, "comparator is null"); + return toList().toFlowable().map(Functions.listSorter(comparator)).flatMapIterable(Functions.identity()); } /** @@ -14932,6 +15159,7 @@ public final Flowable sorted(@NonNull Comparator<@NonNull ? super T> sortFunc * an {@code Iterable} that contains the items you want the modified {@code Publisher} to emit first * @return a {@code Flowable} that emits the items in the specified {@code Iterable} and then emits the items * emitted by the source {@code Publisher} + * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithArray(Object...) * @see #startWithItem(Object) @@ -14963,6 +15191,7 @@ public final Flowable startWithIterable(@NonNull Iterable items) * a {@code Publisher} that contains the items you want the modified {@code Publisher} to emit first * @return a {@code Flowable} that emits the items in the specified {@code Publisher} and then emits the items * emitted by the source {@code Publisher} + * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: StartWith */ @CheckReturnValue @@ -14992,6 +15221,7 @@ public final Flowable startWith(@NonNull Publisher other) { * the item to emit first * @return a {@code Flowable} that emits the specified item before it begins to emit items emitted by the source * {@code Publisher} + * @throws NullPointerException if {@code item} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithArray(Object...) * @see #startWithIterable(Iterable) @@ -15024,6 +15254,7 @@ public final Flowable startWithItem(@NonNull T item) { * the array of values to emit first * @return a {@code Flowable} that emits the specified items before it begins to emit items emitted by the source * {@code Publisher} + * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithItem(Object) * @see #startWithIterable(Iterable) @@ -15116,8 +15347,7 @@ public final Disposable subscribe(@NonNull Consumer onNext) { * the {@code Publisher} has finished sending them * @see ReactiveX operators documentation: Subscribe * @throws NullPointerException - * if {@code onNext} is {@code null}, or - * if {@code onError} is {@code null} + * if {@code onNext} or {@code onError} is {@code null} */ @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @@ -15149,9 +15379,7 @@ public final Disposable subscribe(@NonNull Consumer onNext, @NonNull * @return a {@link Disposable} reference with which the caller can stop receiving items before * the {@code Publisher} has finished sending them * @throws NullPointerException - * if {@code onNext} is {@code null}, or - * if {@code onError} is {@code null}, or - * if {@code onComplete} is {@code null} + * if {@code onNext}, {@code onError} or {@code onComplete} is {@code null} * @see ReactiveX operators documentation: Subscribe */ @CheckReturnValue @@ -15174,12 +15402,12 @@ public final Disposable subscribe(@NonNull Consumer onNext, @NonNull @BackpressureSupport(BackpressureKind.SPECIAL) @SchedulerSupport(SchedulerSupport.NONE) @Override - public final void subscribe(@NonNull Subscriber s) { - if (s instanceof FlowableSubscriber) { - subscribe((FlowableSubscriber)s); + public final void subscribe(@NonNull Subscriber subscriber) { + if (subscriber instanceof FlowableSubscriber) { + subscribe((FlowableSubscriber)subscriber); } else { - Objects.requireNonNull(s, "s is null"); - subscribe(new StrictSubscriber<>(s)); + Objects.requireNonNull(subscriber, "subscriber is null"); + subscribe(new StrictSubscriber<>(subscriber)); } } @@ -15217,19 +15445,20 @@ public final void subscribe(@NonNull Subscriber s) { *
{@code subscribe} does not operate by default on a particular {@link Scheduler}.
* *

History: 2.0.7 - experimental; 2.1 - beta - * @param s the {@code FlowableSubscriber} that will consume signals from this {@code Flowable} + * @param subscriber the {@code FlowableSubscriber} that will consume signals from this {@code Flowable} + * @throws NullPointerException if {@code subscriber} is {@code null} * @since 2.2 */ @BackpressureSupport(BackpressureKind.SPECIAL) @SchedulerSupport(SchedulerSupport.NONE) - public final void subscribe(@NonNull FlowableSubscriber s) { - Objects.requireNonNull(s, "s is null"); + public final void subscribe(@NonNull FlowableSubscriber subscriber) { + Objects.requireNonNull(subscriber, "subscriber is null"); try { - Subscriber z = RxJavaPlugins.onSubscribe(this, s); + Subscriber flowableSubscriber = RxJavaPlugins.onSubscribe(this, subscriber); - Objects.requireNonNull(z, "The RxJavaPlugins.onSubscribe hook returned a null FlowableSubscriber. Please check the handler provided to RxJavaPlugins.setOnFlowableSubscribe for invalid null returns. Further reading: https://github.com/ReactiveX/RxJava/wiki/Plugins"); + Objects.requireNonNull(flowableSubscriber, "The RxJavaPlugins.onSubscribe hook returned a null FlowableSubscriber. Please check the handler provided to RxJavaPlugins.setOnFlowableSubscribe for invalid null returns. Further reading: https://github.com/ReactiveX/RxJava/wiki/Plugins"); - subscribeActual(z); + subscribeActual(flowableSubscriber); } catch (NullPointerException e) { // NOPMD throw e; } catch (Throwable e) { @@ -15250,9 +15479,9 @@ public final void subscribe(@NonNull FlowableSubscriber s) { *

There is no need to call any of the plugin hooks on the current {@code Flowable} instance or * the {@code Subscriber}; all hooks and basic safeguards have been * applied by {@link #subscribe(Subscriber)} before this method gets called. - * @param s the incoming {@code Subscriber}, never {@code null} + * @param subscriber the incoming {@code Subscriber}, never {@code null} */ - protected abstract void subscribeActual(@NonNull Subscriber s); + protected abstract void subscribeActual(@NonNull Subscriber subscriber); /** * Subscribes a given {@link Subscriber} (subclass) to this {@code Flowable} and returns the given @@ -15310,6 +15539,7 @@ public final void subscribe(@NonNull FlowableSubscriber s) { * the {@code Scheduler} to perform subscription actions on * @return the source {@code Publisher} modified so that its subscriptions happen on the * specified {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SubscribeOn * @see RxJava Threading Examples * @see #observeOn @@ -15348,6 +15578,7 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler) { * the upstream on the same thread (weak pipelining) * @return the source {@code Publisher} modified so that its subscriptions happen on the * specified {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SubscribeOn * @see RxJava Threading Examples * @see #observeOn @@ -15382,6 +15613,7 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler, boolean reque * the alternate {@code Publisher} to subscribe to if the source does not emit any items * @return a {@code Publisher} that emits the items emitted by the source {@code Publisher} or the items of an * alternate {@code Publisher} if the source {@code Publisher} is empty. + * @throws NullPointerException if {@code other} is {@code null} * @since 1.1.0 */ @CheckReturnValue @@ -15417,6 +15649,7 @@ public final Flowable switchIfEmpty(@NonNull Publisher other) { * a function that, when applied to an item emitted by the source {@code Publisher}, returns a * {@code Publisher} * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the source {@code Publisher} + * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap * @see #switchMapDelayError(Function) */ @@ -15454,6 +15687,8 @@ public final Flowable switchMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #switchMapDelayError(Function, int) */ @@ -15499,6 +15734,7 @@ public final Flowable switchMap(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #switchMap(Function) * @since 2.0 @@ -15622,6 +15860,8 @@ public final Flowable switchMapDelayError(@NonNull FunctionReactiveX operators documentation: FlatMap * @see #switchMap(Function, int) * @since 2.0 @@ -15677,6 +15917,7 @@ Flowable switchMap0(Function> * return a {@code MaybeSource} to replace the current active inner source * and get subscribed to. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @see #switchMapMaybeDelayError(Function) * @since 2.2 */ @@ -15708,6 +15949,7 @@ public final Flowable switchMapMaybe(@NonNull Function Flowable switchMapMaybeDelayError(@NonNull Function Flowable switchMapSingle(@NonNull Function take(long count) { * @param unit * the time unit of {@code time} * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} before the time runs out + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Take */ @CheckReturnValue @@ -15899,6 +16144,7 @@ public final Flowable take(long time, @NonNull TimeUnit unit) { * the {@code Scheduler} used for time source * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} before the time runs out, * according to the specified {@code Scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Take */ @CheckReturnValue @@ -15969,6 +16215,8 @@ public final Flowable takeLast(int count) { * the time unit of {@code time} * @return a {@code Flowable} that emits at most {@code count} items from the source {@code Publisher} that were emitted * in a specified window of time before the {@code Publisher} completed + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue diff --git a/src/main/java/io/reactivex/rxjava3/core/Observable.java b/src/main/java/io/reactivex/rxjava3/core/Observable.java index 85a34c0334..b226ae8994 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Observable.java +++ b/src/main/java/io/reactivex/rxjava3/core/Observable.java @@ -5272,6 +5272,7 @@ public final T blockingFirst(@NonNull T defaultItem) { * * @param onNext * the {@code Consumer} to invoke for each item emitted by the {@code Observable} + * @throws NullPointerException if {@code onNext} is {@code null} * @throws RuntimeException * if an error occurs * @see ReactiveX documentation: Subscribe @@ -5639,6 +5640,7 @@ public final void blockingSubscribe() { *

{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
* * @param onNext the callback action for each source value + * @throws NullPointerException if {@code onNext} is {@code null} * @since 2.0 * @see #blockingSubscribe(Consumer, Consumer) * @see #blockingSubscribe(Consumer, Consumer, Action) @@ -5662,6 +5664,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext) { * * @param onNext the callback action for each source value * @param onError the callback action for an error event + * @throws NullPointerException if {@code onNext} or {@code onError} is {@code null} * @since 2.0 * @see #blockingSubscribe(Consumer, Consumer, Action) */ @@ -5685,6 +5688,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * @param onNext the callback action for each source value * @param onError the callback action for an error event * @param onComplete the callback action for the completion event. + * @throws NullPointerException if {@code onNext}, {@code onError} or {@code onComplete} is {@code null} * @since 2.0 */ @SchedulerSupport(SchedulerSupport.NONE) @@ -6236,18 +6240,19 @@ public final > Observable buffer(int count, i * * @param * the boundary value type (ignored) - * @param boundary + * @param boundaryIndicator * the boundary {@code ObservableSource} * @return an {@code Observable} that emits buffered items from the current {@code Observable} when the boundary {@code ObservableSource} * emits an item + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @see #buffer(ObservableSource, int) * @see ReactiveX operators documentation: Buffer */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull - public final Observable<@NonNull List> buffer(@NonNull ObservableSource boundary) { - return buffer(boundary, ArrayListSupplier.asSupplier()); + public final Observable<@NonNull List> buffer(@NonNull ObservableSource boundaryIndicator) { + return buffer(boundaryIndicator, ArrayListSupplier.asSupplier()); } /** @@ -6267,23 +6272,23 @@ public final > Observable buffer(int count, i * * @param * the boundary value type (ignored) - * @param boundary + * @param boundaryIndicator * the boundary {@code ObservableSource} * @param initialCapacity * the initial capacity of each buffer chunk * @return an {@code Observable} that emits buffered items from the current {@code Observable} when the boundary {@code ObservableSource} * emits an item * @see ReactiveX operators documentation: Buffer - * @throws NullPointerException if {@code boundary} is {@code null} + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @throws IllegalArgumentException if {@code initialCapacity} is non-positive * @see #buffer(ObservableSource) */ @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @NonNull - public final Observable<@NonNull List> buffer(@NonNull ObservableSource boundary, int initialCapacity) { + public final Observable<@NonNull List> buffer(@NonNull ObservableSource boundaryIndicator, int initialCapacity) { ObjectHelper.verifyPositive(initialCapacity, "initialCapacity"); - return buffer(boundary, Functions.createArrayList(initialCapacity)); + return buffer(boundaryIndicator, Functions.createArrayList(initialCapacity)); } /** @@ -9766,6 +9771,7 @@ public final Observable> groupBy(@NonNull Functio * @return an {@code Observable} that emits {@code GroupedObservable}s, each of which corresponds to a * unique key value and each of which emits those items from the current {@code Observable} that share that * key value + * @throws NullPointerException if {@code keySelector} or {@code valueSelector} is {@code null} * @see ReactiveX operators documentation: GroupBy */ @CheckReturnValue diff --git a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java index fe5ed0ad36..14400c5c6d 100644 --- a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java +++ b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java @@ -241,6 +241,10 @@ static void processFile(Class clazz) throws Exception { } } + if (line.contains("\"The RxJavaPlugins")) { + continue; + } + // find JavaDoc of throws boolean found = false; for (int k = midx - 1; k >= 0; k--) { @@ -481,13 +485,48 @@ static final class ValidatorStrings { new ValidatorStrings("stop", "* @throws NullPointerException"), new ValidatorStrings("stopPredicate", "* @throws NullPointerException"), new ValidatorStrings("handler", "* @throws NullPointerException"), - + new ValidatorStrings("bufferSupplier", "* @throws NullPointerException"), + new ValidatorStrings("openingIndicator", "* @throws NullPointerException"), + new ValidatorStrings("closingIndicator", "* @throws NullPointerException"), + new ValidatorStrings("boundary", "* @throws NullPointerException"), + new ValidatorStrings("boundaryIndicator", "* @throws NullPointerException"), + new ValidatorStrings("selector", "* @throws NullPointerException"), + new ValidatorStrings("resultSelector", "* @throws NullPointerException"), + new ValidatorStrings("keySelector", "* @throws NullPointerException"), + new ValidatorStrings("valueSelector", "* @throws NullPointerException"), + new ValidatorStrings("valueSupplier", "* @throws NullPointerException"), + new ValidatorStrings("collectionSupplier", "* @throws NullPointerException"), + new ValidatorStrings("onNext", "* @throws NullPointerException"), + new ValidatorStrings("onError", "* @throws NullPointerException"), + new ValidatorStrings("onComplete", "* @throws NullPointerException"), + new ValidatorStrings("onEvent", "* @throws NullPointerException"), + new ValidatorStrings("onAfterNext", "* @throws NullPointerException"), + new ValidatorStrings("onAfterTerminate", "* @throws NullPointerException"), + new ValidatorStrings("onTerminate", "* @throws NullPointerException"), + new ValidatorStrings("onSuccess", "* @throws NullPointerException"), + new ValidatorStrings("onSubscribe", "* @throws NullPointerException"), + new ValidatorStrings("onNotification", "* @throws NullPointerException"), + new ValidatorStrings("onCancel", "* @throws NullPointerException"), + new ValidatorStrings("onDispose", "* @throws NullPointerException"), + new ValidatorStrings("onRequest", "* @throws NullPointerException"), + new ValidatorStrings("onNextMapper", "* @throws NullPointerException"), + new ValidatorStrings("onErrorMapper", "* @throws NullPointerException"), + new ValidatorStrings("onCompleteSupplier", "* @throws NullPointerException"), + new ValidatorStrings("clazz", "* @throws NullPointerException"), + new ValidatorStrings("next", "* @throws NullPointerException"), + new ValidatorStrings("reducer", "* @throws NullPointerException"), + new ValidatorStrings("seed", "* @throws NullPointerException"), + new ValidatorStrings("seedSupplier", "* @throws NullPointerException"), + + new ValidatorStrings("parallelism", "* @throws IllegalArgumentException"), new ValidatorStrings("prefetch", "* @throws IllegalArgumentException"), new ValidatorStrings("bufferSize", "* @throws IllegalArgumentException"), new ValidatorStrings("capacityHint", "* @throws IllegalArgumentException"), + new ValidatorStrings("capacity", "* @throws IllegalArgumentException"), new ValidatorStrings("count", "* @throws IllegalArgumentException"), new ValidatorStrings("skip", "* @throws IllegalArgumentException"), - new ValidatorStrings("times", "* @throws IllegalArgumentException") + new ValidatorStrings("times", "* @throws IllegalArgumentException"), + new ValidatorStrings("n", "* @throws IllegalArgumentException") ); } From 939b3fc9e6c627604dda4df8c61388f87462a5b3 Mon Sep 17 00:00:00 2001 From: akarnokd Date: Fri, 10 Jan 2020 21:09:20 +0100 Subject: [PATCH 3/3] Last set of intended changes --- .../io/reactivex/rxjava3/core/Flowable.java | 2529 +++++++++-------- .../validators/ParamValidationNaming.java | 6 + 2 files changed, 1314 insertions(+), 1221 deletions(-) diff --git a/src/main/java/io/reactivex/rxjava3/core/Flowable.java b/src/main/java/io/reactivex/rxjava3/core/Flowable.java index 94b082ef8c..699baef2e8 100644 --- a/src/main/java/io/reactivex/rxjava3/core/Flowable.java +++ b/src/main/java/io/reactivex/rxjava3/core/Flowable.java @@ -1169,7 +1169,7 @@ public static Flowable combineLatest( *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when that {@code Publisher} completes. *
Scheduler:
*
{@code concat} does not operate by default on a particular {@link Scheduler}.
* @@ -1265,7 +1265,7 @@ public static Flowable concat(@NonNull PublisherThe operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes. + * {@link IllegalStateException} when that source {@code Publisher} completes. *
Scheduler:
*
{@code concat} does not operate by default on a particular {@link Scheduler}.
* @@ -1300,7 +1300,7 @@ public static Flowable concat(@NonNull Publisher source1, @N *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when that source {@code Publisher} completes. *
Scheduler:
*
{@code concat} does not operate by default on a particular {@link Scheduler}.
* @@ -1340,7 +1340,7 @@ public static Flowable concat( *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when that source {@code Publisher} completes. *
Scheduler:
*
{@code concat} does not operate by default on a particular {@link Scheduler}.
* @@ -1384,13 +1384,13 @@ public static Flowable concat( *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when that source {@code Publisher} completes. *
Scheduler:
*
{@code concatArray} does not operate by default on a particular {@link Scheduler}.
* * @param sources the array of source {@code Publisher}s * @param the common base value type - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance * @throws NullPointerException if {@code sources} is {@code null} */ @CheckReturnValue @@ -1419,7 +1419,7 @@ public static Flowable concatArray(@NonNull Publisher... sou *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when that source {@code Publisher} completes. *
Scheduler:
*
{@code concatArrayDelayError} does not operate by default on a particular {@link Scheduler}.
* @@ -1463,7 +1463,7 @@ public static Flowable concatArrayDelayError(@NonNull Publisher * @param the value type * @param sources an array of {@code Publisher}s that need to be eagerly concatenated - * @return the new {@code Publisher} instance with the specified concatenation behavior + * @return the new {@code Flowable} instance with the specified concatenation behavior * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @@ -1498,7 +1498,7 @@ public static Flowable concatArrayEager(@NonNull Publisher.. * @param maxConcurrency the maximum number of concurrent subscriptions at a time, {@link Integer#MAX_VALUE} * is interpreted as an indication to subscribe to all sources at once * @param prefetch the number of elements to prefetch from each {@code Publisher} source - * @return the new {@code Publisher} instance with the specified concatenation behavior + * @return the new {@code Flowable} instance with the specified concatenation behavior * @throws NullPointerException if {@code sources} is {@code null} * @throws IllegalArgumentException if {@code maxConcurrency} or {@code prefetch} is non-positive * @since 2.0 @@ -1603,7 +1603,7 @@ public static Flowable concatArrayEagerDelayError(int maxConcurrency, int * * @param the common element base type * @param sources the {@code Iterable} sequence of {@code Publisher}s - * @return the new {@code Publisher} with the concatenating behavior + * @return the new {@code Flowable} with the concatenating behavior * @throws NullPointerException if {@code sources} is {@code null} */ @SuppressWarnings({ "unchecked", "rawtypes" }) @@ -1629,7 +1629,7 @@ public static Flowable concatDelayError(@NonNull Iterable the common element base type * @param sources the {@code Publisher} sequence of {@code Publisher}s - * @return the new {@code Publisher} with the concatenating behavior + * @return the new {@code Flowable} with the concatenating behavior * @throws NullPointerException if {@code sources} is {@code null} */ @CheckReturnValue @@ -1655,8 +1655,8 @@ public static Flowable concatDelayError(@NonNull Publisher Flowable concatDelayError(@NonNull Publisher * @param the value type * @param sources a sequence of {@code Publisher}s that need to be eagerly concatenated - * @return the new {@code Publisher} instance with the specified concatenation behavior + * @return the new {@code Flowable} instance with the specified concatenation behavior * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @@ -1716,7 +1716,7 @@ public static Flowable concatEager(@NonNull Publisher Flowable concatEager(@NonNull Publisher * @param the value type * @param sources a sequence of {@code Publisher}s that need to be eagerly concatenated - * @return the new {@code Publisher} instance with the specified concatenation behavior + * @return the new {@code Flowable} instance with the specified concatenation behavior * @throws NullPointerException if {@code sources} is {@code null} * @since 2.0 */ @@ -1780,7 +1780,7 @@ public static Flowable concatEager(@NonNull Iterable Flowable create(@NonNull FlowableOnSubscribe source, @No * * @param supplier * the {@code Publisher} factory function to invoke for each {@code Subscriber} that subscribes to the - * resulting {@code Publisher} + * resulting {@code Flowable} * @param * the type of the items emitted by the {@code Publisher} * @return a {@code Flowable} whose {@code Subscriber}s' subscriptions trigger an invocation of the given @@ -2000,7 +2000,7 @@ public static Flowable error(@NonNull Throwable throwable) { * @param items * the array of elements * @param - * the type of items in the array and the type of items to be emitted by the resulting {@code Publisher} + * the type of items in the array and the type of items to be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits each item in the source array * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: From @@ -2090,7 +2090,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the source {@code Future} * @param * the type of object that the {@code Future} returns, and also the type of item to be emitted by - * the resulting {@code Publisher} + * the resulting {@code Flowable} * @return a {@code Flowable} that emits the item from the source {@code Future} * @throws NullPointerException if {@code future} is {@code null} * @see ReactiveX operators documentation: From @@ -2136,7 +2136,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the {@link TimeUnit} of the {@code timeout} argument * @param * the type of object that the {@code Future} returns, and also the type of item to be emitted by - * the resulting {@code Publisher} + * the resulting {@code Flowable} * @return a {@code Flowable} that emits the item from the source {@code Future} * @throws NullPointerException if {@code future} or {@code unit} is {@code null} * @see ReactiveX operators documentation: From @@ -2168,7 +2168,7 @@ public static Flowable error(@NonNull Throwable throwable) { * the source {@code Iterable} sequence * @param * the type of items in the {@code Iterable} sequence and the type of items to be emitted by the - * resulting {@code Publisher} + * resulting {@code Flowable} * @return a {@code Flowable} that emits each item in the source {@code Iterable} sequence * @throws NullPointerException if {@code source} is {@code null} * @see ReactiveX operators documentation: From @@ -4292,7 +4292,7 @@ public static Single sequenceEqual(@NonNull Publisher * emitted by that {@code Publisher}. When a new {@code Publisher} is emitted, {@code switchOnNext} stops emitting items * from the earlier-emitted {@code Publisher} and begins emitting items from the new one. *

- * The resulting {@code Publisher} completes if both the outer {@code Publisher} and the last inner {@code Publisher}, if any, complete. + * The resulting {@code Flowable} completes if both the outer {@code Publisher} and the last inner {@code Publisher}, if any, complete. * If the outer {@code Publisher} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. *

*
Backpressure:
@@ -4335,7 +4335,7 @@ public static Flowable switchOnNext(@NonNull Publisher - * The resulting {@code Publisher} completes if both the outer {@code Publisher} and the last inner {@code Publisher}, if any, complete. + * The resulting {@code Flowable} completes if both the outer {@code Publisher} and the last inner {@code Publisher}, if any, complete. * If the outer {@code Publisher} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. *
*
Backpressure:
@@ -4375,7 +4375,7 @@ public static Flowable switchOnNext(@NonNull Publisher - * The resulting {@code Publisher} completes if both the main {@code Publisher} and the last inner {@code Publisher}, if any, complete. + * The resulting {@code Flowable} completes if both the main {@code Publisher} and the last inner {@code Publisher}, if any, complete. * If the main {@code Publisher} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is * or wrapped into a {@link CompositeException} along with the other possible errors the former inner {@code Publisher}s signaled. *
@@ -4416,7 +4416,7 @@ public static Flowable switchOnNextDelayError(@NonNull Publisher - * The resulting {@code Publisher} completes if both the main {@code Publisher} and the last inner {@code Publisher}, if any, complete. + * The resulting {@code Flowable} completes if both the main {@code Publisher} and the last inner {@code Publisher}, if any, complete. * If the main {@code Publisher} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is * or wrapped into a {@link CompositeException} along with the other possible errors the former inner {@code Publisher}s signaled. *
@@ -4565,7 +4565,7 @@ public static Flowable unsafeCreate(@NonNull Publisher onSubscribe) { * the factory function to create a {@code Publisher} * @param resourceDisposer * the function that will dispose of the resource - * @return the {@code Publisher} whose lifetime controls the lifetime of the dependent resource object + * @return the {@code Flowable} whose lifetime controls the lifetime of the dependent resource object * @throws NullPointerException if {@code resourceSupplier}, {@code sourceSupplier} or {@code resourceDisposer} is {@code null} * @see ReactiveX operators documentation: Using */ @@ -4607,7 +4607,7 @@ public static Flowable using( * or just before the emission of a terminal event ({@code onComplete} or {@code onError}). * If {@code false} the resource disposal will happen either on a {@code cancel()} call after the upstream is disposed * or just after the emission of a terminal event ({@code onComplete} or {@code onError}). - * @return the {@code Publisher} whose lifetime controls the lifetime of the dependent resource object + * @return the {@code Flowable} whose lifetime controls the lifetime of the dependent resource object * @throws NullPointerException if {@code resourceSupplier}, {@code sourceSupplier} or {@code resourceDisposer} is {@code null} * @see ReactiveX operators documentation: Using * @since 2.0 @@ -4636,7 +4636,7 @@ public static Flowable using( * the second item emitted by the new {@code Publisher} will be the result of the function applied to the second * item emitted by each of those {@code Publisher}s; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@code onNext} as many times as + * The resulting {@code Flowable} returned from {@code zip} will invoke {@code onNext} as many times as * the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest items. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if @@ -4667,7 +4667,7 @@ public static Flowable using( * an {@code Iterable} of source {@code Publisher}s * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code sources} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip @@ -4691,7 +4691,7 @@ public static Flowable zip(@NonNull Iterable - * The resulting {@code Publisher} returned from {@code zip} will invoke {@code onNext} as many times as + * The resulting {@code Floawble} returned from {@code zip} will invoke {@code onNext} as many times as * the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest items. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if @@ -4721,7 +4721,7 @@ public static Flowable zip(@NonNull Iterable Flowable zip(@NonNull Iterable - * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -4790,7 +4790,7 @@ public static Flowable zip(@NonNull IterableReactiveX operators documentation: Zip @@ -4819,7 +4819,7 @@ public static Flowable zip( * emitted by {@code o2}; the second item emitted by the new {@code Publisher} will be the result of the function * applied to the second item emitted by {@code o1} and the second item emitted by {@code o2}; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -4852,7 +4852,7 @@ public static Flowable zip( * a second source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results - * in an item that will be emitted by the resulting {@code Publisher} + * in an item that will be emitted by the resulting {@code Flowable} * @param delayError delay errors from any of the source {@code Publisher}s till the other terminates * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2} or {@code zipper} is {@code null} @@ -4882,7 +4882,7 @@ public static Flowable zip( * emitted by {@code o2}; the second item emitted by the new {@code Publisher} will be the result of the function * applied to the second item emitted by {@code o1} and the second item emitted by {@code o2}; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -4915,7 +4915,7 @@ public static Flowable zip( * a second source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results - * in an item that will be emitted by the resulting {@code Publisher} + * in an item that will be emitted by the resulting {@code Flowable} * @param delayError delay errors from any of the source {@code Publisher}s till the other terminates * @param bufferSize the number of elements to prefetch from each source {@code Publisher} * @return a {@code Flowable} that emits the zipped results @@ -4948,7 +4948,7 @@ public static Flowable zip( * {@code Publisher} will be the result of the function applied to the second item emitted by {@code o1}, the * second item emitted by {@code o2}, and the second item emitted by {@code o3}; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -4984,7 +4984,7 @@ public static Flowable zip( * a third source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip @@ -5015,7 +5015,7 @@ public static Flowable zip( * the second item emitted by the new {@code Publisher} will be the result of the function applied to the second * item emitted by each of those {@code Publisher}s; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5054,7 +5054,7 @@ public static Flowable zip( * a fourth source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4} or {@code zipper} is {@code null} @@ -5088,7 +5088,7 @@ public static Flowable zip( * the first item emitted by {@code o5}; the second item emitted by the new {@code Publisher} will be the result of * the function applied to the second item emitted by each of those {@code Publisher}s; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5130,7 +5130,7 @@ public static Flowable zip( * a fifth source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4}, {@code source5} or {@code zipper} is {@code null} @@ -5164,7 +5164,7 @@ public static Flowable zip( * second item emitted by the new {@code Publisher} will be the result of the function applied to the second item * emitted by each of those {@code Publisher}s, and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5209,7 +5209,7 @@ public static Flowable zip( * a sixth source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4}, {@code source5}, {@code source6} @@ -5245,7 +5245,7 @@ public static Flowable zip( * second item emitted by the new {@code Publisher} will be the result of the function applied to the second item * emitted by each of those {@code Publisher}s, and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5293,7 +5293,7 @@ public static Flowable zip( * a seventh source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4}, {@code source5}, {@code source6}, @@ -5331,7 +5331,7 @@ public static Flowable zip( * second item emitted by the new {@code Publisher} will be the result of the function applied to the second item * emitted by each of those {@code Publisher}s, and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5382,7 +5382,7 @@ public static Flowable zip( * an eighth source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4}, {@code source5}, {@code source6}, @@ -5421,7 +5421,7 @@ public static Flowable zip( * second item emitted by the new {@code Publisher} will be the result of the function applied to the second item * emitted by each of those {@code Publisher}s, and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} + * The resulting {@code Flowable} returned from {@code zip} will invoke {@link Subscriber#onNext onNext} * as many times as the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest * items. *

@@ -5475,7 +5475,7 @@ public static Flowable zip( * a ninth source {@code Publisher} * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the zipped results * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, * {@code source4}, {@code source5}, {@code source6}, @@ -5515,7 +5515,7 @@ public static Flowable zip( * the second item emitted by the new {@code Publisher} will be the result of the function applied to the second * item emitted by each of those {@code Publisher}s; and so forth. *

- * The resulting {@code Publisher} returned from {@code zip} will invoke {@code onNext} as many times as + * The resulting {@code Flowable} returned from {@code zip} will invoke {@code onNext} as many times as * the number of {@code onNext} invocations of the source {@code Publisher} that emits the fewest items. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if @@ -5547,7 +5547,7 @@ public static Flowable zip( * an array of source {@code Publisher}s * @param zipper * a function that, when applied to an item emitted by each of the source {@code Publisher}s, results in - * an item that will be emitted by the resulting {@code Publisher} + * an item that will be emitted by the resulting {@code Flowable} * @param delayError * delay errors signaled by any of the source {@code Publisher} until all {@code Publisher}s terminate * @param bufferSize @@ -5578,13 +5578,13 @@ public static Flowable zipArray(@NonNull Function * *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code all} does not operate by default on a particular {@link Scheduler}.
@@ -5592,7 +5592,7 @@ public static Flowable zipArray(@NonNull FunctionReactiveX operators documentation: All @@ -5621,8 +5621,8 @@ public final Single all(@NonNull Predicate predicate) { * * @param other * a {@code Publisher} competing to react first. A subscription to this provided {@code Publisher} will occur after subscribing - * to the current {@code Publisher}. - * @return a {@code Flowable} that emits the same sequence as whichever of the source {@code Publisher}s first + * to the current {@code Flowable}. + * @return a {@code Flowable} that emits the same sequence as whichever of this or the other {@code Publisher} first * emitted an item or sent a termination notification * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: Amb @@ -5637,9 +5637,9 @@ public final Flowable ambWith(@NonNull Publisher other) { } /** - * Returns a {@link Single} that emits {@code true} if any item emitted by the source {@link Publisher} satisfies a + * Returns a {@link Single} that emits {@code true} if any item emitted by the current {@code Flowable} satisfies a * specified condition, otherwise {@code false}. Note: this always emits {@code false} if the - * source {@code Publisher} is empty. + * current {@code Flowable} is empty. *

* *

@@ -5647,16 +5647,16 @@ public final Flowable ambWith(@NonNull Publisher other) { * idioms. *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded manner + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code any} does not operate by default on a particular {@link Scheduler}.
*
* * @param predicate - * the condition to test items emitted by the source {@code Publisher} - * @return a {@code Single} that emits a {@link Boolean} that indicates whether any item emitted by the source - * {@code Publisher} satisfies the {@code predicate} + * the condition to test items emitted by the current {@code Flowable} + * @return a {@code Single} that emits a {@link Boolean} that indicates whether any item emitted by the current + * {@code Flowable} satisfies the {@code predicate} * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: Contains */ @@ -5674,7 +5674,7 @@ public final Single any(@NonNull Predicate predicate) { * {@link NoSuchElementException} if it emits no items. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.
@@ -5708,7 +5708,7 @@ public final T blockingFirst() { * items. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.
@@ -5738,7 +5738,7 @@ public final T blockingFirst(@NonNull T defaultItem) { } /** - * Consumes the upstream {@code Flowable} in a blocking fashion and invokes the given + * Consumes the current {@code Flowable} in a blocking fashion and invokes the given * {@link Consumer} with each upstream item on the current thread until the * upstream terminates. *

@@ -5779,7 +5779,7 @@ public final void blockingForEach(@NonNull Consumer onNext) { } /** - * Consumes the upstream {@code Flowable} in a blocking fashion and invokes the given + * Consumes the current {@code Flowable} in a blocking fashion and invokes the given * {@link Consumer} with each upstream item on the current thread until the * upstream terminates. *

@@ -5888,7 +5888,7 @@ public final Iterable blockingIterable(int bufferSize) { * *

*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingLast} does not operate by default on a particular {@link Scheduler}.
@@ -5924,7 +5924,7 @@ public final T blockingLast() { * *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingLast} does not operate by default on a particular {@link Scheduler}.
@@ -5964,7 +5964,7 @@ public final T blockingLast(@NonNull T defaultItem) { * event. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingLatest} does not operate by default on a particular {@link Scheduler}.
@@ -5988,7 +5988,7 @@ public final Iterable blockingLatest() { * *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingMostRecent} does not operate by default on a particular {@link Scheduler}.
@@ -6016,7 +6016,7 @@ public final Iterable blockingMostRecent(@NonNull T initialItem) { * *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingNext} does not operate by default on a particular {@link Scheduler}.
@@ -6041,7 +6041,7 @@ public final Iterable blockingNext() { * *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSingle} does not operate by default on a particular {@link Scheduler}.
@@ -6070,7 +6070,7 @@ public final T blockingSingle() { * *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSingle} does not operate by default on a particular {@link Scheduler}.
@@ -6108,7 +6108,7 @@ public final T blockingSingle(@NonNull T defaultItem) { * If the {@code Flowable} may emit more than one item, use {@code Flowable.toList().toFuture()}. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code toFuture} does not operate by default on a particular {@link Scheduler}.
@@ -6126,14 +6126,14 @@ public final Future toFuture() { } /** - * Runs the source {@code Flowable} to a terminal event, ignoring any values and rethrowing any exception. + * Runs the current {@code Flowable} to a terminal event, ignoring any values and rethrowing any exception. *

* Note that calling this method will block the caller thread until the upstream terminates * normally or with an error. Therefore, calling this method from special threads such as the * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *

*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6163,7 +6163,7 @@ public final void blockingSubscribe() { * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6194,7 +6194,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext) { * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize + *
The operator consumes the current {@code Flowable} in an bounded manner (up to bufferSize * outstanding request amount for items).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6222,7 +6222,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, int buf * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6247,7 +6247,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize + *
The operator consumes the current {@code Flowable} in an bounded manner (up to bufferSize * outstanding request amount for items).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6276,7 +6276,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an unbounded manner + *
The operator consumes the current {@code Flowable} in an unbounded manner * (i.e., no backpressure applied to it).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6301,7 +6301,7 @@ public final void blockingSubscribe(@NonNull Consumer onNext, @NonNul * Android Main Thread or the Swing Event Dispatch Thread is not recommended. *
*
Backpressure:
- *
The operator consumes the source {@code Flowable} in an bounded manner (up to bufferSize + *
The operator consumes the current {@code Flowable} in an bounded manner (up to bufferSize * outstanding request amount for items).
*
Scheduler:
*
{@code blockingSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -6349,16 +6349,16 @@ public final void blockingSubscribe(@NonNull Subscriber subscriber) { } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each containing {@code count} items. When the source - * {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the notification from the - * source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event is passed on + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each containing {@code count} items. When the current + * {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the notification from the + * current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event is passed on * immediately without first emitting the buffer it is in the process of assembling. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and expects the source {@code Publisher} to honor it as + *
The operator honors backpressure from downstream and expects the current {@code Flowable} to honor it as * well, although not enforced; violation may lead to {@link MissingBackpressureException} somewhere * downstream.
*
Scheduler:
@@ -6368,7 +6368,7 @@ public final void blockingSubscribe(@NonNull Subscriber subscriber) { * @param count * the maximum number of items in each buffer before it should be emitted * @return a {@code Flowable} that emits connected, non-overlapping buffers, each containing at most - * {@code count} items from the source {@code Publisher} + * {@code count} items from the current {@code Flowable} * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer */ @@ -6381,16 +6381,16 @@ public final Flowable> buffer(int count) { } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits buffers every {@code skip} items, each containing {@code count} items. When the source - * {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the notification from the - * source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event is passed on + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits buffers every {@code skip} items, each containing {@code count} items. When the current + * {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the notification from the + * current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event is passed on * immediately without first emitting the buffer it is in the process of assembling. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and expects the source {@code Publisher} to honor it as + *
The operator honors backpressure from downstream and expects the current {@code Flowable} to honor it as * well, although not enforced; violation may lead to {@link MissingBackpressureException} somewhere * downstream.
*
Scheduler:
@@ -6400,10 +6400,10 @@ public final Flowable> buffer(int count) { * @param count * the maximum size of each buffer before it should be emitted * @param skip - * how many items emitted by the source {@code Publisher} should be skipped before starting a new + * how many items emitted by the current {@code Flowable} should be skipped before starting a new * buffer. Note that when {@code skip} and {@code count} are equal, this is the same operation as * {@link #buffer(int)}. - * @return a {@code Flowable} that emits buffers for every {@code skip} item from the source {@code Publisher} and + * @return a {@code Flowable} that emits buffers for every {@code skip} item from the current {@code Flowable} and * containing at most {@code count} items * @throws IllegalArgumentException if {@code count} or {@code skip} is non-positive * @see ReactiveX operators documentation: Buffer @@ -6417,16 +6417,16 @@ public final Flowable> buffer(int count, int skip) { } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits buffers every {@code skip} items, each containing {@code count} items. When the source - * {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the notification from the - * source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event is passed on + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits buffers every {@code skip} items, each containing {@code count} items. When the current + * {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the notification from the + * current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event is passed on * immediately without first emitting the buffer it is in the process of assembling. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and expects the source {@code Publisher} to honor it as + *
The operator honors backpressure from downstream and expects the current {@code Flowable} to honor it as * well, although not enforced; violation may lead to {@link MissingBackpressureException} somewhere * downstream.
*
Scheduler:
@@ -6437,13 +6437,13 @@ public final Flowable> buffer(int count, int skip) { * @param count * the maximum size of each buffer before it should be emitted * @param skip - * how many items emitted by the source {@code Publisher} should be skipped before starting a new + * how many items emitted by the current {@code Flowable} should be skipped before starting a new * buffer. Note that when {@code skip} and {@code count} are equal, this is the same operation as * {@link #buffer(int)}. * @param bufferSupplier * a factory function that returns an instance of the collection subclass to be used and returned * as the buffer - * @return a {@code Flowable} that emits buffers for every {@code skip} item from the source {@code Publisher} and + * @return a {@code Flowable} that emits buffers for every {@code skip} item from the current {@code Flowable} and * containing at most {@code count} items * @throws NullPointerException if {@code bufferSupplier} is {@code null} * @throws IllegalArgumentException if {@code count} or {@code skip} is non-positive @@ -6461,16 +6461,16 @@ public final > Flowable buffer(int count, int } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each containing {@code count} items. When the source - * {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the notification from the - * source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event is passed on + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each containing {@code count} items. When the current + * {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the notification from the + * current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event is passed on * immediately without first emitting the buffer it is in the process of assembling. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and expects the source {@code Publisher} to honor it as + *
The operator honors backpressure from downstream and expects the current {@code Flowable} to honor it as * well, although not enforced; violation may lead to {@link MissingBackpressureException} somewhere * downstream.
*
Scheduler:
@@ -6484,7 +6484,7 @@ public final > Flowable buffer(int count, int * a factory function that returns an instance of the collection subclass to be used and returned * as the buffer * @return a {@code Flowable} that emits connected, non-overlapping buffers, each containing at most - * {@code count} items from the source {@code Publisher} + * {@code count} items from the current {@code Flowable} * @throws NullPointerException if {@code bufferSupplier} is {@code null} * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Buffer @@ -6498,11 +6498,11 @@ public final > Flowable buffer(int count, @No } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new buffer periodically, as determined by the {@code timeskip} argument. It emits - * each buffer after a fixed timespan, specified by the {@code timespan} argument. When the source - * {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the notification from the - * source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event is passed on + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new buffer periodically, as determined by the {@code timeskip} argument. It emits + * each buffer after a fixed timespan, specified by the {@code timespan} argument. When the current + * {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the notification from the + * current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event is passed on * immediately without first emitting the buffer it is in the process of assembling. *

* @@ -6520,7 +6520,7 @@ public final > Flowable buffer(int count, @No * the period of time after which a new buffer will be created * @param unit * the unit of time that applies to the {@code timespan} and {@code timeskip} arguments - * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after + * @return a {@code Flowable} that emits new buffers of items emitted by the current {@code Flowable} periodically after * a fixed timespan has elapsed * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Buffer @@ -6534,11 +6534,11 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the * specified {@code scheduler}. It emits each buffer after a fixed timespan, specified by the - * {@code timespan} argument. When the source {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer - * and propagates the notification from the source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} + * {@code timespan} argument. When the current {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer + * and propagates the notification from the current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} * notification the event is passed on immediately without first emitting the buffer it is in the process of * assembling. *

@@ -6559,7 +6559,7 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim * the unit of time that applies to the {@code timespan} and {@code timeskip} arguments * @param scheduler * the {@code Scheduler} to use when determining the end and start of a buffer - * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after + * @return a {@code Flowable} that emits new buffers of items emitted by the current {@code Flowable} periodically after * a fixed timespan has elapsed * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Buffer @@ -6573,11 +6573,11 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new buffer periodically, as determined by the {@code timeskip} argument, and on the * specified {@code scheduler}. It emits each buffer after a fixed timespan, specified by the - * {@code timespan} argument. When the source {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer - * and propagates the notification from the source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} + * {@code timespan} argument. When the current {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer + * and propagates the notification from the current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} * notification the event is passed on immediately without first emitting the buffer it is in the process of * assembling. *

@@ -6602,7 +6602,7 @@ public final Flowable> buffer(long timespan, long timeskip, @NonNull Tim * @param bufferSupplier * a factory function that returns an instance of the collection subclass to be used and returned * as the buffer - * @return a {@code Flowable} that emits new buffers of items emitted by the source {@code Publisher} periodically after + * @return a {@code Flowable} that emits new buffers of items emitted by the current {@code Flowable} periodically after * a fixed timespan has elapsed * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code bufferSupplier} is {@code null} * @see ReactiveX operators documentation: Buffer @@ -6620,10 +6620,10 @@ public final > Flowable buffer(long timespan, } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each of a fixed duration specified by the - * {@code timespan} argument. When the source {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer - * and propagates the notification from the source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each of a fixed duration specified by the + * {@code timespan} argument. When the current {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer + * and propagates the notification from the current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} * notification the event is passed on immediately without first emitting the buffer it is in the process of * assembling. *

@@ -6641,8 +6641,8 @@ public final > Flowable buffer(long timespan, * buffer * @param unit * the unit of time that applies to the {@code timespan} argument - * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source - * {@code Publisher} within a fixed duration + * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the current + * {@code Flowable} within a fixed duration * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Buffer */ @@ -6655,11 +6655,11 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each of a fixed duration specified by the * {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached - * first). When the source {@code Publisher} completes, the resulting {@code Publisher} emits the current buffer and propagates the - * notification from the source {@code Publisher}. Note that if the source {@code Publisher} issues an {@code onError} notification the event + * first). When the current {@code Flowable} completes, the resulting {@code Flowable} emits the current buffer and propagates the + * notification from the current {@code Flowable}. Note that if the current {@code Flowable} issues an {@code onError} notification the event * is passed on immediately without first emitting the buffer it is in the process of assembling. *

* @@ -6678,8 +6678,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit) { * the unit of time which applies to the {@code timespan} argument * @param count * the maximum size of each buffer before it is emitted - * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source - * {@code Publisher}, after a fixed duration or when the buffer reaches maximum capacity (whichever occurs + * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the current + * {@code Flowable}, after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) * @throws NullPointerException if {@code unit} is {@code null} * @throws IllegalArgumentException if {@code count} is non-positive @@ -6694,12 +6694,12 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, int } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each of a fixed duration specified by the * {@code timespan} argument as measured on the specified {@code scheduler}, or a maximum size specified by - * the {@code count} argument (whichever is reached first). When the source {@code Publisher} completes, the resulting - * {@code Publisher} emits the current buffer and propagates the notification from the source {@code Publisher}. Note that if the - * source {@code Publisher} issues an {@code onError} notification the event is passed on immediately without first emitting the + * the {@code count} argument (whichever is reached first). When the current {@code Flowable} completes, the resulting + * {@code Flowable} emits the current buffer and propagates the notification from the current {@code Flowable}. Note that if the + * current {@code Flowable} issues an {@code onError} notification the event is passed on immediately without first emitting the * buffer it is in the process of assembling. *

* @@ -6720,8 +6720,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, int * the {@code Scheduler} to use when determining the end and start of a buffer * @param count * the maximum size of each buffer before it is emitted - * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source - * {@code Publisher} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs + * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the current + * {@code Flowable} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code count} is non-positive @@ -6736,12 +6736,12 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each of a fixed duration specified by the * {@code timespan} argument as measured on the specified {@code scheduler}, or a maximum size specified by - * the {@code count} argument (whichever is reached first). When the source {@code Publisher} completes, the resulting - * {@code Publisher} emits the current buffer and propagates the notification from the source {@code Publisher}. Note that if the - * source {@code Publisher} issues an {@code onError} notification the event is passed on immediately without first emitting the + * the {@code count} argument (whichever is reached first). When the current {@code Flowable} completes, the resulting + * {@code Flowable} emits the current buffer and propagates the notification from the current {@code Flowable}. Note that if the + * current {@code Flowable} issues an {@code onError} notification the event is passed on immediately without first emitting the * buffer it is in the process of assembling. *

* @@ -6768,8 +6768,8 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No * as the buffer * @param restartTimerOnMaxSize if {@code true}, the time window is restarted when the max capacity of the current buffer * is reached - * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source - * {@code Publisher} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs + * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the current + * {@code Flowable} after a fixed duration or when the buffer reaches maximum capacity (whichever occurs * first) * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code bufferSupplier} is {@code null} * @throws IllegalArgumentException if {@code count} is non-positive @@ -6792,11 +6792,11 @@ public final > Flowable buffer( } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping buffers, each of a fixed duration specified by the - * {@code timespan} argument and on the specified {@code scheduler}. When the source {@code Publisher} completes, the - * resulting {@code Publisher} emits the current buffer and propagates the notification from the source {@code Publisher}. Note that - * if the source {@code Publisher} issues an {@code onError} notification the event is passed on immediately without first emitting + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping buffers, each of a fixed duration specified by the + * {@code timespan} argument and on the specified {@code scheduler}. When the current {@code Flowable} completes, the + * resulting {@code Flowable} emits the current buffer and propagates the notification from the current {@code Flowable}. Note that + * if the current {@code Flowable} issues an {@code onError} notification the event is passed on immediately without first emitting * the buffer it is in the process of assembling. *

* @@ -6815,8 +6815,8 @@ public final > Flowable buffer( * the unit of time which applies to the {@code timespan} argument * @param scheduler * the {@code Scheduler} to use when determining the end and start of a buffer - * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the source - * {@code Publisher} within a fixed duration + * @return a {@code Flowable} that emits connected, non-overlapping buffers of items emitted by the current + * {@code Flowable} within a fixed duration * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Buffer */ @@ -6829,10 +6829,10 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits buffers that it creates when the specified {@code openingIndicator} {@code Publisher} emits an - * item, and closes when the {@code Publisher} returned from {@code closingIndicator} emits an item. If any of the source - * {@code Publisher}, {@code openingIndicator} or {@code closingIndicator} issues an {@code onError} notification the event is passed + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits buffers that it creates when the specified {@code openingIndicator} {@link Publisher} emits an + * item, and closes when the {@code Publisher} returned from {@code closingIndicator} emits an item. If any of the current + * {@code PFlowable}, {@code openingIndicator} or {@code closingIndicator} issues an {@code onError} notification the event is passed * on immediately without first emitting the buffer it is in the process of assembling. *

* @@ -6851,7 +6851,7 @@ public final Flowable> buffer(long timespan, @NonNull TimeUnit unit, @No * @param closingIndicator * the {@link Function} that is used to produce a {@code Publisher} for every buffer created. When this * {@code Publisher} emits an item, the associated buffer is emitted. - * @return a {@code Flowable} that emits buffers, containing items from the source {@code Publisher}, that are created + * @return a {@code Flowable} that emits buffers, containing items from the current {@code Flowable}, that are created * and closed when the specified {@code Publisher}s emit items * @throws NullPointerException if {@code openingIndicator} or {@code closingIndicator} is {@code null} * @see ReactiveX operators documentation: Buffer @@ -6867,10 +6867,10 @@ public final Flowable> buffer( } /** - * Returns a {@code Flowable} that emits buffers of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits buffers that it creates when the specified {@code openingIndicator} {@code Publisher} emits an - * item, and closes when the {@code Publisher} returned from {@code closingIndicator} emits an item. If any of the source - * {@code Publisher}, {@code openingIndicator} or {@code closingIndicator} issues an {@code onError} notification the event is passed + * Returns a {@code Flowable} that emits buffers of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits buffers that it creates when the specified {@code openingIndicator} {@link Publisher} emits an + * item, and closes when the {@code Publisher} returned from {@code closingIndicator} emits an item. If any of the current + * {@code Flowable}, {@code openingIndicator} or {@code closingIndicator} issues an {@code onError} notification the event is passed * on immediately without first emitting the buffer it is in the process of assembling. *

* @@ -6893,7 +6893,7 @@ public final Flowable> buffer( * @param bufferSupplier * a factory function that returns an instance of the collection subclass to be used and returned * as the buffer - * @return a {@code Flowable} that emits buffers, containing items from the source {@code Publisher}, that are created + * @return a {@code Flowable} that emits buffers, containing items from the current {@code Flowable}, that are created * and closed when the specified {@code Publisher}s emit items * @throws NullPointerException if {@code openingIndicator}, {@code closingIndicator} or {@code bufferSupplier} is {@code null} * @see ReactiveX operators documentation: Buffer @@ -6913,13 +6913,13 @@ public final > Flowable b } /** - * Returns a {@code Flowable} that emits non-overlapping buffered items from the source {@link Publisher} each time the - * specified boundary {@code Publisher} emits an item. + * Returns a {@code Flowable} that emits non-overlapping buffered items from the current {@code Flowable} each time the + * specified boundary {@link Publisher} emits an item. *

* *

* Completion of either the source or the boundary {@code Publisher} causes the returned {@code Publisher} to emit the - * latest buffer and complete. If either the source {@code Publisher} or the boundary {@code Publisher} issues an {@code onError} notification + * latest buffer and complete. If either the current {@code Flowable} or the boundary {@code Publisher} issues an {@code onError} notification * the event is passed on immediately without first emitting the buffer it is in the process of assembling. *

*
Backpressure:
@@ -6934,7 +6934,7 @@ public final > Flowable b * the boundary value type (ignored) * @param boundaryIndicator * the boundary {@code Publisher} - * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} + * @return a {@code Flowable} that emits buffered items from the current {@code Flowable} when the boundary {@code Publisher} * emits an item * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @see #buffer(Publisher, int) @@ -6949,13 +6949,13 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato } /** - * Returns a {@code Flowable} that emits non-overlapping buffered items from the source {@link Publisher} each time the - * specified boundary {@code Publisher} emits an item. + * Returns a {@code Flowable} that emits non-overlapping buffered items from the current {@code Flowable} each time the + * specified boundary {@link Publisher} emits an item. *

* *

* Completion of either the source or the boundary {@code Publisher} causes the returned {@code Publisher} to emit the - * latest buffer and complete. If either the source {@code Publisher} or the boundary {@code Publisher} issues an {@code onError} notification + * latest buffer and complete. If either the current {@code Flowable} or the boundary {@code Publisher} issues an {@code onError} notification * the event is passed on immediately without first emitting the buffer it is in the process of assembling. *

*
Backpressure:
@@ -6972,7 +6972,7 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato * the boundary {@code Publisher} * @param initialCapacity * the initial capacity of each buffer chunk - * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} + * @return a {@code Flowable} that emits buffered items from the current {@code Flowable} when the boundary {@code Publisher} * emits an item * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @throws IllegalArgumentException if {@code initialCapacity} is non-positive @@ -6989,13 +6989,13 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato } /** - * Returns a {@code Flowable} that emits non-overlapping buffered items from the source {@link Publisher} each time the - * specified boundary {@code Publisher} emits an item. + * Returns a {@code Flowable} that emits non-overlapping buffered items from the current {@code Flowable} each time the + * specified boundary {@link Publisher} emits an item. *

* *

* Completion of either the source or the boundary {@code Publisher} causes the returned {@code Publisher} to emit the - * latest buffer and complete. If either the source {@code Publisher} or the boundary {@code Publisher} issues an {@code onError} notification + * latest buffer and complete. If either the current {@code Flowable} or the boundary {@code Publisher} issues an {@code onError} notification * the event is passed on immediately without first emitting the buffer it is in the process of assembling. *

*
Backpressure:
@@ -7014,7 +7014,7 @@ public final Flowable> buffer(@NonNull Publisher boundaryIndicato * @param bufferSupplier * a factory function that returns an instance of the collection subclass to be used and returned * as the buffer - * @return a {@code Flowable} that emits buffered items from the source {@code Publisher} when the boundary {@code Publisher} + * @return a {@code Flowable} that emits buffered items from the current {@code Flowable} when the boundary {@code Publisher} * emits an item * @throws NullPointerException if {@code boundaryIndicator} or {@code bufferSupplier} is {@code null} * @see #buffer(Publisher, int) @@ -7159,13 +7159,13 @@ public final Flowable cacheWithInitialCapacity(int initialCapacity) { } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher}, converted to the specified + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable}, converted to the specified * type. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code cast} does not operate by default on a particular {@link Scheduler}.
@@ -7173,9 +7173,9 @@ public final Flowable cacheWithInitialCapacity(int initialCapacity) { * * @param the output value type cast to * @param clazz - * the target class type that {@code cast} will cast the items emitted by the source {@code Publisher} - * into before emitting them from the resulting {@code Publisher} - * @return a {@code Flowable} that emits each item from the source {@code Publisher} after converting it to the + * the target class type that {@code cast} will cast the items emitted by the current {@code Flowable} + * into before emitting them from the resulting {@code Flowable} + * @return a {@code Flowable} that emits each item from the current {@code Flowable} after converting it to the * specified type * @throws NullPointerException if {@code clazz} is {@code null} * @see ReactiveX operators documentation: Map @@ -7214,7 +7214,7 @@ public final Flowable cast(@NonNull Class clazz) { * @param collector * a function that accepts the {@code state} and an emitted item, and modifies {@code state} * accordingly - * @return a {@code Single} that emits the result of collecting the values emitted by the source {@code Publisher} + * @return a {@code Single} that emits the result of collecting the values emitted by the current {@code Flowable} * into a single mutable data structure * @throws NullPointerException if {@code initialItemSupplier} or {@code collector} is {@code null} * @see ReactiveX operators documentation: Reduce @@ -7255,7 +7255,7 @@ public final Single collect(@NonNull Supplier initialItemSup * @param collector * a function that accepts the {@code state} and an emitted item, and modifies {@code state} * accordingly - * @return a {@code Single} that emits the result of collecting the values emitted by the source {@code Publisher} + * @return a {@code Single} that emits the result of collecting the values emitted by the current {@code Flowable} * into a single mutable data structure * @throws NullPointerException if {@code initialItem} or {@code collector} is {@code null} * @see ReactiveX operators documentation: Reduce @@ -7275,8 +7275,8 @@ public final Single collect(@NonNull Supplier initialItemSup * This method operates on the {@code Publisher} itself whereas {@link #lift} operates on the {@code Publisher}'s * {@link Subscriber}s. *

- * If the operator you are creating is designed to act on the individual items emitted by a source - * {@code Publisher}, use {@link #lift}. If your operator is designed to transform the source {@code Publisher} as a whole + * If the operator you are creating is designed to act on the individual items emitted by a current + * {@code Flowable}, use {@link #lift}. If your operator is designed to transform the current {@code Flowable} as a whole * (for instance, by applying a particular set of existing RxJava operators to it) use {@code compose}. *

*
Backpressure:
@@ -7287,8 +7287,8 @@ public final Single collect(@NonNull Supplier initialItemSup *
* * @param the value type of the output {@code Publisher} - * @param composer implements the function that transforms the source {@code Publisher} - * @return the source {@code Publisher}, transformed by the transformer function + * @param composer implements the function that transforms the current {@code Flowable} + * @return the current {@code Flowable}, transformed by the transformer function * @throws NullPointerException if {@code composer} is {@code null} * @see RxJava wiki: Implementing Your Own Operators */ @@ -7303,8 +7303,8 @@ public final Flowable compose(@NonNull FlowableTransformer * *

@@ -7314,7 +7314,7 @@ public final Flowable compose(@NonNull FlowableTransformer *

Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7324,10 +7324,10 @@ public final Flowable compose(@NonNull FlowableTransformer the type of the inner {@code Publisher} sources and thus the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and concatenating the {@code Publisher}s obtained from this transformation + * by the current {@code Flowable} and concatenating the {@code Publisher}s obtained from this transformation * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @@ -7341,8 +7341,8 @@ public final Flowable concatMap(@NonNull Function * *

@@ -7352,7 +7352,7 @@ public final Flowable concatMap(@NonNull Function *

Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7362,12 +7362,12 @@ public final Flowable concatMap(@NonNull Function the type of the inner {@code Publisher} sources and thus the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param prefetch * the number of elements to prefetch from the current {@code Flowable} * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and concatenating the {@code Publisher}s obtained from this transformation + * by the current {@code Flowable} and concatenating the {@code Publisher}s obtained from this transformation * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -7393,8 +7393,8 @@ public final Flowable concatMap(@NonNull Function * *

@@ -7403,7 +7403,7 @@ public final Flowable concatMap(@NonNull Function *

Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7413,14 +7413,14 @@ public final Flowable concatMap(@NonNull Function the type of the inner {@code Publisher} sources and thus the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param prefetch * the number of elements to prefetch from the current {@code Flowable} * @param scheduler * the scheduler where the {@code mapper} function will be executed * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and concatenating the {@code Publisher}s obtained from this transformation + * by the current {@code Flowable} and concatenating the {@code Publisher}s obtained from this transformation * @throws NullPointerException if {@code mapper} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -7625,7 +7625,7 @@ public final Completable concatMapCompletableDelayError(@NonNull Function *
Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7635,7 +7635,7 @@ public final Completable concatMapCompletableDelayError(@NonNull Function the result value type * @param mapper the function that maps the items of this {@code Publisher} into the inner {@code Publisher}s. - * @return the new {@code Publisher} instance with the concatenation behavior + * @return the new {@code Flowable} instance with the concatenation behavior * @throws NullPointerException if {@code mapper} is {@code null} * @see #concatMapDelayError(Function, boolean, int, Scheduler) */ @@ -7660,7 +7660,7 @@ public final Flowable concatMapDelayError(@NonNull Function *
Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7672,10 +7672,10 @@ public final Flowable concatMapDelayError(@NonNull Function Flowable concatMapDelayError(@NonNull Function *
Backpressure:
*
The operator honors backpressure from downstream. Both this and the inner {@code Publisher}s are - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}. If any of the inner {@code Publisher}s doesn't honor * backpressure, that may throw an {@link IllegalStateException} when that * {@code Publisher} completes.
@@ -7723,12 +7723,12 @@ public final Flowable concatMapDelayError(@NonNull Function Flowable concatMapDelayError(@NonNull Function * Eager concatenation means that once a subscriber subscribes, this operator subscribes to all of the - * source {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in + * inner {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in * order, each one after the previous one completes. *
*
Backpressure:
@@ -7763,7 +7763,7 @@ public final Flowable concatMapDelayError(@NonNull Function the value type * @param mapper the function that maps a sequence of values into a sequence of {@code Publisher}s that will be * eagerly concatenated - * @return the new {@code Publisher} instance with the specified concatenation behavior + * @return the new {@code Flowable} instance with the specified concatenation behavior * @throws NullPointerException if {@code mapper} is {@code null} * @since 2.0 */ @@ -7780,7 +7780,7 @@ public final Flowable concatMapEager(@NonNull Function * Eager concatenation means that once a subscriber subscribes, this operator subscribes to all of the - * source {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in + * inner {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in * order, each one after the previous one completes. *
*
Backpressure:
@@ -7794,7 +7794,7 @@ public final Flowable concatMapEager(@NonNull Function Flowable concatMapEager(@NonNull Function * Eager concatenation means that once a subscriber subscribes, this operator subscribes to all of the - * source {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in + * inner {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in * order, each one after the previous one completes. *
*
Backpressure:
@@ -7830,8 +7830,8 @@ public final Flowable concatMapEager(@NonNull Function Flowable concatMapEagerDelayError(@NonNull Function * Eager concatenation means that once a subscriber subscribes, this operator subscribes to all of the - * source {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in + * inner {@code Publisher}s. The operator buffers the values emitted by these {@code Publisher}s and then drains them in * order, each one after the previous one completes. *
*
Backpressure:
@@ -7868,7 +7868,7 @@ public final Flowable concatMapEagerDelayError(@NonNull Function Flowable concatMapEagerDelayError(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher}s is - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + *
The operator honors backpressure from downstream. The current {@code Flowable}s is + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}.
*
Scheduler:
*
{@code concatMapIterable} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of item emitted by the resulting {@code Publisher} + * the type of item emitted by the resulting {@code Flowable} * @param mapper * a function that returns an {@code Iterable} sequence of values for when given an item emitted by the - * source {@code Publisher} - * @return a {@code Flowable} that emits the results of concatenating the items emitted by the source {@code Publisher} with + * current {@code Flowable} + * @return a {@code Flowable} that emits the results of concatenating the items emitted by the current {@code Flowable} with * the values in the {@code Iterable}s corresponding to those items, as generated by {@code collectionSelector} * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap @@ -7917,26 +7917,26 @@ public final Flowable concatMapIterable(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher}s is - * expected to honor backpressure as well. If the source {@code Publisher} violates the rule, the operator will + *
The operator honors backpressure from downstream. The current {@code Flowable} is + * expected to honor backpressure as well. If the current {@code Flowable} violates the rule, the operator will * signal a {@link MissingBackpressureException}.
*
Scheduler:
*
{@code concatMapIterable} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of item emitted by the resulting {@code Publisher} + * the type of item emitted by the resulting {@code Flowable} * @param mapper * a function that returns an {@code Iterable} sequence of values for when given an item emitted by the - * source {@code Publisher} + * current {@code Flowable} * @param prefetch * the number of elements to prefetch from the current {@code Flowable} - * @return a {@code Flowable} that emits the results of concatenating the items emitted by the source {@code Publisher} with + * @return a {@code Flowable} that emits the results of concatenating the items emitted by the current {@code Flowable} with * the values in the {@code Iterable}s corresponding to those items, as generated by {@code collectionSelector} * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive @@ -8333,15 +8333,15 @@ public final Flowable concatMapSingleDelayError(@NonNull Function * *
*
Backpressure:
- *
The operator honors backpressure from downstream. Both this and the {@code other} {@code Publisher}s + *
The operator honors backpressure from downstream. Both this and the {@code other} {@link Publisher}s * are expected to honor backpressure as well. If any of then violates this rule, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code concatWith} does not operate by default on a particular {@link Scheduler}.
*
@@ -8446,22 +8446,22 @@ public final Flowable concatWith(@NonNull CompletableSource other) { } /** - * Returns a {@link Single} that emits a {@link Boolean} that indicates whether the source {@link Publisher} emitted a + * Returns a {@link Single} that emits a {@link Boolean} that indicates whether the current {@code Flowable} emitted a * specified item. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code contains} does not operate by default on a particular {@link Scheduler}.
*
* * @param item - * the item to search for in the emissions from the source {@code Publisher} - * @return a {@code Single} that emits {@code true} if the specified item is emitted by the source {@code Publisher}, - * or {@code false} if the source {@code Publisher} completes without emitting that item + * the item to search for in the emissions from the current {@code Flowable} + * @return a {@code Single} that emits {@code true} if the specified item is emitted by the current {@code Flowable}, + * or {@code false} if the current {@code Flowable} completes without emitting that item * @throws NullPointerException if {@code item} is {@code null} * @see ReactiveX operators documentation: Contains */ @@ -8475,19 +8475,19 @@ public final Single contains(@NonNull Object item) { } /** - * Returns a {@link Single} that counts the total number of items emitted by the source {@link Publisher} and emits + * Returns a {@link Single} that counts the total number of items emitted by the current {@code Flowable} and emits * this count as a 64-bit {@link Long}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code count} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Single} that emits a single item: the number of items emitted by the source {@code Publisher} as a + * @return a {@code Single} that emits a single item: the number of items emitted by the current {@code Flowable} as a * 64-bit {@code Long} item * @see ReactiveX operators documentation: Count */ @@ -8500,13 +8500,13 @@ public final Single count() { } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, except that it drops items emitted by the - * source {@code Publisher} that are followed by another item within a computed debounce duration. + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, except that it drops items emitted by the + * current {@code Flowable} that are followed by another item within a computed debounce duration. *

* *

* The delivery of the item happens on the thread of the first {@code onNext} or {@code onComplete} - * signal of the generated {@code Publisher} sequence, + * signal of the generated {@link Publisher} sequence, * which if takes too long, a newer item may arrive from the upstream, causing the * generated sequence to get cancelled, which may also interrupt any downstream blocking operation * (yielding an {@code InterruptedException}). It is recommended processing items @@ -8524,7 +8524,7 @@ public final Single count() { * the debounce value type (ignored) * @param debounceIndicator * function to retrieve a sequence that indicates the throttle duration for each item - * @return a {@code Flowable} that omits items emitted by the source {@code Publisher} that are followed by another item + * @return a {@code Flowable} that omits items emitted by the current {@code Flowable} that are followed by another item * within a computed debounce duration * @throws NullPointerException if {@code debounceIndicator} is {@code null} * @see ReactiveX operators documentation: Debounce @@ -8540,12 +8540,12 @@ public final Flowable debounce(@NonNull Function - * Note: If items keep being emitted by the source {@code Publisher} faster than the timeout then no items - * will be emitted by the resulting {@code Publisher}. + * Note: If items keep being emitted by the current {@code Flowable} faster than the timeout then no items + * will be emitted by the resulting {@code Flowable}. *

* *

@@ -8563,12 +8563,12 @@ public final Flowable debounce(@NonNull Function * * @param timeout - * the length of the window of time that must pass after the emission of an item from the source - * {@code Publisher} in which that {@code Publisher} emits no items in order for the item to be emitted by the - * resulting {@code Publisher} + * the length of the window of time that must pass after the emission of an item from the current + * {@code Flowable} in which it emits no items in order for the item to be emitted by the + * resulting {@code Flowable} * @param unit * the unit of time for the specified {@code timeout} - * @return a {@code Flowable} that filters out items from the source {@code Publisher} that are too quickly followed by + * @return a {@code Flowable} that filters out items from the current {@code Flowable} that are too quickly followed by * newer items * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Debounce @@ -8584,12 +8584,12 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, except that it drops items emitted by the - * source {@code Publisher} that are followed by newer items before a timeout value expires on a specified + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, except that it drops items emitted by the + * current {@code Flowable} that are followed by newer items before a timeout value expires on a specified * {@link Scheduler}. The timer resets on each emission. *

- * Note: If items keep being emitted by the source {@code Publisher} faster than the timeout then no items - * will be emitted by the resulting {@code Publisher}. + * Note: If items keep being emitted by the current {@code Flowable} faster than the timeout then no items + * will be emitted by the resulting {@code Flowable}. *

* *

@@ -8607,14 +8607,14 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit) { *

* * @param timeout - * the time each item has to be "the most recent" of those emitted by the source {@code Publisher} to + * the time each item has to be "the most recent" of those emitted by the current {@code Flowable} to * ensure that it's not dropped * @param unit * the unit of time for the specified {@code timeout} * @param scheduler * the {@code Scheduler} to use internally to manage the timers that handle the timeout for each * item - * @return a {@code Flowable} that filters out items from the source {@code Publisher} that are too quickly followed by + * @return a {@code Flowable} that filters out items from the current {@code Flowable} that are too quickly followed by * newer items * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Debounce @@ -8632,14 +8632,14 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit, @NonNull } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} or a specified default item - * if the source {@code Publisher} is empty. + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} or a specified default item + * if the current {@code Flowable} is empty. *

* *

*
Backpressure:
- *
If the source {@code Publisher} is empty, this operator is guaranteed to honor backpressure from downstream. - * If the source {@code Publisher} is non-empty, it is expected to honor backpressure as well; if the rule is violated, + *
If the current {@code Flowable} is empty, this operator is guaranteed to honor backpressure from downstream. + * If the current {@code Flowable} is non-empty, it is expected to honor backpressure as well; if the rule is violated, * a {@link MissingBackpressureException} may get signaled somewhere downstream. *
*
Scheduler:
@@ -8647,9 +8647,9 @@ public final Flowable debounce(long timeout, @NonNull TimeUnit unit, @NonNull *
* * @param defaultItem - * the item to emit if the source {@code Publisher} emits no items - * @return a {@code Flowable} that emits either the specified default item if the source {@code Publisher} emits no - * items, or the items emitted by the source {@code Publisher} + * the item to emit if the current {@code Flowable} emits no items + * @return a {@code Flowable} that emits either the specified default item if the current {@code Flowable} emits no + * items, or the items emitted by the current {@code Flowable} * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: DefaultIfEmpty */ @@ -8663,16 +8663,16 @@ public final Flowable defaultIfEmpty(@NonNull T defaultItem) { } /** - * Returns a {@code Flowable} that delays the emissions of the source {@link Publisher} via another {@code Publisher} on a + * Returns a {@code Flowable} that delays the emissions of the current {@code Flowable} via another {@link Publisher} on a * per-item basis. *

* *

- * Note: the resulting {@code Publisher} will immediately propagate any {@code onError} notification - * from the source {@code Publisher}. + * Note: the resulting {@code Flowable} will immediately propagate any {@code onError} notification + * from the current {@code Flowable}. *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}. + *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}. * All of the other {@code Publisher}s supplied by the function are consumed * in an unbounded manner (i.e., no backpressure applied to them).
*
Scheduler:
@@ -8682,10 +8682,10 @@ public final Flowable defaultIfEmpty(@NonNull T defaultItem) { * @param * the item delay value type (ignored) * @param itemDelayIndicator - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher}, which is - * then used to delay the emission of that item by the resulting {@code Publisher} until the {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable}, which is + * then used to delay the emission of that item by the resulting {@code Flowable} until the {@code Publisher} * returned from {@code itemDelay} emits an item - * @return a {@code Flowable} that delays the emissions of the source {@code Publisher} via another {@code Publisher} on a + * @return a {@code Flowable} that delays the emissions of the current {@code Flowable} via another {@code Publisher} on a * per-item basis * @throws NullPointerException if {@code itemDelayIndicator} is {@code null} * @see ReactiveX operators documentation: Delay @@ -8700,13 +8700,13 @@ public final Flowable delay(@NonNull Function * *
*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
This version of {@code delay} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -8715,7 +8715,7 @@ public final Flowable delay(@NonNull FunctionReactiveX operators documentation: Delay */ @@ -8728,13 +8728,13 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} shifted forward in time by a + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} shifted forward in time by a * specified delay. If {@code delayError} is {@code true}, error notifications will also be delayed. *

* *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
This version of {@code delay} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -8746,7 +8746,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit) { * @param delayError * if {@code true}, the upstream exception is signaled with the given delay, after all preceding normal elements, * if {@code false}, the upstream exception is signaled immediately - * @return the source {@code Publisher} shifted in time by the specified delay + * @return the current {@code Flowable} shifted in time by the specified delay * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay */ @@ -8759,13 +8759,13 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, boolean delay } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} shifted forward in time by a - * specified delay. The {@code onError} notification from the source {@code Publisher} is not delayed. + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} shifted forward in time by a + * specified delay. The {@code onError} notification from the current {@code Flowable} is not delayed. *

* *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -8776,7 +8776,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, boolean delay * the time unit of {@code delay} * @param scheduler * the {@code Scheduler} to use for delaying - * @return the source {@code Publisher} shifted in time by the specified delay + * @return the current {@code Flowable} shifted in time by the specified delay * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @@ -8789,13 +8789,13 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} shifted forward in time by a + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} shifted forward in time by a * specified delay. If {@code delayError} is {@code true}, error notifications will also be delayed. *

* *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -8809,7 +8809,7 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche * @param delayError * if {@code true}, the upstream exception is signaled with the given delay, after all preceding normal elements, * if {@code false}, the upstream exception is signaled immediately - * @return the source {@code Publisher} shifted in time by the specified delay + * @return the current {@code Flowable} shifted in time by the specified delay * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay */ @@ -8825,16 +8825,16 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche } /** - * Returns a {@code Flowable} that delays the subscription to and emissions from the source {@link Publisher} via another - * {@code Publisher} on a per-item basis. + * Returns a {@code Flowable} that delays the subscription to and emissions from the current {@code Flowable} via another + * {@link Publisher} on a per-item basis. *

* *

- * Note: the resulting {@code Publisher} will immediately propagate any {@code onError} notification - * from the source {@code Publisher}. + * Note: the resulting {@code Flowable} will immediately propagate any {@code onError} notification + * from the current {@code Flowable}. *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}. + *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}. * All of the other {@code Publisher}s supplied by the functions are consumed * in an unbounded manner (i.e., no backpressure applied to them).
*
Scheduler:
@@ -8846,13 +8846,13 @@ public final Flowable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche * @param * the item delay value type (ignored) * @param subscriptionIndicator - * a function that returns a {@code Publisher} that triggers the subscription to the source {@code Publisher} + * a function that returns a {@code Publisher} that triggers the subscription to the current {@code Flowable} * once it emits any item * @param itemDelayIndicator - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher}, which is - * then used to delay the emission of that item by the resulting {@code Publisher} until the {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable}, which is + * then used to delay the emission of that item by the resulting {@code Flowable} until the {@code Publisher} * returned from {@code itemDelay} emits an item - * @return a {@code Flowable} that delays the subscription and emissions of the source {@code Publisher} via another + * @return a {@code Flowable} that delays the subscription and emissions of the current {@code Flowable} via another * {@code Publisher} on a per-item basis * @see ReactiveX operators documentation: Delay */ @@ -8894,12 +8894,12 @@ public final Flowable delaySubscription(@NonNull Publisher subscriptio } /** - * Returns a {@code Flowable} that delays the subscription to the source {@link Publisher} by a given amount of time. + * Returns a {@code Flowable} that delays the subscription to the current {@code Flowable} by a given amount of time. *

* *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
This version of {@code delaySubscription} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -8908,7 +8908,7 @@ public final Flowable delaySubscription(@NonNull Publisher subscriptio * the time to delay the subscription * @param unit * the time unit of {@code delay} - * @return a {@code Flowable} that delays the subscription to the source {@code Publisher} by the given amount + * @return a {@code Flowable} that delays the subscription to the current {@code Flowable} by the given amount * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Delay */ @@ -8921,13 +8921,13 @@ public final Flowable delaySubscription(long delay, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that delays the subscription to the source {@link Publisher} by a given amount of time, + * Returns a {@code Flowable} that delays the subscription to the current {@code Flowable} by a given amount of time, * both waiting and subscribing on a given {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with the backpressure behavior which is determined by the source {@code Publisher}.
+ *
The operator doesn't interfere with the backpressure behavior which is determined by the current {@code Flowable}.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
*
@@ -8938,7 +8938,7 @@ public final Flowable delaySubscription(long delay, @NonNull TimeUnit unit) { * the time unit of {@code delay} * @param scheduler * the {@code Scheduler} on which the waiting and subscription will happen - * @return a {@code Flowable} that delays the subscription to the source {@code Publisher} by a given + * @return a {@code Flowable} that delays the subscription to the current {@code Flowable} by a given * amount, waiting and subscribing on the given {@code Scheduler} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Delay @@ -8986,7 +8986,7 @@ public final Flowable delaySubscription(long delay, @NonNull TimeUnit unit, @ * with a {@link #never()} source. *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code dematerialize} does not operate by default on a particular {@link Scheduler}.
@@ -9012,7 +9012,7 @@ public final Flowable dematerialize(@NonNull Function<@NonNull ? super T, } /** - * Returns a {@code Flowable} that emits all items emitted by the source {@link Publisher} that are distinct + * Returns a {@code Flowable} that emits all items emitted by the current {@code Flowable} that are distinct * based on {@link Object#equals(Object)} comparison. *

* @@ -9032,13 +9032,13 @@ public final Flowable dematerialize(@NonNull Function<@NonNull ? super T, * to the {@link #distinct(Function, Supplier)} overload. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinct} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Flowable} that emits only those items emitted by the source {@code Publisher} that are distinct from + * @return a {@code Flowable} that emits only those items emitted by the current {@code Flowable} that are distinct from * each other * @see ReactiveX operators documentation: Distinct * @see #distinct(Function) @@ -9054,7 +9054,7 @@ public final Flowable distinct() { } /** - * Returns a {@code Flowable} that emits all items emitted by the source {@link Publisher} that are distinct according + * Returns a {@code Flowable} that emits all items emitted by the current {@code Flowable} that are distinct according * to a key selector function and based on {@link Object#equals(Object)} comparison of the objects * returned by the key selector function. *

@@ -9075,7 +9075,7 @@ public final Flowable distinct() { * to the {@link #distinct(Function, Supplier)} overload. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinct} does not operate by default on a particular {@link Scheduler}.
@@ -9085,7 +9085,7 @@ public final Flowable distinct() { * @param keySelector * a function that projects an emitted item to a key value that is used to decide whether an item * is distinct from another one or not - * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} that have distinct keys + * @return a {@code Flowable} that emits those items emitted by the current {@code Flowable} that have distinct keys * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: Distinct * @see #distinct(Function, Supplier) @@ -9099,7 +9099,7 @@ public final Flowable distinct(@NonNull Function keySelecto } /** - * Returns a {@code Flowable} that emits all items emitted by the source {@link Publisher} that are distinct according + * Returns a {@code Flowable} that emits all items emitted by the current {@code Flowable} that are distinct according * to a key selector function and based on {@link Object#equals(Object)} comparison of the objects * returned by the key selector function. *

@@ -9109,7 +9109,7 @@ public final Flowable distinct(@NonNull Function keySelecto * a meaningful comparison between the key objects as the default Java implementation only considers reference equivalence. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinct} does not operate by default on a particular {@link Scheduler}.
@@ -9122,7 +9122,7 @@ public final Flowable distinct(@NonNull Function keySelecto * @param collectionSupplier * function called for each individual {@link Subscriber} to return a {@link Collection} subtype for holding the extracted * keys and whose add() method's return indicates uniqueness. - * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} that have distinct keys + * @return a {@code Flowable} that emits those items emitted by the current {@code Flowable} that have distinct keys * @throws NullPointerException if {@code keySelector} or {@code collectionSupplier} is {@code null} * @see ReactiveX operators documentation: Distinct */ @@ -9138,7 +9138,7 @@ public final Flowable distinct(@NonNull Function keySelecto } /** - * Returns a {@code Flowable} that emits all items emitted by the source {@link Publisher} that are distinct from their + * Returns a {@code Flowable} that emits all items emitted by the current {@code Flowable} that are distinct from their * immediate predecessors based on {@link Object#equals(Object)} comparison. *

* @@ -9160,13 +9160,13 @@ public final Flowable distinct(@NonNull Function keySelecto * for example using {@code map(CharSequence::toString)} or {@code map(list -> Collections.unmodifiableList(new ArrayList<>(list)))}. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinctUntilChanged} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Flowable} that emits those items from the source {@code Publisher} that are distinct from their + * @return a {@code Flowable} that emits those items from the current {@code Flowable} that are distinct from their * immediate predecessors * @see ReactiveX operators documentation: Distinct * @see #distinctUntilChanged(BiPredicate) @@ -9180,7 +9180,7 @@ public final Flowable distinctUntilChanged() { } /** - * Returns a {@code Flowable} that emits all items emitted by the source {@link Publisher} that are distinct from their + * Returns a {@code Flowable} that emits all items emitted by the current {@code Flowable} that are distinct from their * immediate predecessors, according to a key selector function and based on {@link Object#equals(Object)} comparison * of those objects returned by the key selector function. *

@@ -9204,7 +9204,7 @@ public final Flowable distinctUntilChanged() { * for example using {@code map(CharSequence::toString)} or {@code map(list -> Collections.unmodifiableList(new ArrayList<>(list)))}. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinctUntilChanged} does not operate by default on a particular {@link Scheduler}.
@@ -9214,7 +9214,7 @@ public final Flowable distinctUntilChanged() { * @param keySelector * a function that projects an emitted item to a key value that is used to decide whether an item * is distinct from another one or not - * @return a {@code Flowable} that emits those items from the source {@code Publisher} whose keys are distinct from + * @return a {@code Flowable} that emits those items from the current {@code Flowable} whose keys are distinct from * those of their immediate predecessors * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: Distinct @@ -9229,7 +9229,7 @@ public final Flowable distinctUntilChanged(@NonNull Function * @@ -9245,7 +9245,7 @@ public final Flowable distinctUntilChanged(@NonNull Function Collections.unmodifiableList(new ArrayList<>(list)))}. *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code distinctUntilChanged} does not operate by default on a particular {@link Scheduler}.
@@ -9253,7 +9253,7 @@ public final Flowable distinctUntilChanged(@NonNull FunctionReactiveX operators documentation: Distinct @@ -9277,7 +9277,7 @@ public final Flowable distinctUntilChanged(@NonNull BiPredicate *
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code doFinally} does not operate by default on a particular {@link Scheduler}.
@@ -9306,7 +9306,7 @@ public final Flowable doFinally(@NonNull Action onFinally) { * should be thread-safe. *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code doAfterNext} does not operate by default on a particular {@link Scheduler}.
@@ -9336,15 +9336,15 @@ public final Flowable doAfterNext(@NonNull Consumer onAfterNext) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code doAfterTerminate} does not operate by default on a particular {@link Scheduler}.
*
* * @param onAfterTerminate - * an {@code Action} to be invoked when the source {@code Publisher} finishes - * @return a {@code Flowable} that emits the same items as the source {@code Publisher}, then invokes the + * an {@code Action} to be invoked when the current {@code Flowable} finishes + * @return a {@code Flowable} that emits the same items as the current {@code Flowable}, then invokes the * {@code Action} * @throws NullPointerException if {@code onAfterTerminate} is {@code null} * @see ReactiveX operators documentation: Do @@ -9378,8 +9378,8 @@ public final Flowable doAfterTerminate(@NonNull Action onAfterTerminate) { *
* * @param onCancel - * the action that gets called when the source {@link Publisher}'s {@link Subscription} is canceled - * @return the source {@code Publisher} modified so as to call this {@code Action} when appropriate + * the action that gets called when the current {@code Flowable}'s {@link Subscription} is canceled + * @return the current {@code Flowable} modified so as to call this {@code Action} when appropriate * @throws NullPointerException if {@code onCancel} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9392,20 +9392,20 @@ public final Flowable doOnCancel(@NonNull Action onCancel) { } /** - * Modifies the source {@link Publisher} so that it invokes an action when it calls {@code onComplete}. + * Modifies the current {@code Flowable} so that it invokes an action when it calls {@code onComplete}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnComplete} does not operate by default on a particular {@link Scheduler}.
*
* * @param onComplete - * the action to invoke when the source {@code Publisher} calls {@code onComplete} - * @return the source {@code Publisher} with the side-effecting behavior applied + * the action to invoke when the current {@code Flowable} calls {@code onComplete} + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onComplete} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9425,13 +9425,13 @@ public final Flowable doOnComplete(@NonNull Action onComplete) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnEach} does not operate by default on a particular {@link Scheduler}.
*
* - * @return the source {@code Publisher} with the side-effecting behavior applied + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onNext}, {@code onError}, {@code onComplete} or {@code onAfterTerminate} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9449,20 +9449,20 @@ private Flowable doOnEach(@NonNull Consumer onNext, @NonNull Consu } /** - * Modifies the source {@link Publisher} so that it invokes an action for each item it emits. + * Modifies the current {@code Flowable} so that it invokes an action for each item it emits. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnEach} does not operate by default on a particular {@link Scheduler}.
*
* * @param onNotification - * the action to invoke for each item emitted by the source {@code Publisher} - * @return the source {@code Publisher} with the side-effecting behavior applied + * the action to invoke for each item emitted by the current {@code Flowable} + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onNotification} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9481,7 +9481,7 @@ public final Flowable doOnEach(@NonNull Consumer<@NonNull ? super Notificatio } /** - * Modifies the source {@link Publisher} so that it notifies a {@link Subscriber} for each item and terminal event it emits. + * Modifies the current {@code Flowable} so that it notifies a {@link Subscriber} for each item and terminal event it emits. *

* In case the {@code onError} of the supplied {@code Subscriber} throws, the downstream will receive a composite * exception containing the original exception and the exception thrown by {@code onError}. If either the @@ -9491,7 +9491,7 @@ public final Flowable doOnEach(@NonNull Consumer<@NonNull ? super Notificatio * *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnEach} does not operate by default on a particular {@link Scheduler}.
@@ -9500,7 +9500,7 @@ public final Flowable doOnEach(@NonNull Consumer<@NonNull ? super Notificatio * @param subscriber * the {@code Subscriber} to be notified about {@code onNext}, {@code onError} and {@code onComplete} events on its * respective methods before the actual downstream {@code Subscriber} gets notified. - * @return the source {@code Publisher} with the side-effecting behavior applied + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code subscriber} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9518,7 +9518,7 @@ public final Flowable doOnEach(@NonNull Subscriber subscriber) { } /** - * Modifies the source {@link Publisher} so that it invokes an action if it calls {@code onError}. + * Modifies the current {@code Flowable} so that it invokes an action if it calls {@code onError}. *

* In case the {@code onError} action throws, the downstream will receive a composite exception containing * the original exception and the exception thrown by {@code onError}. @@ -9526,15 +9526,15 @@ public final Flowable doOnEach(@NonNull Subscriber subscriber) { * *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnError} does not operate by default on a particular {@link Scheduler}.
*
* * @param onError - * the action to invoke if the source {@code Publisher} calls {@code onError} - * @return the source {@code Publisher} with the side-effecting behavior applied + * the action to invoke if the current {@code Flowable} calls {@code onError} + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onError} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9554,7 +9554,7 @@ public final Flowable doOnError(@NonNull Consumer onError) * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnLifecycle} does not operate by default on a particular {@link Scheduler}.
@@ -9566,7 +9566,7 @@ public final Flowable doOnError(@NonNull Consumer onError) * a {@link LongConsumer} called with the request amount sent via {@link Subscription#request(long)} * @param onCancel * called when the downstream cancels the {@code Subscription} via {@link Subscription#cancel()} - * @return the source {@code Publisher} with the side-effecting behavior applied + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onSubscribe}, {@code onRequest} or {@code onCancel} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9583,20 +9583,20 @@ public final Flowable doOnLifecycle(@NonNull Consumer o } /** - * Modifies the source {@link Publisher} so that it invokes an action when it calls {@code onNext}. + * Modifies the current {@code Flowable} so that it invokes an action when it calls {@code onNext}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnNext} does not operate by default on a particular {@link Scheduler}.
*
* * @param onNext - * the action to invoke when the source {@code Publisher} calls {@code onNext} - * @return the source {@code Publisher} with the side-effecting behavior applied + * the action to invoke when the current {@code Flowable} calls {@code onNext} + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onNext} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9610,23 +9610,23 @@ public final Flowable doOnNext(@NonNull Consumer onNext) { } /** - * Modifies the source {@link Publisher} so that it invokes the given action when it receives a + * Modifies the current {@code Flowable} so that it invokes the given action when it receives a * request for more items. *

* Note: This operator is for tracing the internal behavior of back-pressure request * patterns and generally intended for debugging use. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnRequest} does not operate by default on a particular {@link Scheduler}.
*
* * @param onRequest - * the action that gets called when a {@link Subscriber} requests items from this - * {@code Publisher} - * @return the source {@code Publisher} modified so as to call this {@link Action} when appropriate + * the action that gets called when a {@link Subscriber} requests items from the current + * {@code Flowable} + * @return the current {@code Flowable} modified so as to call this {@link Action} when appropriate * @throws NullPointerException if {@code onRequest} is {@code null} * @see ReactiveX operators * documentation: Do @@ -9641,15 +9641,15 @@ public final Flowable doOnRequest(@NonNull LongConsumer onRequest) { } /** - * Modifies the source {@link Publisher} so that it invokes the given action when it is subscribed from + * Modifies the current {@code Flowable} so that it invokes the given action when it is subscribed from * its subscribers. Each subscription will result in an invocation of the given action except when the - * source {@code Publisher} is reference counted, in which case the source {@code Publisher} will invoke + * current {@code Flowable} is reference counted, in which case the current {@code Flowable} will invoke * the given action for the first subscription. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnSubscribe} does not operate by default on a particular {@link Scheduler}.
@@ -9657,7 +9657,7 @@ public final Flowable doOnRequest(@NonNull LongConsumer onRequest) { * * @param onSubscribe * the {@link Consumer} that gets called when a {@link Subscriber} subscribes to the current {@code Flowable} - * @return the source {@code Publisher} modified so as to call this {@code Consumer} when appropriate + * @return the current {@code Flowable} modified so as to call this {@code Consumer} when appropriate * @throws NullPointerException if {@code onSubscribe} is {@code null} * @see ReactiveX operators documentation: Do */ @@ -9670,7 +9670,7 @@ public final Flowable doOnSubscribe(@NonNull Consumer o } /** - * Modifies the source {@link Publisher} so that it invokes an action when it calls {@code onComplete} or + * Modifies the current {@code Flowable} so that it invokes an action when it calls {@code onComplete} or * {@code onError}. *

* @@ -9679,15 +9679,15 @@ public final Flowable doOnSubscribe(@NonNull Consumer o * {@code onError} notification. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s * backpressure behavior.
*
Scheduler:
*
{@code doOnTerminate} does not operate by default on a particular {@link Scheduler}.
*
* * @param onTerminate - * the action to invoke when the source {@code Publisher} calls {@code onComplete} or {@code onError} - * @return the source {@code Publisher} with the side-effecting behavior applied + * the action to invoke when the current {@code Flowable} calls {@code onComplete} or {@code onError} + * @return the current {@code Flowable} with the side-effecting behavior applied * @throws NullPointerException if {@code onTerminate} is {@code null} * @see ReactiveX operators documentation: Do * @see #doAfterTerminate(Action) @@ -9708,7 +9708,7 @@ public final Flowable doOnTerminate(@NonNull Action onTerminate) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code elementAt} does not operate by default on a particular {@link Scheduler}.
*
@@ -9716,7 +9716,7 @@ public final Flowable doOnTerminate(@NonNull Action onTerminate) { * @param index * the zero-based index of the item to retrieve * @return a {@code Maybe} that emits a single item: the item at the specified position in the sequence of - * those emitted by the source {@code Publisher} + * those emitted by the current {@code Flowable} * @throws IndexOutOfBoundsException if {@code index} is negative * @see ReactiveX operators documentation: ElementAt */ @@ -9738,7 +9738,7 @@ public final Maybe elementAt(long index) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code elementAt} does not operate by default on a particular {@link Scheduler}.
*
@@ -9747,8 +9747,8 @@ public final Maybe elementAt(long index) { * the zero-based index of the item to retrieve * @param defaultItem * the default item - * @return a {@code Single} that emits the item at the specified position in the sequence emitted by the source - * {@code Publisher}, or the default item if that index is outside the bounds of the source sequence + * @return a {@code Single} that emits the item at the specified position in the sequence emitted by the current + * {@code Flowable}, or the default item if that index is outside the bounds of the source sequence * @throws NullPointerException if {@code defaultItem} is {@code null} * @throws IndexOutOfBoundsException * if {@code index} is negative @@ -9773,15 +9773,15 @@ public final Single elementAt(long index, @NonNull T defaultItem) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code elementAtOrError} does not operate by default on a particular {@link Scheduler}.
*
* * @param index * the zero-based index of the item to retrieve - * @return a {@code Single} that emits the item at the specified position in the sequence emitted by the source - * {@code Publisher}, or the default item if that index is outside the bounds of the source sequence + * @return a {@code Single} that emits the item at the specified position in the sequence emitted by the current + * {@code Flowable}, or the default item if that index is outside the bounds of the source sequence * @throws IndexOutOfBoundsException * if {@code index} is less than 0 * @see ReactiveX operators documentation: ElementAt @@ -9803,16 +9803,16 @@ public final Single elementAtOrError(long index) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code filter} does not operate by default on a particular {@link Scheduler}.
*
* * @param predicate - * a function that evaluates each item emitted by the source {@code Publisher}, returning {@code true} + * a function that evaluates each item emitted by the current {@code Flowable}, returning {@code true} * if it passes the filter - * @return a {@code Flowable} that emits only those items emitted by the source {@code Publisher} that the filter + * @return a {@code Flowable} that emits only those items emitted by the current {@code Flowable} that the filter * evaluates as {@code true} * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: Filter @@ -9833,7 +9833,7 @@ public final Flowable filter(@NonNull Predicate predicate) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code firstElement} does not operate by default on a particular {@link Scheduler}.
*
@@ -9856,15 +9856,15 @@ public final Maybe firstElement() { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code first} does not operate by default on a particular {@link Scheduler}.
*
* * @param defaultItem - * the default item to emit if the source {@code Publisher} doesn't emit anything + * the default item to emit if the current {@code Flowable} doesn't emit anything * @return a {@code Single} that emits only the very first item from the source, or a default item if the - * source {@code Publisher} completes without emitting any items + * current {@code Flowable} completes without emitting any items * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: First */ @@ -9883,7 +9883,7 @@ public final Single first(@NonNull T defaultItem) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in a bounded manner.
+ *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in a bounded manner.
*
Scheduler:
*
{@code firstOrError} does not operate by default on a particular {@link Scheduler}.
*
@@ -9901,7 +9901,7 @@ public final Single firstOrError() { /** * Returns a {@code Flowable} that emits items based on applying a function that you supply to each item emitted - * by the source {@link Publisher}, where that function returns a {@code Publisher}, and then merging those resulting + * by the current {@code Flowable}, where that function returns a {@link Publisher}, and then merging those resulting * {@code Publisher}s and emitting the results of this merger. *

* @@ -9917,10 +9917,10 @@ public final Single firstOrError() { * * @param the value type of the inner {@code Publisher}s and the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and merging the results of the {@code Publisher}s obtained from this + * by the current {@code Flowable} and merging the results of the {@code Publisher}s obtained from this * transformation * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap @@ -9935,7 +9935,7 @@ public final Flowable flatMap(@NonNull Function * @@ -9951,13 +9951,13 @@ public final Flowable flatMap(@NonNull Function the value type of the inner {@code Publisher}s and the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param delayErrors * if {@code true}, exceptions from the current {@code Flowable} and all inner {@code Publisher}s are delayed until all of them terminate * if {@code false}, the first one signaling an exception will terminate the whole sequence immediately * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and merging the results of the {@code Publisher}s obtained from this + * by the current {@code Flowable} and merging the results of the {@code Publisher}s obtained from this * transformation * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap @@ -9972,7 +9972,7 @@ public final Flowable flatMap(@NonNull Function --> @@ -9989,12 +9989,12 @@ public final Flowable flatMap(@NonNull Function the value type of the inner {@code Publisher}s and the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @return a {@code Flowable} that emits the result of applying the transformation function to each item emitted - * by the source {@code Publisher} and merging the results of the {@code Publisher}s obtained from this + * by the current {@code Flowable} and merging the results of the {@code Publisher}s obtained from this * transformation * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive @@ -10011,7 +10011,7 @@ public final Flowable flatMap(@NonNull Function --> @@ -10028,7 +10028,7 @@ public final Flowable flatMap(@NonNull Function the value type of the inner {@code Publisher}s and the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently @@ -10036,7 +10036,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap @@ -10052,7 +10052,7 @@ public final Flowable flatMap(@NonNull Function --> @@ -10069,7 +10069,7 @@ public final Flowable flatMap(@NonNull Function the value type of the inner {@code Publisher}s and the output type * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently @@ -10079,7 +10079,7 @@ public final Flowable flatMap(@NonNull Function Flowable flatMap(@NonNull Function * *

@@ -10124,15 +10124,15 @@ public final Flowable flatMap(@NonNull Function * the result type * @param onNextMapper - * a function that returns a {@code Publisher} to merge for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} to merge for each item emitted by the current {@code Flowable} * @param onErrorMapper - * a function that returns a {@code Publisher} to merge for an {@code onError} notification from the source - * {@code Publisher} + * a function that returns a {@code Publisher} to merge for an {@code onError} notification from the current + * {@code Flowable} * @param onCompleteSupplier - * a function that returns a {@code Publisher} to merge for an {@code onComplete} notification from the source - * {@code Publisher} + * a function that returns a {@code Publisher} to merge for an {@code onComplete} notification from the current + * {@code Flowable} * @return a {@code Flowable} that emits the results of merging the {@code Publisher}s returned from applying the - * specified functions to the emissions and notifications of the source {@code Publisher} + * specified functions to the emissions and notifications of the current {@code Flowable} * @throws NullPointerException if {@code onNextMapper}, {@code onErrorMapper} or {@code onCompleteSupplier} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @@ -10151,8 +10151,8 @@ public final Flowable flatMap( } /** - * Returns a {@code Flowable} that applies a function to each item emitted or notification raised by the source - * {@link Publisher} and then flattens the {@code Publisher}s returned from these functions and emits the resulting items, + * Returns a {@code Flowable} that applies a function to each item emitted or notification raised by the current + * {@code Flowable} and then flattens the {@link Publisher}s returned from these functions and emits the resulting items, * while limiting the maximum number of concurrent subscriptions to these {@code Publisher}s. * * @@ -10169,17 +10169,17 @@ public final Flowable flatMap( * @param * the result type * @param onNextMapper - * a function that returns a {@code Publisher} to merge for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} to merge for each item emitted by the current {@code Flowable} * @param onErrorMapper - * a function that returns a {@code Publisher} to merge for an {@code onError} notification from the source - * {@code Publisher} + * a function that returns a {@code Publisher} to merge for an {@code onError} notification from the current + * {@code Flowable} * @param onCompleteSupplier - * a function that returns a {@code Publisher} to merge for an {@code onComplete} notification from the source - * {@code Publisher} + * a function that returns a {@code Publisher} to merge for an {@code onComplete} notification from the current + * {@code Flowable} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @return a {@code Flowable} that emits the results of merging the {@code Publisher}s returned from applying the - * specified functions to the emissions and notifications of the source {@code Publisher} + * specified functions to the emissions and notifications of the current {@code Flowable} * @throws NullPointerException if {@code onNextMapper}, {@code onErrorMapper} or {@code onCompleteSupplier} is {@code null} * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -10203,7 +10203,7 @@ public final Flowable flatMap( /** * Returns a {@code Flowable} that emits the results of a specified function to the pair of values emitted by the - * source {@link Publisher} and a specified collection {@code Publisher}. + * current {@code Flowable} and a specified collection {@link Publisher}. *

* *

@@ -10221,12 +10221,12 @@ public final Flowable flatMap( * @param * the type of items emitted by the combiner function * @param mapper - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} * @param combiner * a function that combines one item emitted by each of the source and collection {@code Publisher}s and - * returns an item to be emitted by the resulting {@code Publisher} + * returns an item to be emitted by the resulting {@code Flowable} * @return a {@code Flowable} that emits the results of applying a function to a pair of values emitted by the - * source {@code Publisher} and the collection {@code Publisher} + * current {@code Flowable} and the collection {@code Publisher} * @throws NullPointerException if {@code mapper} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @@ -10241,7 +10241,7 @@ public final Flowable flatMap(@NonNull Function * *
@@ -10259,15 +10259,15 @@ public final Flowable flatMap(@NonNull Function * the type of items emitted by the combiner functions * @param mapper - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} * @param combiner * a function that combines one item emitted by each of the source and collection {@code Publisher}s and - * returns an item to be emitted by the resulting {@code Publisher} + * returns an item to be emitted by the resulting {@code Flowable} * @param delayErrors * if {@code true}, exceptions from the current {@code Flowable} and all inner {@code Publisher}s are delayed until all of them terminate * if {@code false}, the first one signaling an exception will terminate the whole sequence immediately * @return a {@code Flowable} that emits the results of applying a function to a pair of values emitted by the - * source {@code Publisher} and the collection {@code Publisher} + * current {@code Flowable} and the collection {@code Publisher} * @throws NullPointerException if {@code mapper} or {@code combiner} is {@code null} * @see ReactiveX operators documentation: FlatMap */ @@ -10282,7 +10282,7 @@ public final Flowable flatMap(@NonNull Function --> * @@ -10301,17 +10301,17 @@ public final Flowable flatMap(@NonNull Function * the type of items emitted by the combiner function * @param mapper - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} * @param combiner * a function that combines one item emitted by each of the source and collection {@code Publisher}s and - * returns an item to be emitted by the resulting {@code Publisher} + * returns an item to be emitted by the resulting {@code Flowable} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @param delayErrors * if {@code true}, exceptions from the current {@code Flowable} and all inner {@code Publisher}s are delayed until all of them terminate * if {@code false}, the first one signaling an exception will terminate the whole sequence immediately * @return a {@code Flowable} that emits the results of applying a function to a pair of values emitted by the - * source {@code Publisher} and the collection {@code Publisher} + * current {@code Flowable} and the collection {@code Publisher} * @throws NullPointerException if {@code mapper} or {@code combiner} is {@code null} * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -10328,7 +10328,7 @@ public final Flowable flatMap(@NonNull Function --> * @@ -10347,10 +10347,10 @@ public final Flowable flatMap(@NonNull Function * the type of items emitted by the combiner function * @param mapper - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} * @param combiner * a function that combines one item emitted by each of the source and collection {@code Publisher}s and - * returns an item to be emitted by the resulting {@code Publisher} + * returns an item to be emitted by the resulting {@code Flowable} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @param delayErrors @@ -10359,7 +10359,7 @@ public final Flowable flatMap(@NonNull FunctionReactiveX operators documentation: FlatMap @@ -10380,7 +10380,7 @@ public final Flowable flatMap(@NonNull Function --> * @@ -10399,14 +10399,14 @@ public final Flowable flatMap(@NonNull Function * the type of items emitted by the combiner function * @param mapper - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} * @param combiner * a function that combines one item emitted by each of the source and collection {@code Publisher}s and - * returns an item to be emitted by the resulting {@code Publisher} + * returns an item to be emitted by the resulting {@code Flowable} * @param maxConcurrency * the maximum number of {@code Publisher}s that may be subscribed to concurrently * @return a {@code Flowable} that emits the results of applying a function to a pair of values emitted by the - * source {@code Publisher} and the collection {@code Publisher} + * current {@code Flowable} and the collection {@code Publisher} * @throws NullPointerException if {@code mapper} or {@code combiner} is {@code null} * @throws IllegalArgumentException if {@code maxConcurrency} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -10731,12 +10731,12 @@ public final Flowable flatMapSingle(@NonNull Function * Alias to {@link #subscribe(Consumer)} *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code forEach} does not operate by default on a particular {@link Scheduler}.
@@ -10759,7 +10759,7 @@ public final Disposable forEach(@NonNull Consumer onNext) { } /** - * Subscribes to the {@link Publisher} and receives notifications for each element until the + * Subscribes to the current {@code Flowable} and receives notifications for each element until the * {@code onNext} Predicate returns {@code false}. *

* If the {@code Flowable} emits an error, it is wrapped into an @@ -10767,7 +10767,7 @@ public final Disposable forEach(@NonNull Consumer onNext) { * and routed to the {@link RxJavaPlugins#onError(Throwable)} handler. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code forEachWhile} does not operate by default on a particular {@link Scheduler}.
@@ -10790,11 +10790,11 @@ public final Disposable forEachWhile(@NonNull Predicate onNext) { } /** - * Subscribes to the {@link Publisher} and receives notifications for each element and error events until the + * Subscribes to the current {@code Flowable} and receives notifications for each element and error events until the * {@code onNext} Predicate returns {@code false}. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code forEachWhile} does not operate by default on a particular {@link Scheduler}.
@@ -10819,11 +10819,11 @@ public final Disposable forEachWhile(@NonNull Predicate onNext, @NonN } /** - * Subscribes to the {@link Publisher} and receives notifications for each element and the terminal events until the + * Subscribes to the current {@code Flowable} and receives notifications for each element and the terminal events until the * {@code onNext} Predicate returns {@code false}. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code forEachWhile} does not operate by default on a particular {@link Scheduler}.
@@ -10857,7 +10857,7 @@ public final Disposable forEachWhile(@NonNull Predicate onNext, @NonN } /** - * Groups the items emitted by a {@link Publisher} according to a specified criterion, and emits these + * Groups the items emitted by the current {@code Flowable} according to a specified criterion, and emits these * grouped items as {@link GroupedFlowable}s. The emitted {@code GroupedFlowable} allows only a single * {@link Subscriber} during its lifetime and if this {@code Subscriber} cancels before the * source terminates, the next emission by the source having the same key will trigger a new @@ -10900,8 +10900,8 @@ public final Disposable forEachWhile(@NonNull Predicate onNext, @NonN * a function that extracts the key for each item * @param * the key type - * @return a {@code Publisher} that emits {@code GroupedFlowable}s, each of which corresponds to a - * unique key value and each of which emits those items from the source {@code Publisher} that share that + * @return a {@code Flowable} that emits {@code GroupedFlowable}s, each of which corresponds to a + * unique key value and each of which emits those items from the current {@code Flowable} that share that * key value * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: GroupBy @@ -10963,8 +10963,8 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy @@ -11025,8 +11025,8 @@ public final Flowable> groupBy(@NonNull Function * the element type - * @return a {@code Publisher} that emits {@code GroupedFlowable}s, each of which corresponds to a - * unique key value and each of which emits those items from the source {@code Publisher} that share that + * @return a {@code Flowable} that emits {@code GroupedFlowable}s, each of which corresponds to a + * unique key value and each of which emits those items from the current {@code Flowable} that share that * key value * @throws NullPointerException if {@code keySelector} or {@code valueSelector} is {@code null} * @see ReactiveX operators documentation: GroupBy @@ -11094,8 +11094,8 @@ public final Flowable> groupBy(@NonNull FunctionReactiveX operators documentation: GroupBy @@ -11163,8 +11163,8 @@ public final Flowable> groupBy(@NonNull Function * the element type - * @return a {@code Publisher} that emits {@code GroupedFlowable}s, each of which corresponds to a - * unique key value and each of which emits those items from the source {@code Publisher} that share that + * @return a {@code Flowable} that emits {@code GroupedFlowable}s, each of which corresponds to a + * unique key value and each of which emits those items from the current {@code Flowable} that share that * key value * @throws NullPointerException if {@code keySelector} or {@code valueSelector} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -11284,8 +11284,8 @@ public final Flowable> groupBy(@NonNull Function * the element type - * @return a {@code Publisher} that emits {@code GroupedFlowable}s, each of which corresponds to a - * unique key value and each of which emits those items from the source {@code Publisher} that share that + * @return a {@code Flowable} that emits {@code GroupedFlowable}s, each of which corresponds to a + * unique key value and each of which emits those items from the current {@code Flowable} that share that * key value * @throws NullPointerException if {@code keySelector}, {@code valueSelector} or {@code evictingMapFactory} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -11329,17 +11329,17 @@ public final Flowable> groupBy(@NonNull Function the element type of the right duration {@code Publisher}s * @param the result type * @param other - * the other {@code Publisher} to correlate items from the source {@code Publisher} with + * the other {@code Publisher} to correlate items from the current {@code Flowable} with * @param leftEnd * a function that returns a {@code Publisher} whose emissions indicate the duration of the values of - * the source {@code Publisher} + * the current {@code Flowable} * @param rightEnd * a function that returns a {@code Publisher} whose emissions indicate the duration of the values of * the {@code right} {@code Publisher} * @param resultSelector * a function that takes an item emitted by each {@code Publisher} and returns the value to be emitted - * by the resulting {@code Publisher} - * @return a {@code Flowable} that emits items based on combining those items emitted by the source {@code Publisher}s + * by the resulting {@code Flowable} + * @return a {@code Flowable} that emits items based on combining those items emitted by the current {@code Flowable}s * whose durations overlap * @throws NullPointerException if {@code other}, {@code leftEnd}, {@code rightEnd} or {@code resultSelector} is {@code null} * @see ReactiveX operators documentation: Join @@ -11386,19 +11386,19 @@ public final Flowable hide() { } /** - * Ignores all items emitted by the source {@link Publisher} and only calls {@code onComplete} or {@code onError}. + * Ignores all items emitted by the current {@code Flowable} and only calls {@code onComplete} or {@code onError}. *

* *

*
Backpressure:
- *
This operator ignores backpressure as it doesn't emit any elements and consumes the source {@code Publisher} + *
This operator ignores backpressure as it doesn't emit any elements and consumes the current {@code Flowable} * in an unbounded manner (i.e., no backpressure is applied to it).
*
Scheduler:
*
{@code ignoreElements} does not operate by default on a particular {@link Scheduler}.
*
* * @return a {@link Completable} that only calls {@code onComplete} or {@code onError}, based on which one is - * called by the source {@code Publisher} + * called by the current {@code Flowable} * @see ReactiveX operators documentation: IgnoreElements */ @CheckReturnValue @@ -11410,7 +11410,7 @@ public final Completable ignoreElements() { } /** - * Returns a {@link Single} that emits {@code true} if the source {@link Publisher} is empty, otherwise {@code false}. + * Returns a {@link Single} that emits {@code true} if the current {@code Flowable} is empty, otherwise {@code false}. *

* In Rx.Net this is negated as the {@code any} {@link Subscriber} but we renamed this in RxJava to better match Java * naming idioms. @@ -11418,7 +11418,7 @@ public final Completable ignoreElements() { * *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code isEmpty} does not operate by default on a particular {@link Scheduler}.
@@ -11457,15 +11457,15 @@ public final Single isEmpty() { * @param other * the second {@code Publisher} to join items from * @param leftEnd - * a function to select a duration for each item emitted by the source {@code Publisher}, used to + * a function to select a duration for each item emitted by the current {@code Flowable}, used to * determine overlap * @param rightEnd * a function to select a duration for each item emitted by the {@code right} {@code Publisher}, used to * determine overlap * @param resultSelector - * a function that computes an item to be emitted by the resulting {@code Publisher} for any two + * a function that computes an item to be emitted by the resulting {@code Flowable} for any two * overlapping items emitted by the two {@code Publisher}s - * @return a {@code Flowable} that emits items correlating to items emitted by the source {@code Publisher}s that have + * @return a {@code Flowable} that emits items correlating to items emitted by the current {@code Flowable}s that have * overlapping durations * @throws NullPointerException if {@code other}, {@code leftEnd}, {@code rightEnd} or {@code resultSelector} is {@code null} * @see ReactiveX operators documentation: Join @@ -11494,7 +11494,7 @@ public final Flowable join( * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code lastElement} does not operate by default on a particular {@link Scheduler}.
@@ -11518,14 +11518,14 @@ public final Maybe lastElement() { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code last} does not operate by default on a particular {@link Scheduler}.
*
* * @param defaultItem - * the default item to emit if the source {@code Publisher} is empty + * the default item to emit if the current {@code Flowable} is empty * @return the new {@code Single} instance * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: Last @@ -11546,7 +11546,7 @@ public final Single last(@NonNull T defaultItem) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code lastOrError} does not operate by default on a particular {@link Scheduler}.
@@ -11720,13 +11720,13 @@ public final Flowable lift(@NonNull FlowableOperator * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code map} does not operate by default on a particular {@link Scheduler}.
@@ -11734,8 +11734,8 @@ public final Flowable lift(@NonNull FlowableOperator the output type * @param mapper - * a function to apply to each item emitted by the {@code Publisher} - * @return a {@code Flowable} that emits the items from the source {@code Publisher}, transformed by the specified + * a function to apply to each item emitted by the current {@code Flowable} + * @return a {@code Flowable} that emits the items from the current {@code Flowable}, transformed by the specified * function * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: Map @@ -11751,20 +11751,20 @@ public final Flowable lift(@NonNull FlowableOperatorand notifications from the source - * {@link Publisher} into emissions marked with their original types within {@link Notification} objects. + * Returns a {@code Flowable} that represents all of the emissions and notifications from the current + * {@code Flowable} into emissions marked with their original types within {@link Notification} objects. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and expects it from the source {@code Publisher}. + *
The operator honors backpressure from downstream and expects it from the current {@code Flowable}. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code materialize} does not operate by default on a particular {@link Scheduler}.
*
* * @return a {@code Flowable} that emits items that are the result of materializing the items and notifications - * of the source {@code Publisher} + * of the current {@code Flowable} * @see ReactiveX operators documentation: Materialize * @see #dematerialize(Function) */ @@ -11793,7 +11793,7 @@ public final Flowable> materialize() { * * @param other * a {@code Publisher} to be merged - * @return a {@code Flowable} that emits all of the items emitted by the source {@code Publisher}s + * @return a {@code Flowable} that emits all of the items emitted by the current {@code Flowable}s * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: Merge */ @@ -11872,7 +11872,7 @@ public final Flowable mergeWith(@NonNull MaybeSource other) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code mergeWith} does not operate by default on a particular {@link Scheduler}.
@@ -11907,7 +11907,7 @@ public final Flowable mergeWith(@NonNull CompletableSource other) { * If such fairness and signal/work interleaving is preferred, use the delay operator with zero time instead. *
*
Backpressure:
- *
This operator honors backpressure from downstream and expects it from the source {@code Publisher}. Violating this + *
This operator honors backpressure from downstream and expects it from the current {@code Flowable}. Violating this * expectation will lead to {@link MissingBackpressureException}. This is the most common operator where the exception * pops up; look for sources up the chain that don't support backpressure, * such as {@link #interval(long, TimeUnit)}, {@link #timer(long, TimeUnit)}, @@ -11926,7 +11926,7 @@ public final Flowable mergeWith(@NonNull CompletableSource other) { * * @param scheduler * the {@code Scheduler} to notify {@link Subscriber}s on - * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified + * @return the current {@code Flowable} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: ObserveOn @@ -11956,7 +11956,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler) { * If such fairness and signal/work interleaving is preferred, use the delay operator with zero time instead. *
*
Backpressure:
- *
This operator honors backpressure from downstream and expects it from the source {@code Publisher}. Violating this + *
This operator honors backpressure from downstream and expects it from the current {@code Flowable}. Violating this * expectation will lead to {@link MissingBackpressureException}. This is the most common operator where the exception * pops up; look for sources up the chain that don't support backpressure, * such as {@link #interval(long, TimeUnit)}, {@link #timer(long, TimeUnit)}, @@ -11979,7 +11979,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler) { * indicates if the {@code onError} notification may not cut ahead of {@code onNext} notification on the other side of the * scheduling boundary. If {@code true}, a sequence ending in {@code onError} will be replayed in the same order as was received * from upstream - * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified + * @return the current {@code Flowable} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: ObserveOn @@ -12009,7 +12009,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * If such fairness and signal/work interleaving is preferred, use the delay operator with zero time instead. *
*
Backpressure:
- *
This operator honors backpressure from downstream and expects it from the source {@code Publisher}. Violating this + *
This operator honors backpressure from downstream and expects it from the current {@code Flowable}. Violating this * expectation will lead to {@link MissingBackpressureException}. This is the most common operator where the exception * pops up; look for sources up the chain that don't support backpressure, * such as {@link #interval(long, TimeUnit)}, {@link #timer(long, TimeUnit)}, @@ -12033,7 +12033,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * scheduling boundary. If {@code true}, a sequence ending in {@code onError} will be replayed in the same order as was received * from upstream * @param bufferSize the size of the buffer. - * @return the source {@code Publisher} modified so that its {@code Subscriber}s are notified on the specified + * @return the current {@code Flowable} modified so that its {@code Subscriber}s are notified on the specified * {@code Scheduler} * @throws NullPointerException if {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -12060,7 +12060,7 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code ofType} does not operate by default on a particular {@link Scheduler}.
@@ -12068,8 +12068,8 @@ public final Flowable observeOn(@NonNull Scheduler scheduler, boolean delayEr * * @param the output type * @param clazz - * the class type to filter the items emitted by the source {@code Publisher} - * @return a {@code Flowable} that emits items from the source {@code Publisher} of type {@code clazz} + * the class type to filter the items emitted by the current {@code Flowable} + * @return a {@code Flowable} that emits items from the current {@code Flowable} of type {@code clazz} * @throws NullPointerException if {@code clazz} is {@code null} * @see ReactiveX operators documentation: Filter */ @@ -12089,13 +12089,13 @@ public final Flowable ofType(@NonNull Class clazz) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
*
* - * @return the source {@code Publisher} modified to buffer items to the extent system resources allow + * @return the current {@code Flowable} modified to buffer items to the extent system resources allow * @see ReactiveX operators documentation: backpressure operators */ @CheckReturnValue @@ -12113,7 +12113,7 @@ public final Flowable onBackpressureBuffer() { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
@@ -12122,7 +12122,7 @@ public final Flowable onBackpressureBuffer() { * if {@code true}, an exception from the current {@code Flowable} is delayed until all buffered elements have been * consumed by the downstream; if {@code false}, an exception is immediately signaled to the downstream, skipping * any buffered element - * @return the source {@code Publisher} modified to buffer items to the extent system resources allow + * @return the current {@code Flowable} modified to buffer items to the extent system resources allow * @see ReactiveX operators documentation: backpressure operators */ @CheckReturnValue @@ -12135,21 +12135,21 @@ public final Flowable onBackpressureBuffer(boolean delayError) { /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will signal + * a given amount of items until they can be emitted. The resulting {@code Flowable} will signal * a {@code BufferOverflowException} via {@code onError} as soon as the buffer's capacity is exceeded, dropping all undelivered * items, and canceling the source. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
*
* * @param capacity number of slots available in the buffer. - * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @return the current {@code Flowable} modified to buffer items up to the given capacity. * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 @@ -12164,14 +12164,14 @@ public final Flowable onBackpressureBuffer(int capacity) { /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will signal + * a given amount of items until they can be emitted. The resulting {@code Flowable} will signal * a {@code BufferOverflowException} via {@code onError} as soon as the buffer's capacity is exceeded, dropping all undelivered * items, and canceling the source. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
@@ -12182,7 +12182,7 @@ public final Flowable onBackpressureBuffer(int capacity) { * if {@code true}, an exception from the current {@code Flowable} is delayed until all buffered elements have been * consumed by the downstream; if {@code false}, an exception is immediately signaled to the downstream, skipping * any buffered element - * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @return the current {@code Flowable} modified to buffer items up to the given capacity. * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 @@ -12197,14 +12197,14 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError) /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will signal + * a given amount of items until they can be emitted. The resulting {@code Flowable} will signal * a {@code BufferOverflowException} via {@code onError} as soon as the buffer's capacity is exceeded, dropping all undelivered * items, and canceling the source. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
@@ -12217,7 +12217,7 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError) * any buffered element * @param unbounded * if {@code true}, the capacity value is interpreted as the internal "island" size of the unbounded buffer - * @return the source {@code Publisher} modified to buffer items up to the given capacity. + * @return the current {@code Flowable} modified to buffer items up to the given capacity. * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 @@ -12233,14 +12233,14 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will signal + * a given amount of items until they can be emitted. The resulting {@code Flowable} will signal * a {@code BufferOverflowException} via {@code onError} as soon as the buffer's capacity is exceeded, dropping all undelivered * items, canceling the source, and notifying the producer with {@code onOverflow}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
@@ -12254,7 +12254,7 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, * @param unbounded * if {@code true}, the capacity value is interpreted as the internal "island" size of the unbounded buffer * @param onOverflow action to execute if an item needs to be buffered, but there are no available slots. Null is allowed. - * @return the source {@code Publisher} modified to buffer items up to the given capacity + * @return the current {@code Flowable} modified to buffer items up to the given capacity * @throws NullPointerException if {@code onOverflow} is {@code null} * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators @@ -12273,14 +12273,14 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will signal + * a given amount of items until they can be emitted. The resulting {@code Flowable} will signal * a {@code BufferOverflowException} via {@code onError} as soon as the buffer's capacity is exceeded, dropping all undelivered * items, canceling the source, and notifying the producer with {@code onOverflow}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
*
Scheduler:
*
{@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
@@ -12288,7 +12288,7 @@ public final Flowable onBackpressureBuffer(int capacity, boolean delayError, * * @param capacity number of slots available in the buffer. * @param onOverflow action to execute if an item needs to be buffered, but there are no available slots. Null is allowed. - * @return the source {@code Publisher} modified to buffer items up to the given capacity + * @return the current {@code Flowable} modified to buffer items up to the given capacity * @throws NullPointerException if {@code onOverflow} is {@code null} * @throws IllegalArgumentException if {@code capacity} is non-positive * @see ReactiveX operators documentation: backpressure operators @@ -12304,7 +12304,7 @@ public final Flowable onBackpressureBuffer(int capacity, @NonNull Action onOv /** * Instructs a {@link Publisher} that is emitting items faster than its {@link Subscriber} can consume them to buffer up to - * a given amount of items until they can be emitted. The resulting {@code Publisher} will behave as determined + * a given amount of items until they can be emitted. The resulting {@code Flowable} will behave as determined * by {@code overflowStrategy} if the buffer capacity is exceeded. * *
    @@ -12322,7 +12322,7 @@ public final Flowable onBackpressureBuffer(int capacity, @NonNull Action onOv * *
    *
    Backpressure:
    - *
    The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
    The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
    *
    Scheduler:
    *
    {@code onBackpressureBuffer} does not operate by default on a particular {@link Scheduler}.
    @@ -12357,13 +12357,13 @@ public final Flowable onBackpressureBuffer(long capacity, @Nullable Action on * the {@code Subscriber} invokes {@code request(n)} again to increase the request count. *
    *
    Backpressure:
    - *
    The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
    The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
    *
    Scheduler:
    *
    {@code onBackpressureDrop} does not operate by default on a particular {@link Scheduler}.
    *
    * - * @return the source {@code Publisher} modified to drop {@code onNext} notifications on overflow + * @return the current {@code Flowable} modified to drop {@code onNext} notifications on overflow * @see ReactiveX operators documentation: backpressure operators */ @CheckReturnValue @@ -12384,14 +12384,14 @@ public final Flowable onBackpressureDrop() { * the {@code Subscriber} invokes {@code request(n)} again to increase the request count. *
    *
    Backpressure:
    - *
    The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
    The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
    *
    Scheduler:
    *
    {@code onBackpressureDrop} does not operate by default on a particular {@link Scheduler}.
    *
    * * @param onDrop the action to invoke for each item dropped, should be fast and should never block. - * @return the source {@code Publisher} modified to drop {@code onNext} notifications on overflow + * @return the current {@code Flowable} modified to drop {@code onNext} notifications on overflow * @throws NullPointerException if {@code onDrop} is {@code null} * @see ReactiveX operators documentation: backpressure operators * @since 1.1.0 @@ -12414,20 +12414,20 @@ public final Flowable onBackpressureDrop(@NonNull Consumer onDrop) * Its behavior is logically equivalent to {@code blockingLatest()} with the exception that * the downstream is not blocking while requesting more values. *

    - * Note that if the upstream {@code Publisher} does support backpressure, this operator ignores that capability + * Note that if the current {@code Flowable} does support backpressure, this operator ignores that capability * and doesn't propagate any backpressure requests from downstream. *

    * Note that due to the nature of how backpressure requests are propagated through subscribeOn/observeOn, * requesting more than 1 from downstream doesn't guarantee a continuous delivery of {@code onNext} events. *

    *
    Backpressure:
    - *
    The operator honors backpressure from downstream and consumes the source {@code Publisher} in an unbounded + *
    The operator honors backpressure from downstream and consumes the current {@code Flowable} in an unbounded * manner (i.e., not applying backpressure to it).
    *
    Scheduler:
    *
    {@code onBackpressureLatest} does not operate by default on a particular {@link Scheduler}.
    *
    * - * @return the source {@code Publisher} modified so that it emits the most recently-received item upon request + * @return the current {@code Flowable} modified so that it emits the most recently-received item upon request * @since 1.1.0 */ @CheckReturnValue @@ -12461,14 +12461,14 @@ public final Flowable onBackpressureLatest() { *
    The operator honors backpressure from downstream. This and the resuming {@code Publisher}s * are expected to honor backpressure as well. * If any of them violate this expectation, the operator may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes or + * {@link IllegalStateException} when the current {@code Flowable} completes or * a {@link MissingBackpressureException} is signaled somewhere downstream.
    *
    Scheduler:
    *
    {@code onErrorResumeNext} does not operate by default on a particular {@link Scheduler}.
    *
    * * @param resumeFunction - * a function that returns a {@code Publisher} that will take over if the source {@code Publisher} encounters + * a function that returns a {@code Publisher} that will take over if the current {@code Flowable} encounters * an error * @return the original {@code Publisher}, with appropriately modified behavior * @throws NullPointerException if {@code resumeFunction} is {@code null} @@ -12506,14 +12506,14 @@ public final Flowable onErrorResumeNext(@NonNull FunctionThe operator honors backpressure from downstream. This and the resuming {@code Publisher}s * are expected to honor backpressure as well. * If any of them violate this expectation, the operator may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes or + * {@link IllegalStateException} when the current {@code Flowable} completes or * {@link MissingBackpressureException} is signaled somewhere downstream.
*
Scheduler:
*
{@code onErrorResumeWith} does not operate by default on a particular {@link Scheduler}.
*
* * @param next - * the next {@code Publisher} source that will take over if the source {@code Publisher} encounters + * the next {@code Publisher} source that will take over if the current {@code Flowable} encounters * an error * @return the original {@code Publisher}, with appropriately modified behavior * @throws NullPointerException if {@code next} is {@code null} @@ -12545,9 +12545,9 @@ public final Flowable onErrorResumeWith(@NonNull Publisher next) * encountered. *
*
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher}s is expected to honor + *
The operator honors backpressure from downstream. The current {@code Flowable} is expected to honor * backpressure as well. If it this expectation is violated, the operator may throw - * {@link IllegalStateException} when the source {@code Publisher} completes or + * {@link IllegalStateException} when the current {@code Flowable} completes or * {@link MissingBackpressureException} is signaled somewhere downstream.
*
Scheduler:
*
{@code onErrorReturn} does not operate by default on a particular {@link Scheduler}.
@@ -12586,9 +12586,9 @@ public final Flowable onErrorReturn(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher}s is expected to honor + *
The operator honors backpressure from downstream. The current {@code Flowable} is expected to honor * backpressure as well. If it this expectation is violated, the operator may throw - * {@link IllegalStateException} when the source {@code Publisher} completes or + * {@link IllegalStateException} when the current {@code Flowable} completes or * {@link MissingBackpressureException} is signaled somewhere downstream.
*
Scheduler:
*
{@code onErrorReturnItem} does not operate by default on a particular {@link Scheduler}.
@@ -12615,7 +12615,7 @@ public final Flowable onErrorReturnItem(@NonNull T item) { * the sequence is terminated or downstream cancels. *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@link Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code onTerminateDetach} does not operate by default on a particular {@link Scheduler}.
@@ -12737,13 +12737,13 @@ public final ParallelFlowable parallel(int parallelism, int prefetch) { *
*
Backpressure:
*
The returned {@code ConnectableFlowable} honors backpressure for each of its {@code Subscriber}s - * and expects the source {@code Publisher} to honor backpressure as well. If this expectation is violated, + * and expects the current {@code Flowable} to honor backpressure as well. If this expectation is violated, * the operator will signal a {@link MissingBackpressureException} to its {@code Subscriber}s and disconnect.
*
Scheduler:
*
{@code publish} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code ConnectableFlowable} that upon connection causes the source {@code Publisher} to emit items + * @return a {@code ConnectableFlowable} that upon connection causes the current {@code Flowable} to emit items * to its {@code Subscriber}s * @see ReactiveX operators documentation: Publish */ @@ -12762,17 +12762,17 @@ public final ConnectableFlowable publish() { * *
*
Backpressure:
- *
The operator expects the source {@link Publisher} to honor backpressure and if this expectation is - * violated, the operator will signal a {@link MissingBackpressureException} through the {@code Publisher} - * provided to the function. Since the {@code Publisher} returned by the {@code selector} may be - * independent of the provided {@code Publisher} to the function, the output's backpressure behavior + *
The operator expects the current {@code Flowable} to honor backpressure and if this expectation is + * violated, the operator will signal a {@link MissingBackpressureException} through the {@code Flowable} + * provided to the function. Since the {@link Publisher} returned by the {@code selector} may be + * independent of the provided {@code Flowable} to the function, the output's backpressure behavior * is determined by this returned {@code Publisher}.
*
Scheduler:
*
{@code publish} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a function that can use the multicasted source sequence as many times as needed, without * causing multiple subscriptions to the source sequence. {@link Subscriber}s to the given source will @@ -12796,17 +12796,17 @@ public final Flowable publish(@NonNull Function, ? ex * *
*
Backpressure:
- *
The operator expects the source {@link Publisher} to honor backpressure and if this expectation is - * violated, the operator will signal a {@link MissingBackpressureException} through the {@code Publisher} - * provided to the function. Since the {@code Publisher} returned by the {@code selector} may be - * independent of the provided {@code Publisher} to the function, the output's backpressure behavior + *
The operator expects the current {@code Flowable} to honor backpressure and if this expectation is + * violated, the operator will signal a {@link MissingBackpressureException} through the {@code Flowable} + * provided to the function. Since the {@link Publisher} returned by the {@code selector} may be + * independent of the provided {@code Flowable} to the function, the output's backpressure behavior * is determined by this returned {@code Publisher}.
*
Scheduler:
*
{@code publish} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a function that can use the multicasted source sequence as many times as needed, without * causing multiple subscriptions to the source sequence. {@link Subscriber}s to the given source will @@ -12837,7 +12837,7 @@ public final Flowable publish(@NonNull Function, ? ex *
*
Backpressure:
*
The returned {@code ConnectableFlowable} honors backpressure for each of its {@code Subscriber}s - * and expects the source {@code Publisher} to honor backpressure as well. If this expectation is violated, + * and expects the current {@code Flowable} to honor backpressure as well. If this expectation is violated, * the operator will signal a {@link MissingBackpressureException} to its {@code Subscriber}s and disconnect.
*
Scheduler:
*
{@code publish} does not operate by default on a particular {@link Scheduler}.
@@ -12845,7 +12845,7 @@ public final Flowable publish(@NonNull Function, ? ex * * @param bufferSize * the number of elements to prefetch from the current {@code Flowable} - * @return a {@code ConnectableFlowable} that upon connection causes the source {@code Publisher} to emit items + * @return a {@code ConnectableFlowable} that upon connection causes the current {@code Flowable} to emit items * to its {@code Subscriber}s * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Publish @@ -12874,7 +12874,7 @@ public final ConnectableFlowable publish(int bufferSize) { *
* * @param n the initial request amount, further request will happen after 75% of this value - * @return the {@link Publisher} that rebatches request amounts from downstream + * @return the {@code Flowable} that rebatches request amounts from downstream * @throws IllegalArgumentException if {@code n} is non-positive * @since 2.0 */ @@ -12887,9 +12887,9 @@ public final Flowable rebatchRequests(int n) { } /** - * Returns a {@link Maybe} that applies a specified accumulator function to the first item emitted by a source - * {@link Publisher}, then feeds the result of that function along with the second item emitted by the source - * {@code Publisher} into the same function, and so on until all items have been emitted by the finite source {@code Publisher}, + * Returns a {@link Maybe} that applies a specified accumulator function to the first item emitted by the current + * {@code Flowable}, then feeds the result of that function along with the second item emitted by the current + * {@code Flowable} into the same function, and so on until all items have been emitted by the current and finite {@code Flowable}, * and emits the final result from the final call to your function as its sole item. *

* @@ -12910,7 +12910,7 @@ public final Flowable rebatchRequests(int n) { *

* * @param reducer - * an accumulator function to be invoked on each item emitted by the source {@code Publisher}, whose + * an accumulator function to be invoked on each item emitted by the current {@code Flowable}, whose * result will be used in the next accumulator call * @return a {@code Maybe} that emits a single item that is the result of accumulating the items emitted by * the source {@code Flowable} @@ -12928,10 +12928,10 @@ public final Maybe reduce(@NonNull BiFunction reducer) { } /** - * Returns a {@link Single} that applies a specified accumulator function to the first item emitted by a source - * {@link Publisher} and a specified seed value, then feeds the result of that function along with the second item - * emitted by a {@code Publisher} into the same function, and so on until all items have been emitted by the - * finite source {@code Publisher}, emitting the final result from the final call to your function as its sole item. + * Returns a {@link Single} that applies a specified accumulator function to the first item emitted by the current + * {@code Flowable} and a specified seed value, then feeds the result of that function along with the second item + * emitted by the current {@code Flowable} into the same function, and so on until all items have been emitted by the + * current and finite {@code Flowable}, emitting the final result from the final call to your function as its sole item. *

* *

@@ -12939,7 +12939,7 @@ public final Maybe reduce(@NonNull BiFunction reducer) { * "compress," or "inject" in other programming contexts. Groovy, for instance, has an {@code inject} method * that does a similar operation on lists. *

- * Note that the {@code seed} is shared among all subscribers to the resulting {@code Publisher} + * Note that the {@code seed} is shared among all subscribers to the resulting {@code Flowable} * and may cause problems if it is mutable. To make sure each subscriber gets its own value, defer * the application of this operator via {@link #defer(Supplier)}: *


@@ -12972,10 +12972,10 @@ public final Maybe reduce(@NonNull BiFunction reducer) {
      * @param seed
      *            the initial (seed) accumulator value
      * @param reducer
-     *            an accumulator function to be invoked on each item emitted by the source {@code Publisher}, the
+     *            an accumulator function to be invoked on each item emitted by the current {@code Flowable}, the
      *            result of which will be used in the next accumulator call
      * @return a {@code Single} that emits a single item that is the result of accumulating the output from the
-     *         items emitted by the source {@code Publisher}
+     *         items emitted by the current {@code Flowable}
      * @throws NullPointerException if {@code seed} or {@code reducer} is {@code null}
      * @see ReactiveX operators documentation: Reduce
      * @see Wikipedia: Fold (higher-order function)
@@ -12992,10 +12992,10 @@ public final Maybe reduce(@NonNull BiFunction reducer) {
     }
 
     /**
-     * Returns a {@link Single} that applies a specified accumulator function to the first item emitted by a source
-     * {@link Publisher} and a seed value derived from calling a specified {@code seedSupplier}, then feeds the result
-     * of that function along with the second item emitted by a {@code Publisher} into the same function, and so on until
-     * all items have been emitted by the finite source {@code Publisher}, emitting the final result from the final call to your
+     * Returns a {@link Single} that applies a specified accumulator function to the first item emitted by the current
+     * {@code Flowable} and a seed value derived from calling a specified {@code seedSupplier}, then feeds the result
+     * of that function along with the second item emitted by the current {@code Flowable} into the same function, and so on until
+     * all items have been emitted by the current and finite {@code Flowable}, emitting the final result from the final call to your
      * function as its sole item.
      * 

* @@ -13019,10 +13019,10 @@ public final Maybe reduce(@NonNull BiFunction reducer) { * @param seedSupplier * the {@link Supplier} that provides the initial (seed) accumulator value for each individual {@link Subscriber} * @param reducer - * an accumulator function to be invoked on each item emitted by the source {@code Publisher}, the + * an accumulator function to be invoked on each item emitted by the current {@code Flowable}, the * result of which will be used in the next accumulator call * @return a {@code Single} that emits a single item that is the result of accumulating the output from the - * items emitted by the source {@code Publisher} + * items emitted by the current {@code Flowable} * @throws NullPointerException if {@code seedSupplier} or {@code reducer} is {@code null} * @see ReactiveX operators documentation: Reduce * @see Wikipedia: Fold (higher-order function) @@ -13038,18 +13038,18 @@ public final Maybe reduce(@NonNull BiFunction reducer) { } /** - * Returns a {@code Flowable} that repeats the sequence of items emitted by the source {@link Publisher} indefinitely. + * Returns a {@code Flowable} that repeats the sequence of items emitted by the current {@code Flowable} indefinitely. *

* *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code repeat} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} repeatedly and in sequence + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} repeatedly and in sequence * @see ReactiveX operators documentation: Repeat */ @CheckReturnValue @@ -13061,22 +13061,22 @@ public final Flowable repeat() { } /** - * Returns a {@code Flowable} that repeats the sequence of items emitted by the source {@link Publisher} at most + * Returns a {@code Flowable} that repeats the sequence of items emitted by the current {@code Flowable} at most * {@code count} times. *

* *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code repeat} does not operate by default on a particular {@link Scheduler}.
*
* * @param times - * the number of times the source {@code Publisher} items are repeated, a count of 0 will yield an empty + * the number of times the current {@code Flowable} items are repeated, a count of 0 will yield an empty * sequence - * @return a {@code Flowable} that repeats the sequence of items emitted by the source {@code Publisher} at most + * @return a {@code Flowable} that repeats the sequence of items emitted by the current {@code Flowable} at most * {@code count} times * @throws IllegalArgumentException * if {@code times} is less than zero @@ -13097,13 +13097,13 @@ public final Flowable repeat(long times) { } /** - * Returns a {@code Flowable} that repeats the sequence of items emitted by the source {@link Publisher} until + * Returns a {@code Flowable} that repeats the sequence of items emitted by the current {@code Flowable} until * the provided stop function returns {@code true}. *

* *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code repeatUntil} does not operate by default on a particular {@link Scheduler}.
@@ -13127,17 +13127,17 @@ public final Flowable repeatUntil(@NonNull BooleanSupplier stop) { } /** - * Returns a {@code Flowable} that emits the same values as the source {@link Publisher} with the exception of an + * Returns a {@code Flowable} that emits the same values as the current {@code Flowable} with the exception of an * {@code onComplete}. An {@code onComplete} notification from the source will result in the emission of - * a {@code void} item to the {@code Publisher} provided as an argument to the {@code notificationHandler} - * function. If that {@code Publisher} calls {@code onComplete} or {@code onError} then {@code repeatWhen} will + * a {@code void} item to the {@code Flowable} provided as an argument to the {@code notificationHandler} + * function. If that {@link Publisher} calls {@code onComplete} or {@code onError} then {@code repeatWhen} will * call {@code onComplete} or {@code onError} on the child subscription. Otherwise, this {@code Publisher} will - * resubscribe to the source {@code Publisher}. + * resubscribe to the current {@code Flowable}. *

* *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code repeatWhen} does not operate by default on a particular {@link Scheduler}.
@@ -13145,7 +13145,7 @@ public final Flowable repeatUntil(@NonNull BooleanSupplier stop) { * * @param handler * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the repeat. - * @return the source {@code Publisher} modified with repeat logic + * @return the current {@code Flowable} modified with repeat logic * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Repeat */ @@ -13160,8 +13160,8 @@ public final Flowable repeatWhen(@NonNull Function, /** * Returns a {@link ConnectableFlowable} that shares a single subscription to the underlying {@link Publisher} - * that will replay all of its items and notifications to any future {@link Subscriber}. A Connectable - * {@code Publisher} resembles an ordinary {@code Publisher}, except that it does not begin emitting items when it is + * that will replay all of its items and notifications to any future {@link Subscriber}. A connectable + * {@code Flowable} resembles an ordinary {@code Flowable}, except that it does not begin emitting items when it is * subscribed to, but only when its {@code connect} method is called. *

* @@ -13169,12 +13169,12 @@ public final Flowable repeatWhen(@NonNull Function, *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence.
*
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code ConnectableFlowable} that upon connection causes the source {@code Publisher} to emit its + * @return a {@code ConnectableFlowable} that upon connection causes the current {@code Flowable} to emit its * items to its {@code Subscriber}s * @see ReactiveX operators documentation: Replay */ @@ -13188,25 +13188,25 @@ public final ConnectableFlowable replay() { /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on the items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}. + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}. *

* *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence.
*
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * the selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @return a {@code Flowable} that emits items that are the results of invoking the selector on a - * {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} + * {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} * @throws NullPointerException if {@code selector} is {@code null} * @see ReactiveX operators documentation: Replay */ @@ -13221,7 +13221,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying {@code bufferSize} notifications. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13232,20 +13232,20 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * the selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param bufferSize - * the buffer size that limits the number of items the connectable {@code Publisher} can replay + * the buffer size that limits the number of items the operator can replay * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} * replaying no more than {@code bufferSize} items * @throws NullPointerException if {@code selector} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -13264,7 +13264,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying {@code bufferSize} notifications. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13275,23 +13275,23 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * the selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param bufferSize - * the buffer size that limits the number of items the connectable {@code Publisher} can replay + * the buffer size that limits the number of items the operator can replay * @param eagerTruncate * if {@code true}, whenever the internal buffer is truncated to the given bufferSize, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} * replaying no more than {@code bufferSize} items * @throws NullPointerException if {@code selector} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -13309,7 +13309,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying no more than {@code bufferSize} items that were emitted within a specified time window. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13320,24 +13320,24 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} operates by default on the {@code computation} {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param bufferSize - * the buffer size that limits the number of items the connectable {@code Publisher} can replay + * the buffer size that limits the number of items the operator can replay * @param time * the duration of the window in which the replayed items must have been emitted * @param unit * the time unit of {@code time} * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} * @throws NullPointerException if {@code selector} or {@code unit} is {@code null} @@ -13354,7 +13354,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying no more than {@code bufferSize} items that were emitted within a specified time window. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13365,18 +13365,18 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param bufferSize - * the buffer size that limits the number of items the connectable {@code Publisher} can replay + * the buffer size that limits the number of items the operator can replay * @param time * the duration of the window in which the replayed items must have been emitted * @param unit @@ -13384,7 +13384,7 @@ public final Flowable replay(@NonNull Function, ? ext * @param scheduler * the {@code Scheduler} that is the time source for the window * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} @@ -13408,7 +13408,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying no more than {@code bufferSize} items that were emitted within a specified time window. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13419,18 +13419,18 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param bufferSize - * the buffer size that limits the number of items the connectable {@code Publisher} can replay + * the buffer size that limits the number of items the operator can replay * @param time * the duration of the window in which the replayed items must have been emitted * @param unit @@ -13441,7 +13441,7 @@ public final Flowable replay(@NonNull Function, ? ext * if {@code true}, whenever the internal buffer is truncated to the given bufferSize/age, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, and + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, and * replays no more than {@code bufferSize} items that were emitted within the window defined by * {@code time} * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} @@ -13464,7 +13464,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within a specified time window. *

* @@ -13472,22 +13472,22 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} operates by default on the {@code computation} {@link Scheduler}.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param time * the duration of the window in which the replayed items must have been emitted * @param unit * the time unit of {@code time} * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within the window defined by {@code time} * @throws NullPointerException if {@code selector} or {@code unit} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13502,7 +13502,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within a specified time window. *

* @@ -13510,16 +13510,16 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param time * the duration of the window in which the replayed items must have been emitted * @param unit @@ -13527,7 +13527,7 @@ public final Flowable replay(@NonNull Function, ? ext * @param scheduler * the scheduler that is the time source for the window * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within the window defined by {@code time} * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13546,7 +13546,7 @@ public final Flowable replay(@NonNull Function, ? ext /** * Returns a {@code Flowable} that emits items that are the results of invoking a specified selector on items - * emitted by a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher}, + * emitted by a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within a specified time window. *

* @@ -13554,16 +13554,16 @@ public final Flowable replay(@NonNull Function, ? ext *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
* * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param selector * a selector function, which can use the multicasted sequence as many times as needed, without - * causing multiple subscriptions to the {@code Publisher} + * causing multiple subscriptions to the current {@code Flowable} * @param time * the duration of the window in which the replayed items must have been emitted * @param unit @@ -13574,7 +13574,7 @@ public final Flowable replay(@NonNull Function, ? ext * if {@code true}, whenever the internal buffer is truncated to the given age, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention * @return a {@code Flowable} that emits items that are the results of invoking the selector on items emitted by - * a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher}, + * a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable}, * replaying all items that were emitted within the window defined by {@code time} * @throws NullPointerException if {@code selector}, {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13591,9 +13591,9 @@ public final Flowable replay(@NonNull Function, ? ext } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} that - * replays at most {@code bufferSize} items emitted by that {@code Publisher}. A Connectable {@code Publisher} resembles - * an ordinary {@code Publisher}, except that it does not begin emitting items when it is subscribed to, but only + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays at most {@code bufferSize} items to late {@link Subscriber}s. A Connectable {@code Flowable} resembles + * an ordinary {@code Flowable}, except that it does not begin emitting items when it is subscribed to, but only * when its {@code connect} method is called. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13605,16 +13605,16 @@ public final Flowable replay(@NonNull Function, ? ext *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
* * @param bufferSize * the buffer size that limits the number of items that can be replayed - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and - * replays at most {@code bufferSize} items emitted by that {@code Publisher} + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays at most {@code bufferSize} items emitted by the current {@code Flowable} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @see #replay(int, boolean) @@ -13628,9 +13628,9 @@ public final ConnectableFlowable replay(int bufferSize) { return FlowableReplay.create(this, bufferSize, false); } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} that - * replays at most {@code bufferSize} items emitted by that {@code Publisher}. A Connectable {@code Publisher} resembles - * an ordinary {@code Publisher}, except that it does not begin emitting items when it is subscribed to, but only + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays at most {@code bufferSize} items to late {@link Subscriber}s. A connectable {@code Flowable} resembles + * an ordinary {@code Flowable}, except that it does not begin emitting items when it is subscribed to, but only * when its {@code connect} method is called. *

* @@ -13641,8 +13641,8 @@ public final ConnectableFlowable replay(int bufferSize) { *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} does not operate by default on a particular {@link Scheduler}.
*
@@ -13652,8 +13652,8 @@ public final ConnectableFlowable replay(int bufferSize) { * @param eagerTruncate * if {@code true}, whenever the internal buffer is truncated to the given bufferSize, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and - * replays at most {@code bufferSize} items emitted by that {@code Publisher} + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays at most {@code bufferSize} items emitted by the current {@code Flowable} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Replay * @since 3.0.0 @@ -13668,9 +13668,9 @@ public final ConnectableFlowable replay(int bufferSize, boolean eagerTruncate } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * replays at most {@code bufferSize} items that were emitted during a specified time window. A Connectable - * {@code Publisher} resembles an ordinary {@code Publisher}, except that it does not begin emitting items when it is + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays at most {@code bufferSize} items that were emitted during a specified time window. A connectable + * {@code Flowable} resembles an ordinary {@code Flowable}, except that it does not begin emitting items when it is * subscribed to, but only when its {@code connect} method is called. *

* @@ -13683,7 +13683,7 @@ public final ConnectableFlowable replay(int bufferSize, boolean eagerTruncate *

Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -13694,7 +13694,7 @@ public final ConnectableFlowable replay(int bufferSize, boolean eagerTruncate * the duration of the window in which the replayed items must have been emitted * @param unit * the time unit of {@code time} - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} * @throws NullPointerException if {@code unit} is {@code null} @@ -13711,9 +13711,9 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * that replays a maximum of {@code bufferSize} items that are emitted within a specified time window. A - * Connectable {@code Publisher} resembles an ordinary {@code Publisher}, except that it does not begin emitting items + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays a maximum of {@code bufferSize} items that are emitted within a specified time window to late {@link Subscriber}s. A + * connectable {@code Flowable} resembles an ordinary {@code Flowable}, except that it does not begin emitting items * when it is subscribed to, but only when its {@code connect} method is called. *

* @@ -13725,8 +13725,8 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -13739,7 +13739,7 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * the time unit of {@code time} * @param scheduler * the scheduler that is used as a time source for the window - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} @@ -13759,9 +13759,9 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * that replays a maximum of {@code bufferSize} items that are emitted within a specified time window. A - * Connectable {@code Publisher} resembles an ordinary {@code Publisher}, except that it does not begin emitting items + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays a maximum of {@code bufferSize} items that are emitted within a specified time window to late {@link Subscriber}s. A + * connectable {@code Flowable} resembles an ordinary {@code Flowable}, except that it does not begin emitting items * when it is subscribed to, but only when its {@code connect} method is called. *

* Note that due to concurrency requirements, {@code replay(bufferSize)} may hold strong references to more than @@ -13772,8 +13772,8 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -13789,7 +13789,7 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * @param eagerTruncate * if {@code true}, whenever the internal buffer is truncated to the given bufferSize/age, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays at most {@code bufferSize} items that were emitted during the window defined by * {@code time} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} @@ -13809,9 +13809,9 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * replays all items emitted by that {@code Publisher} within a specified time window. A Connectable {@code Publisher} - * resembles an ordinary {@code Publisher}, except that it does not begin emitting items when it is subscribed to, + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays all items emitted by it within a specified time window to late {@link Subscriber}s. A connectable {@code Flowable} + * resembles an ordinary {@code Flowable}, except that it does not begin emitting items when it is subscribed to, * but only when its {@code connect} method is called. *

* @@ -13821,8 +13821,8 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
This version of {@code replay} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -13831,7 +13831,7 @@ public final ConnectableFlowable replay(int bufferSize, long time, @NonNull T * the duration of the window in which the replayed items must have been emitted * @param unit * the time unit of {@code time} - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays the items that were emitted during the window defined by {@code time} * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13845,9 +13845,9 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit) { } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * replays all items emitted by that {@code Publisher} within a specified time window. A Connectable {@code Publisher} - * resembles an ordinary {@code Publisher}, except that it does not begin emitting items when it is subscribed to, + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays all items emitted by it within a specified time window to late {@link Subscriber}s. A connectable {@code Flowable} + * resembles an ordinary {@code Flowable}, except that it does not begin emitting items when it is subscribed to, * but only when its {@code connect} method is called. *

* @@ -13857,8 +13857,8 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit) { *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -13869,7 +13869,7 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit) { * the time unit of {@code time} * @param scheduler * the {@code Scheduler} that is the time source for the window - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays the items that were emitted during the window defined by {@code time} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13886,9 +13886,9 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit, @N } /** - * Returns a {@link ConnectableFlowable} that shares a single subscription to the source {@link Publisher} and - * replays all items emitted by that {@code Publisher} within a specified time window. A Connectable {@code Publisher} - * resembles an ordinary {@code Publisher}, except that it does not begin emitting items when it is subscribed to, + * Returns a {@link ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and + * replays all items emitted by it within a specified time window to late {@link Subscriber}s. A connectable {@code Flowable} + * resembles an ordinary {@code Flowable}, except that it does not begin emitting items when it is subscribed to, * but only when its {@code connect} method is called. *

* @@ -13898,8 +13898,8 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit, @N *

*
Backpressure:
*
This operator supports backpressure. Note that the upstream requests are determined by the child - * {@link Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will - * request 100 elements from the underlying {@code Publisher} sequence.
+ * {@code Subscriber} which requests the largest amount: i.e., two child {@code Subscriber}s with requests of 10 and 100 will + * request 100 elements from the current {@code Flowable} sequence. *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -13913,7 +13913,7 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit, @N * @param eagerTruncate * if {@code true}, whenever the internal buffer is truncated to the given bufferSize/age, the * oldest item will be guaranteed dereferenced, thus avoiding unexpected retention - * @return a {@code ConnectableFlowable} that shares a single subscription to the source {@code Publisher} and + * @return a {@code ConnectableFlowable} that shares a single subscription to the current {@code Flowable} and * replays the items that were emitted during the window defined by {@code time} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Replay @@ -13929,27 +13929,27 @@ public final ConnectableFlowable replay(long time, @NonNull TimeUnit unit, @N } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, resubscribing to it if it calls {@code onError} + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, resubscribing to it if it calls {@code onError} * (infinite retry count). *

* *

- * If the source {@code Publisher} calls {@link Subscriber#onError}, this method will resubscribe to the source - * {@code Publisher} rather than propagating the {@code onError} call. + * If the current {@code Flowable} calls {@link Subscriber#onError}, this method will resubscribe to the current + * {@code Flowable} rather than propagating the {@code onError} call. *

- * Any and all items emitted by the source {@code Publisher} will be emitted by the resulting {@code Publisher}, even - * those emitted during failed subscriptions. For example, if a {@code Publisher} fails at first but emits + * Any and all items emitted by the current {@code Flowable} will be emitted by the resulting {@code Flowable}, even + * those emitted during failed subscriptions. For example, if the current {@code Flowable} fails at first but emits * {@code [1, 2]} then succeeds the second time and emits {@code [1, 2, 3, 4, 5]} then the complete sequence * of emissions and notifications would be {@code [1, 2, 1, 2, 3, 4, 5, onComplete]}. *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retry} does not operate by default on a particular {@link Scheduler}.
*
* - * @return the source {@code Publisher} modified with retry logic + * @return the current {@code Flowable} modified with retry logic * @see ReactiveX operators documentation: Retry */ @CheckReturnValue @@ -13961,13 +13961,13 @@ public final Flowable retry() { } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, resubscribing to it if it calls {@code onError} + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, resubscribing to it if it calls {@code onError} * and the predicate returns {@code true} for that specific exception and retry count. *

* *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retry} does not operate by default on a particular {@link Scheduler}.
@@ -13976,7 +13976,7 @@ public final Flowable retry() { * @param predicate * the predicate that determines if a resubscription may happen in case of a specific exception * and retry count - * @return the source {@code Publisher} modified with retry logic + * @return the current {@code Flowable} modified with retry logic * @throws NullPointerException if {@code predicate} is {@code null} * @see #retry() * @see ReactiveX operators documentation: Retry @@ -13992,22 +13992,22 @@ public final Flowable retry(@NonNull BiPredicate<@NonNull ? super Integer, @N } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, resubscribing to it if it calls {@code onError} + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, resubscribing to it if it calls {@code onError} * up to a specified number of retries. *

* *

- * If the source {@code Publisher} calls {@link Subscriber#onError}, this method will resubscribe to the source - * {@code Publisher} for a maximum of {@code count} resubscriptions rather than propagating the + * If the current {@code Flowable} calls {@link Subscriber#onError}, this method will resubscribe to the current + * {@code Flowable} for a maximum of {@code count} resubscriptions rather than propagating the * {@code onError} call. *

- * Any and all items emitted by the source {@code Publisher} will be emitted by the resulting {@code Publisher}, even - * those emitted during failed subscriptions. For example, if a {@code Publisher} fails at first but emits + * Any and all items emitted by the current {@code Flowable} will be emitted by the resulting {@code Flowable}, even + * those emitted during failed subscriptions. For example, if the current {@code Flowable} fails at first but emits * {@code [1, 2]} then succeeds the second time and emits {@code [1, 2, 3, 4, 5]} then the complete sequence * of emissions and notifications would be {@code [1, 2, 1, 2, 3, 4, 5, onComplete]}. *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retry} does not operate by default on a particular {@link Scheduler}.
@@ -14015,7 +14015,7 @@ public final Flowable retry(@NonNull BiPredicate<@NonNull ? super Integer, @N * * @param times * the number of times to resubscribe if the current {@code Flowable} fails - * @return the source {@code Publisher} modified with retry logic + * @return the current {@code Flowable} modified with retry logic * @throws IllegalArgumentException if {@code times} is negative * @see ReactiveX operators documentation: Retry */ @@ -14032,7 +14032,7 @@ public final Flowable retry(long times) { * *
*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@link Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retry} does not operate by default on a particular {@link Scheduler}.
@@ -14060,7 +14060,7 @@ public final Flowable retry(long times, @NonNull Predicate<@NonNull ? super T * Retries the current {@code Flowable} if the predicate returns {@code true}. *
*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@link Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retry} does not operate by default on a particular {@link Scheduler}.
@@ -14082,7 +14082,7 @@ public final Flowable retry(@NonNull Predicate<@NonNull ? super Throwable> pr * Retries until the given stop function returns {@code true}. *
*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@link Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator may throw an {@link IllegalStateException}.
*
Scheduler:
*
{@code retryUntil} does not operate by default on a particular {@link Scheduler}.
@@ -14101,12 +14101,12 @@ public final Flowable retryUntil(@NonNull BooleanSupplier stop) { } /** - * Returns a {@code Flowable} that emits the same values as the source {@link Publisher} with the exception of an + * Returns a {@code Flowable} that emits the same values as the current {@code Flowable} with the exception of an * {@code onError}. An {@code onError} notification from the source will result in the emission of a - * {@link Throwable} item to the {@code Publisher} provided as an argument to the {@code notificationHandler} - * function. If that {@code Publisher} calls {@code onComplete} or {@code onError} then {@code retry} will call + * {@link Throwable} item to the {@code Flowable} provided as an argument to the {@code notificationHandler} + * function. If that {@link Publisher} calls {@code onComplete} or {@code onError} then {@code retry} will call * {@code onComplete} or {@code onError} on the child subscription. Otherwise, this {@code Publisher} will - * resubscribe to the source {@code Publisher}. + * resubscribe to the current {@code Flowable}. *

* *

@@ -14174,7 +14174,7 @@ public final Flowable retryUntil(@NonNull BooleanSupplier stop) { * @param handler * receives a {@code Publisher} of notifications with which a user can complete or error, aborting the * retry - * @return the source {@code Publisher} modified with retry logic + * @return the current {@code Flowable} modified with retry logic * @throws NullPointerException if {@code handler} is {@code null} * @see ReactiveX operators documentation: Retry */ @@ -14215,7 +14215,7 @@ public final void safeSubscribe(@NonNull Subscriber subscriber) { } /** - * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the source {@link Publisher} + * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the current {@code Flowable} * within periodic time intervals. *

* @@ -14230,7 +14230,7 @@ public final void safeSubscribe(@NonNull Subscriber subscriber) { * the sampling rate * @param unit * the {@link TimeUnit} in which {@code period} is defined - * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} at * the specified time interval * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14246,7 +14246,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the source {@link Publisher} + * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the current {@code Flowable} * within periodic time intervals and optionally emit the very last upstream item when the upstream completes. *

* @@ -14266,7 +14266,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit) { * if {@code true}, and the upstream completes while there is still an unsampled item available, * that item is emitted to downstream before completion * if {@code false}, an unsampled last item is ignored. - * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} at * the specified time interval * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14283,7 +14283,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, boolean emi } /** - * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the source {@link Publisher} + * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the current {@code Flowable} * within periodic time intervals, where the intervals are defined on a particular {@link Scheduler}. *

* @@ -14300,7 +14300,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, boolean emi * the {@link TimeUnit} in which {@code period} is defined * @param scheduler * the {@code Scheduler} to use when sampling - * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} at * the specified time interval * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14318,7 +14318,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the source {@link Publisher} + * Returns a {@code Flowable} that emits the most recently emitted item (if any) emitted by the current {@code Flowable} * within periodic time intervals, where the intervals are defined on a particular {@link Scheduler} * and optionally emit the very last upstream item when the upstream completes. *

@@ -14341,7 +14341,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc * if {@code true} and the upstream completes while there is still an unsampled item available, * that item is emitted to downstream before completion * if {@code false}, an unsampled last item is ignored. - * @return a {@code Flowable} that emits the results of sampling the items emitted by the source {@code Publisher} at + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} at * the specified time interval * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14361,7 +14361,7 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc /** * Returns a {@code Flowable} that, when the specified {@code sampler} {@link Publisher} emits an item or completes, - * emits the most recently emitted item (if any) emitted by the source {@code Publisher} since the previous + * emits the most recently emitted item (if any) emitted by the current {@code Flowable} since the previous * emission from the {@code sampler} {@code Publisher}. *

* @@ -14375,8 +14375,8 @@ public final Flowable sample(long period, @NonNull TimeUnit unit, @NonNull Sc * * @param the element type of the sampler {@code Publisher} * @param sampler - * the {@code Publisher} to use for sampling the source {@code Publisher} - * @return a {@code Flowable} that emits the results of sampling the items emitted by this {@code Publisher} whenever + * the {@code Publisher} to use for sampling the current {@code Flowable} + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} whenever * the {@code sampler} {@code Publisher} emits an item or completes * @throws NullPointerException if {@code sampler} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14393,7 +14393,7 @@ public final Flowable sample(@NonNull Publisher sampler) { /** * Returns a {@code Flowable} that, when the specified {@code sampler} {@link Publisher} emits an item or completes, - * emits the most recently emitted item (if any) emitted by the source {@code Publisher} since the previous + * emits the most recently emitted item (if any) emitted by the current {@code Flowable} since the previous * emission from the {@code sampler} {@code Publisher} * and optionally emit the very last upstream item when the upstream or other {@code Publisher} complete. *

@@ -14409,12 +14409,12 @@ public final Flowable sample(@NonNull Publisher sampler) { *

History: 2.0.5 - experimental * @param the element type of the sampler {@code Publisher} * @param sampler - * the {@code Publisher} to use for sampling the source {@code Publisher} + * the {@code Publisher} to use for sampling the current {@code Flowable} * @param emitLast * if {@code true} and the upstream completes while there is still an unsampled item available, * that item is emitted to downstream before completion * if {@code false}, an unsampled last item is ignored. - * @return a {@code Flowable} that emits the results of sampling the items emitted by this {@code Publisher} whenever + * @return a {@code Flowable} that emits the results of sampling the items emitted by the current {@code Flowable} whenever * the {@code sampler} {@code Publisher} emits an item or completes * @throws NullPointerException if {@code sampler} is {@code null} * @see ReactiveX operators documentation: Sample @@ -14431,9 +14431,9 @@ public final Flowable sample(@NonNull Publisher sampler, boolean emitL } /** - * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by a source - * {@link Publisher}, then feeds the result of that function along with the second item emitted by the source - * {@code Publisher} into the same function, and so on until all items have been emitted by the source {@code Publisher}, + * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by the current + * {@code Flowable}, then feeds the result of that function along with the second item emitted by the current + * {@code Floawble} into the same function, and so on until all items have been emitted by the current {@code Flowable}, * emitting the result of each of these iterations. *

* @@ -14441,14 +14441,14 @@ public final Flowable sample(@NonNull Publisher sampler, boolean emitL * This sort of function is sometimes called an accumulator. *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * Violating this expectation, a {@link MissingBackpressureException} may get signaled somewhere downstream.
*
Scheduler:
*
{@code scan} does not operate by default on a particular {@link Scheduler}.
*
* * @param accumulator - * an accumulator function to be invoked on each item emitted by the source {@code Publisher}, whose + * an accumulator function to be invoked on each item emitted by the current {@code Flowable}, whose * result will be emitted to {@link Subscriber}s via {@link Subscriber#onNext onNext} and used in the * next accumulator call * @return a {@code Flowable} that emits the results of each call to the accumulator function @@ -14465,19 +14465,19 @@ public final Flowable scan(@NonNull BiFunction accumulator) { } /** - * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by a source - * {@link Publisher} and a seed value, then feeds the result of that function along with the second item emitted by - * the source {@code Publisher} into the same function, and so on until all items have been emitted by the source - * {@code Publisher}, emitting the result of each of these iterations. + * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by the current + * {@code Flowable} and a seed value, then feeds the result of that function along with the second item emitted by + * the current {@code Flowable} into the same function, and so on until all items have been emitted by the current + * {@code Flowable}, emitting the result of each of these iterations. *

* *

* This sort of function is sometimes called an accumulator. *

- * Note that the {@code Publisher} that results from this method will emit {@code initialValue} as its first + * Note that the {@code Flowable} that results from this method will emit {@code initialValue} as its first * emitted item. *

- * Note that the {@code initialValue} is shared among all subscribers to the resulting {@code Publisher} + * Note that the {@code initialValue} is shared among all subscribers to the resulting {@code Flowable} * and may cause problems if it is mutable. To make sure each subscriber gets its own value, defer * the application of this operator via {@link #defer(Supplier)}: *


@@ -14492,7 +14492,7 @@ public final Flowable scan(@NonNull BiFunction accumulator) {
      * 
*
*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * Violating this expectation, a {@link MissingBackpressureException} may get signaled somewhere downstream.
*
Scheduler:
*
{@code scan} does not operate by default on a particular {@link Scheduler}.
@@ -14502,7 +14502,7 @@ public final Flowable scan(@NonNull BiFunction accumulator) { * @param initialValue * the initial (seed) accumulator item * @param accumulator - * an accumulator function to be invoked on each item emitted by the source {@code Publisher}, whose + * an accumulator function to be invoked on each item emitted by the current {@code Flowable}, whose * result will be emitted to {@link Subscriber}s via {@link Subscriber#onNext onNext} and used in the * next accumulator call * @return a {@code Flowable} that emits {@code initialValue} followed by the results of each call to the @@ -14520,20 +14520,20 @@ public final Flowable scan(@NonNull BiFunction accumulator) { } /** - * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by a source - * {@link Publisher} and a seed value, then feeds the result of that function along with the second item emitted by - * the source {@code Publisher} into the same function, and so on until all items have been emitted by the source - * {@code Publisher}, emitting the result of each of these iterations. + * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by the current + * {@code Flowable} and a seed value, then feeds the result of that function along with the second item emitted by + * the current {@code Flowable} into the same function, and so on until all items have been emitted by the current + * {@code Flowable}, emitting the result of each of these iterations. *

* *

* This sort of function is sometimes called an accumulator. *

- * Note that the {@code Publisher} that results from this method will emit the value returned by + * Note that the {@code Flowable} that results from this method will emit the value returned by * the {@code seedSupplier} as its first item. *

*
Backpressure:
- *
The operator honors downstream backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors downstream backpressure and expects the current {@code Flowable} to honor backpressure as well. * Violating this expectation, a {@link MissingBackpressureException} may get signaled somewhere downstream.
*
Scheduler:
*
{@code scanWith} does not operate by default on a particular {@link Scheduler}.
@@ -14543,7 +14543,7 @@ public final Flowable scan(@NonNull BiFunction accumulator) { * @param seedSupplier * a {@link Supplier} that returns the initial (seed) accumulator item for each individual {@link Subscriber} * @param accumulator - * an accumulator function to be invoked on each item emitted by the source {@code Publisher}, whose + * an accumulator function to be invoked on each item emitted by the current {@code Flowable}, whose * result will be emitted to {@code Subscriber}s via {@link Subscriber#onNext onNext} and used in the * next accumulator call * @return a {@code Flowable} that emits {@code initialValue} followed by the results of each call to the @@ -14574,13 +14574,13 @@ public final Flowable scan(@NonNull BiFunction accumulator) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code serialize} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Publisher} that is guaranteed to be well-behaved and to make only serialized calls to + * @return a {@code Flowable} that is guaranteed to be well-behaved and to make only serialized calls to * its {@code Subscriber}s * @see ReactiveX operators documentation: Serialize */ @@ -14593,23 +14593,23 @@ public final Flowable serialize() { } /** - * Returns a new {@link Publisher} that multicasts (and shares a single subscription to) the original {@code Publisher}. As long as - * there is at least one {@link Subscriber} this {@code Publisher} will be subscribed and emitting data. - * When all subscribers have canceled it will cancel the source {@code Publisher}. + * Returns a new {@code Flowable} that multicasts (and shares a single subscription to) the current {@code Flowable}. As long as + * there is at least one {@link Subscriber}, the current {@code Flowable} will be subscribed and emitting data. + * When all subscribers have canceled it will cancel the current {@code Flowable}. *

* This is an alias for {@link #publish()}.{@link ConnectableFlowable#refCount() refCount()}. *

* *

*
Backpressure:
- *
The operator honors backpressure and expects the source {@code Publisher} to honor backpressure as well. + *
The operator honors backpressure and expects the current {@code Flowable} to honor backpressure as well. * If this expectation is violated, the operator will signal a {@link MissingBackpressureException} to * its {@code Subscriber}s.
*
Scheduler:
*
{@code share} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Publisher} that upon connection causes the source {@code Publisher} to emit items + * @return a {@code Flowable} that upon connection causes the current {@code Flowable} to emit items * to its {@code Subscriber}s * @see ReactiveX operators documentation: RefCount */ @@ -14629,13 +14629,13 @@ public final Flowable share() { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code singleElement} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Maybe} that emits the single item emitted by the source {@code Publisher} + * @return a {@code Maybe} that emits the single item emitted by the current {@code Flowable} * @see ReactiveX operators documentation: First */ @CheckReturnValue @@ -14647,23 +14647,23 @@ public final Maybe singleElement() { } /** - * Returns a {@link Single} that emits the single item emitted by the source {@link Publisher}, if that {@code Publisher} - * emits only a single item, or a default item if the source {@code Publisher} emits no items. If the source - * {@code Publisher} emits more than one item, an {@link IllegalArgumentException} is signaled instead. + * Returns a {@link Single} that emits the single item emitted by the current {@code Flowable} if it + * emits only a single item, or a default item if the current {@code Flowable} emits no items. If the current + * {@code Flowable} emits more than one item, an {@link IllegalArgumentException} is signaled instead. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code single} does not operate by default on a particular {@link Scheduler}.
*
* * @param defaultItem - * a default value to emit if the source {@code Publisher} emits no item - * @return a {@code Single} that emits the single item emitted by the source {@code Publisher}, or a default item if - * the source {@code Publisher} is empty + * a default value to emit if the current {@code Flowable} emits no item + * @return a {@code Single} that emits the single item emitted by the current {@code Flowable}, or a default item if + * the current {@code Flowable} is empty * @throws NullPointerException if {@code defaultItem} is {@code null} * @see ReactiveX operators documentation: First */ @@ -14685,7 +14685,7 @@ public final Single single(@NonNull T defaultItem) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@link Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure).
*
Scheduler:
*
{@code singleOrError} does not operate by default on a particular {@link Scheduler}.
@@ -14703,13 +14703,13 @@ public final Single singleOrError() { } /** - * Returns a {@code Flowable} that skips the first {@code count} items emitted by the source {@link Publisher} and emits + * Returns a {@code Flowable} that skips the first {@code count} items emitted by the current {@code Flowable} and emits * the remainder. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This version of {@code skip} does not operate by default on a particular {@link Scheduler}.
@@ -14717,8 +14717,8 @@ public final Single singleOrError() { * * @param count * the number of items to skip - * @return a {@code Flowable} that is identical to the source {@code Publisher} except that it does not emit the first - * {@code count} items that the source {@code Publisher} emits + * @return a {@code Flowable} that is identical to the current {@code Flowable} except that it does not emit the first + * {@code count} items that the current {@code Flowable} emits * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: Skip */ @@ -14737,14 +14737,14 @@ public final Flowable skip(long count) { } /** - * Returns a {@code Flowable} that skips values emitted by the source {@link Publisher} before a specified time window + * Returns a {@code Flowable} that skips values emitted by the current {@code Flowable} before a specified time window * elapses. *

* *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
{@code skip} does not operate on any particular scheduler but uses the current time * from the {@code computation} {@link Scheduler}.
@@ -14754,7 +14754,7 @@ public final Flowable skip(long count) { * the length of the time window to skip * @param unit * the time unit of {@code time} - * @return a {@code Flowable} that skips values emitted by the source {@code Publisher} before the time window defined + * @return a {@code Flowable} that skips values emitted by the current {@code Flowable} before the time window defined * by {@code time} elapses and the emits the remainder * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Skip @@ -14768,14 +14768,14 @@ public final Flowable skip(long time, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that skips values emitted by the source {@link Publisher} before a specified time window + * Returns a {@code Flowable} that skips values emitted by the current {@code Flowable} before a specified time window * on a specified {@link Scheduler} elapses. *

* *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
You specify which {@code Scheduler} this operator will use for the timed skipping
*
@@ -14786,7 +14786,7 @@ public final Flowable skip(long time, @NonNull TimeUnit unit) { * the time unit of {@code time} * @param scheduler * the {@code Scheduler} on which the timed wait happens - * @return a {@code Flowable} that skips values emitted by the source {@code Publisher} before the time window defined + * @return a {@code Flowable} that skips values emitted by the current {@code Flowable} before the time window defined * by {@code time} and {@code scheduler} elapses, and then emits the remainder * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Skip @@ -14801,16 +14801,16 @@ public final Flowable skip(long time, @NonNull TimeUnit unit, @NonNull Schedu /** * Returns a {@code Flowable} that drops a specified number of items from the end of the sequence emitted by the - * source {@link Publisher}. + * current {@code Flowable}. *

* *

* This {@link Subscriber} accumulates a queue long enough to store the first {@code count} items. As more items are - * received, items are taken from the front of the queue and emitted by the returned {@code Publisher}. This causes + * received, items are taken from the front of the queue and emitted by the resulting {@code Flowable}. This causes * such items to be delayed. *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This version of {@code skipLast} does not operate by default on a particular {@link Scheduler}.
@@ -14818,7 +14818,7 @@ public final Flowable skip(long time, @NonNull TimeUnit unit, @NonNull Schedu * * @param count * number of items to drop from the end of the source sequence - * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} except for the dropped ones + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} except for the dropped ones * at the end * @throws IllegalArgumentException * if {@code count} is less than zero @@ -14839,7 +14839,7 @@ public final Flowable skipLast(int count) { } /** - * Returns a {@code Flowable} that drops items emitted by the source {@link Publisher} during a specified time window + * Returns a {@code Flowable} that drops items emitted by the current {@code Flowable} during a specified time window * before the source completes. *

* @@ -14848,7 +14848,7 @@ public final Flowable skipLast(int count) { *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
{@code skipLast} does not operate on any particular scheduler but uses the current time * from the {@code computation} {@link Scheduler}.
@@ -14858,7 +14858,7 @@ public final Flowable skipLast(int count) { * the length of the time window * @param unit * the time unit of {@code time} - * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the + * @return a {@code Flowable} that drops those items emitted by the current {@code Flowable} in a time window before the * source completes defined by {@code time} * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: SkipLast @@ -14872,7 +14872,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that drops items emitted by the source {@link Publisher} during a specified time window + * Returns a {@code Flowable} that drops items emitted by the current {@code Flowable} during a specified time window * before the source completes. *

* @@ -14881,7 +14881,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit) { *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
{@code skipLast} does not operate on any particular scheduler but uses the current time * from the {@code computation} {@link Scheduler}.
@@ -14894,7 +14894,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit) { * @param delayError * if {@code true}, an exception signaled by the current {@code Flowable} is delayed until the regular elements are consumed * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped - * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the + * @return a {@code Flowable} that drops those items emitted by the current {@code Flowable} in a time window before the * source completes defined by {@code time} * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: SkipLast @@ -14908,7 +14908,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, boolean del } /** - * Returns a {@code Flowable} that drops items emitted by the source {@link Publisher} during a specified time window + * Returns a {@code Flowable} that drops items emitted by the current {@code Flowable} during a specified time window * (defined on a specified scheduler) before the source completes. *

* @@ -14917,7 +14917,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, boolean del *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
You specify which {@link Scheduler} this operator will use for tracking the current time
*
@@ -14928,7 +14928,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, boolean del * the time unit of {@code time} * @param scheduler * the scheduler used as the time source - * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the + * @return a {@code Flowable} that drops those items emitted by the current {@code Flowable} in a time window before the * source completes defined by {@code time} and {@code scheduler} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SkipLast @@ -14942,7 +14942,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that drops items emitted by the source {@link Publisher} during a specified time window + * Returns a {@code Flowable} that drops items emitted by the current {@code Flowable} during a specified time window * (defined on a specified scheduler) before the source completes. *

* @@ -14951,7 +14951,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
You specify which {@link Scheduler} this operator will use to track the current time
*
@@ -14965,7 +14965,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * @param delayError * if {@code true}, an exception signaled by the current {@code Flowable} is delayed until the regular elements are consumed * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped - * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the + * @return a {@code Flowable} that drops those items emitted by the current {@code Flowable} in a time window before the * source completes defined by {@code time} and {@code scheduler} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SkipLast @@ -14979,7 +14979,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that drops items emitted by the source {@link Publisher} during a specified time window + * Returns a {@code Flowable} that drops items emitted by the current {@code Flowable} during a specified time window * (defined on a specified scheduler) before the source completes. *

* @@ -14988,7 +14988,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc *

*
Backpressure:
*
The operator doesn't support backpressure as it uses time to skip an arbitrary number of elements and - * thus has to consume the source {@code Publisher} in an unbounded manner (i.e., no backpressure applied to it).
+ * thus has to consume the current {@code Flowable} in an unbounded manner (i.e., no backpressure applied to it). *
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
*
@@ -15004,7 +15004,7 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @param bufferSize * the hint about how many elements to expect to be skipped - * @return a {@code Flowable} that drops those items emitted by the source {@code Publisher} in a time window before the + * @return a {@code Flowable} that drops those items emitted by the current {@code Flowable} in a time window before the * source completes defined by {@code time} and {@code scheduler} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive @@ -15024,13 +15024,13 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that skips items emitted by the source {@link Publisher} until a second {@code Publisher} emits + * Returns a {@code Flowable} that skips items emitted by the current {@code Flowable} until a second {@link Publisher} emits * an item. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code skipUntil} does not operate by default on a particular {@link Scheduler}.
@@ -15038,9 +15038,9 @@ public final Flowable skipLast(long time, @NonNull TimeUnit unit, @NonNull Sc * * @param the element type of the other {@code Publisher} * @param other - * the second {@code Publisher} that has to emit an item before the source {@code Publisher}'s elements begin - * to be mirrored by the resulting {@code Publisher} - * @return a {@code Flowable} that skips items from the source {@code Publisher} until the second {@code Publisher} emits an + * the second {@code Publisher} that has to emit an item before the current {@code Flowable}'s elements begin + * to be mirrored by the resulting {@code Flowable} + * @return a {@code Flowable} that skips items from the current {@code Flowable} until the second {@code Publisher} emits an * item, then emits the remaining items * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: SkipUntil @@ -15055,21 +15055,21 @@ public final Flowable skipUntil(@NonNull Publisher other) { } /** - * Returns a {@code Flowable} that skips all items emitted by the source {@link Publisher} as long as a specified + * Returns a {@code Flowable} that skips all items emitted by the current {@code Flowable} as long as a specified * condition holds {@code true}, but emits all further source items as soon as the condition becomes {@code false}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code skipWhile} does not operate by default on a particular {@link Scheduler}.
*
* * @param predicate - * a function to test each item emitted from the source {@code Publisher} - * @return a {@code Flowable} that begins emitting items emitted by the source {@code Publisher} when the specified + * a function to test each item emitted from the current {@code Flowable} + * @return a {@code Flowable} that begins emitting items emitted by the current {@code Flowable} when the specified * predicate becomes {@code false} * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: SkipWhile @@ -15095,13 +15095,13 @@ public final Flowable skipWhile(@NonNull Predicate predicate) { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code sorted} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} in sorted order + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} in sorted order */ @CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @@ -15120,17 +15120,17 @@ public final Flowable sorted() { * *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code sorted} does not operate by default on a particular {@link Scheduler}.
*
* * @param comparator - * a function that compares two items emitted by the source {@code Publisher} and returns an {@link Integer} + * a function that compares two items emitted by the current {@code Flowable} and returns an {@link Integer} * that indicates their sort order * @throws NullPointerException if {@code comparator} is {@code null} - * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} in sorted order + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} in sorted order */ @CheckReturnValue @NonNull @@ -15143,22 +15143,22 @@ public final Flowable sorted(@NonNull Comparator<@NonNull ? super T> comparat /** * Returns a {@code Flowable} that emits the items in a specified {@link Iterable} before it begins to emit items - * emitted by the source {@link Publisher}. + * emitted by the current {@code Flowable}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher} + *
The operator honors backpressure from downstream. The Current {@code Flowable} * is expected to honor backpressure as well. If it violates this rule, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code startWithIterable} does not operate by default on a particular {@link Scheduler}.
*
* * @param items - * an {@code Iterable} that contains the items you want the modified {@code Publisher} to emit first + * an {@code Iterable} that contains the items you want the resulting {@code Flowable} to emit first * @return a {@code Flowable} that emits the items in the specified {@code Iterable} and then emits the items - * emitted by the source {@code Publisher} + * emitted by the current {@code Flowable} * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithArray(Object...) @@ -15175,14 +15175,14 @@ public final Flowable startWithIterable(@NonNull Iterable items) /** * Returns a {@code Flowable} that emits the items in a specified {@link Publisher} before it begins to emit - * items emitted by the source {@code Publisher}. + * items emitted by the current {@code Flowable}. *

* *

*
Backpressure:
*
The operator honors backpressure from downstream. Both this and the {@code other} {@code Publisher}s * are expected to honor backpressure as well. If any of then violates this rule, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code startWith} does not operate by default on a particular {@link Scheduler}.
*
@@ -15190,7 +15190,7 @@ public final Flowable startWithIterable(@NonNull Iterable items) * @param other * a {@code Publisher} that contains the items you want the modified {@code Publisher} to emit first * @return a {@code Flowable} that emits the items in the specified {@code Publisher} and then emits the items - * emitted by the source {@code Publisher} + * emitted by the current {@code Flowable} * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: StartWith */ @@ -15204,23 +15204,23 @@ public final Flowable startWith(@NonNull Publisher other) { } /** - * Returns a {@code Flowable} that emits a specified item before it begins to emit items emitted by the source - * {@link Publisher}. + * Returns a {@code Flowable} that emits a specified item before it begins to emit items emitted by the current + * {@code Flowable}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher} + *
The operator honors backpressure from downstream. The current {@code Flowable} * is expected to honor backpressure as well. If it violates this rule, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code startWithItem} does not operate by default on a particular {@link Scheduler}.
*
* * @param item * the item to emit first - * @return a {@code Flowable} that emits the specified item before it begins to emit items emitted by the source - * {@code Publisher} + * @return a {@code Flowable} that emits the specified item before it begins to emit items emitted by the current + * {@code Flowable} * @throws NullPointerException if {@code item} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithArray(Object...) @@ -15237,23 +15237,23 @@ public final Flowable startWithItem(@NonNull T item) { } /** - * Returns a {@code Flowable} that emits the specified items before it begins to emit items emitted by the source - * {@link Publisher}. + * Returns a {@code Flowable} that emits the specified items before it begins to emit items emitted by the current + * {@code Flowable}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream. The source {@code Publisher} + *
The operator honors backpressure from downstream. The current {@code Flowable} * is expected to honor backpressure as well. If it violates this rule, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code startWithArray} does not operate by default on a particular {@link Scheduler}.
*
* * @param items * the array of values to emit first - * @return a {@code Flowable} that emits the specified items before it begins to emit items emitted by the source - * {@code Publisher} + * @return a {@code Flowable} that emits the specified items before it begins to emit items emitted by the current + * {@code Flowable} * @throws NullPointerException if {@code items} is {@code null} * @see ReactiveX operators documentation: StartWith * @see #startWithItem(Object) @@ -15280,7 +15280,7 @@ public final Flowable startWithArray(@NonNull T... items) { * and routed to the {@link RxJavaPlugins#onError(Throwable)} handler. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code subscribe} does not operate by default on a particular {@link Scheduler}.
@@ -15305,7 +15305,7 @@ public final Disposable subscribe() { * and routed to the {@link RxJavaPlugins#onError(Throwable)} handler. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code subscribe} does not operate by default on a particular {@link Scheduler}.
@@ -15332,7 +15332,7 @@ public final Disposable subscribe(@NonNull Consumer onNext) { * notification it issues. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code subscribe} does not operate by default on a particular {@link Scheduler}.
@@ -15362,7 +15362,7 @@ public final Disposable subscribe(@NonNull Consumer onNext, @NonNull * completion notification it issues. *
*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner (i.e., no + *
The operator consumes the current {@code Flowable} in an unbounded manner (i.e., no * backpressure is applied to it).
*
Scheduler:
*
{@code subscribe} does not operate by default on a particular {@link Scheduler}.
@@ -15520,7 +15520,7 @@ public final void subscribe(@NonNull FlowableSubscriber subscriber) { } /** - * Asynchronously subscribes {@link Subscriber}s to this {@link Publisher} on the specified {@link Scheduler}. + * Asynchronously subscribes {@link Subscriber}s to the current {@code Flowable} on the specified {@link Scheduler}. *

* If there is a {@link #create(FlowableOnSubscribe, BackpressureStrategy)} type source up in the * chain, it is recommended to use {@code subscribeOn(scheduler, false)} instead @@ -15529,7 +15529,7 @@ public final void subscribe(@NonNull FlowableSubscriber subscriber) { * *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
@@ -15537,7 +15537,7 @@ public final void subscribe(@NonNull FlowableSubscriber subscriber) { * * @param scheduler * the {@code Scheduler} to perform subscription actions on - * @return the source {@code Publisher} modified so that its subscriptions happen on the + * @return the current {@code Flowable} modified so that its subscriptions happen on the * specified {@code Scheduler} * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SubscribeOn @@ -15555,7 +15555,7 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler) { } /** - * Asynchronously subscribes {@link Subscriber}s to this {@link Publisher} on the specified {@link Scheduler} + * Asynchronously subscribes {@link Subscriber}s to the current {@code Flowable} on the specified {@link Scheduler} * optionally reroutes requests from other threads to the same {@code Scheduler} thread. *

* If there is a {@link #create(FlowableOnSubscribe, BackpressureStrategy)} type source up in the @@ -15565,7 +15565,7 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler) { * *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
@@ -15576,7 +15576,7 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler) { * @param requestOn if {@code true}, requests are rerouted to the given {@code Scheduler} as well (strong pipelining) * if {@code false}, requests coming from any thread are simply forwarded to * the upstream on the same thread (weak pipelining) - * @return the source {@code Publisher} modified so that its subscriptions happen on the + * @return the current {@code Flowable} modified so that its subscriptions happen on the * specified {@code Scheduler} * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SubscribeOn @@ -15594,14 +15594,14 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler, boolean reque } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} or the items of an alternate - * {@code Publisher} if the source {@code Publisher} is empty. + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} or the items of an alternate + * {@link Publisher} if the current {@code Flowable} is empty. *

* *

*
Backpressure:
- *
If the source {@code Publisher} is empty, the alternate {@code Publisher} is expected to honor backpressure. - * If the source {@code Publisher} is non-empty, it is expected to honor backpressure as instead. + *
If the current {@code Flowable} is empty, the alternate {@code Publisher} is expected to honor backpressure. + * If the current {@code Flowable} is non-empty, it is expected to honor backpressure as instead. * In either case, if violated, a {@link MissingBackpressureException} may get * signaled somewhere downstream. *
@@ -15611,8 +15611,8 @@ public final Flowable subscribeOn(@NonNull Scheduler scheduler, boolean reque * * @param other * the alternate {@code Publisher} to subscribe to if the source does not emit any items - * @return a {@code Publisher} that emits the items emitted by the source {@code Publisher} or the items of an - * alternate {@code Publisher} if the source {@code Publisher} is empty. + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} or the items of an + * alternate {@code Publisher} if the current {@code Flowable} is empty. * @throws NullPointerException if {@code other} is {@code null} * @since 1.1.0 */ @@ -15626,12 +15626,12 @@ public final Flowable switchIfEmpty(@NonNull Publisher other) { } /** - * Returns a new {@link Publisher} by applying a function that you supply to each item emitted by the source - * {@code Publisher} that returns a {@code Publisher}, and then emitting the items emitted by the most recently emitted + * Returns a new {@code Flowable} by applying a function that you supply to each item emitted by the current + * {@code Flowable} that returns a {@link Publisher}, and then emitting the items emitted by the most recently emitted * of these {@code Publisher}s. *

- * The resulting {@code Publisher} completes if both the upstream {@code Publisher} and the last inner {@code Publisher}, if any, complete. - * If the upstream {@code Publisher} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. + * The resulting {@code Flowable} completes if both the current {@code Flowable} and the last inner {@code Publisher}, if any, complete. + * If the current {@code Flowable} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. *

* *

@@ -15646,9 +15646,9 @@ public final Flowable switchIfEmpty(@NonNull Publisher other) { * * @param the element type of the inner {@code Publisher}s and the output * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} - * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the source {@code Publisher} + * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the current {@code Flowable} * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap * @see #switchMapDelayError(Function) @@ -15662,12 +15662,12 @@ public final Flowable switchMap(@NonNull Function - * The resulting {@code Publisher} completes if both the upstream {@code Publisher} and the last inner {@code Publisher}, if any, complete. - * If the upstream {@code Publisher} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. + * The resulting {@code Flowable} completes if both the current {@code Flowable} and the last inner {@code Publisher}, if any, complete. + * If the current {@code Flowable} signals an {@code onError}, the inner {@code Publisher} is canceled and the error delivered in-sequence. *

* *

@@ -15682,11 +15682,11 @@ public final Flowable switchMap(@NonNull Function the element type of the inner {@code Publisher}s and the output * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param bufferSize * the number of elements to prefetch from the current active inner {@code Publisher} - * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the source {@code Publisher} + * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the current {@code Flowable} * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -15796,12 +15796,12 @@ public final Completable switchMapCompletableDelayError(@NonNull Function - * The resulting {@code Publisher} completes if both the upstream {@code Publisher} and the last inner {@code Publisher}, if any, complete. - * If the upstream {@code Publisher} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is + * The resulting {@code Flowable} completes if both the current {@code Flowable} and the last inner {@code Publisher}, if any, complete. + * If the current {@code Flowable} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is * or wrapped into a {@link CompositeException} along with the other possible errors the former inner {@code Publisher}s signaled. *

* @@ -15817,9 +15817,9 @@ public final Completable switchMapCompletableDelayError(@NonNull Function the element type of the inner {@code Publisher}s and the output * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} - * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the source {@code Publisher} + * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the current {@code Flowable} * @throws NullPointerException if {@code mapper} is {@code null} * @see ReactiveX operators documentation: FlatMap * @see #switchMap(Function) @@ -15834,12 +15834,12 @@ public final Flowable switchMapDelayError(@NonNull Function - * The resulting {@code Publisher} completes if both the upstream {@code Publisher} and the last inner {@code Publisher}, if any, complete. - * If the upstream {@code Publisher} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is + * The resulting {@code Flowable} completes if both the current {@code Flowable} and the last inner {@code Publisher}, if any, complete. + * If the current {@code Flowable} signals an {@code onError}, the termination of the last inner {@code Publisher} will emit that error as is * or wrapped into a {@link CompositeException} along with the other possible errors the former inner {@code Publisher}s signaled. *

* @@ -15855,11 +15855,11 @@ public final Flowable switchMapDelayError(@NonNull Function the element type of the inner {@code Publisher}s and the output * @param mapper - * a function that, when applied to an item emitted by the source {@code Publisher}, returns a + * a function that, when applied to an item emitted by the current {@code Flowable}, returns a * {@code Publisher} * @param bufferSize * the number of elements to prefetch from the current active inner {@code Publisher} - * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the source {@code Publisher} + * @return a {@code Flowable} that emits the items emitted by the {@code Publisher} returned from applying {@code func} to the most recently emitted item emitted by the current {@code Flowable} * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: FlatMap @@ -16037,12 +16037,12 @@ public final Flowable switchMapSingleDelayError(@NonNull Function * *

- * This method returns a {@code Publisher} that will invoke a subscribing {@link Subscriber}'s + * This method returns a {@code Flowable} that will invoke a subscribing {@link Subscriber}'s * {@link Subscriber#onNext onNext} function a maximum of {@code count} times before invoking * {@link Subscriber#onComplete onComplete}. *

@@ -16063,7 +16063,7 @@ public final Flowable switchMapSingleDelayError(@NonNull Function *

Backpressure:
- *
The source {@code Publisher} is consumed in a bounded manner.
+ *
The current {@code Flowable} is consumed in a bounded manner.
*
Scheduler:
*
This version of {@code take} does not operate by default on a particular {@link Scheduler}.
*
@@ -16072,8 +16072,8 @@ public final Flowable switchMapSingleDelayError(@NonNull FunctionReactiveX operators documentation: Take */ @@ -16098,7 +16098,7 @@ public final Flowable take(long count) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This version of {@code take} operates by default on the {@code computation} {@code Scheduler}.
@@ -16108,7 +16108,7 @@ public final Flowable take(long count) { * the length of the time window * @param unit * the time unit of {@code time} - * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} before the time runs out + * @return a {@code Flowable} that emits those items emitted by the current {@code Flowable} before the time runs out * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Take */ @@ -16130,7 +16130,7 @@ public final Flowable take(long time, @NonNull TimeUnit unit) { * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
@@ -16142,7 +16142,7 @@ public final Flowable take(long time, @NonNull TimeUnit unit) { * the time unit of {@code time} * @param scheduler * the {@code Scheduler} used for time source - * @return a {@code Flowable} that emits those items emitted by the source {@code Publisher} before the time runs out, + * @return a {@code Flowable} that emits those items emitted by the current {@code Flowable} before the time runs out, * according to the specified {@code Scheduler} * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Take @@ -16156,7 +16156,7 @@ public final Flowable take(long time, @NonNull TimeUnit unit, @NonNull Schedu } /** - * Returns a {@code Flowable} that emits at most the last {@code count} items emitted by the source {@link Publisher}. If the source emits fewer than + * Returns a {@code Flowable} that emits at most the last {@code count} items emitted by the current {@code Flowable}. If the source emits fewer than * {@code count} items then all of its items are emitted. *

* @@ -16169,9 +16169,9 @@ public final Flowable take(long time, @NonNull TimeUnit unit, @NonNull Schedu *

* * @param count - * the maximum number of items to emit from the end of the sequence of items emitted by the source - * {@code Publisher} - * @return a {@code Flowable} that emits at most the last {@code count} items emitted by the source {@code Publisher} + * the maximum number of items to emit from the end of the sequence of items emitted by the current + * {@code Flowable} + * @return a {@code Flowable} that emits at most the last {@code count} items emitted by the current {@code Flowable} * @throws IllegalArgumentException * if {@code count} is negative * @see ReactiveX operators documentation: TakeLast @@ -16194,13 +16194,13 @@ public final Flowable takeLast(int count) { } /** - * Returns a {@code Flowable} that emits at most a specified number of items from the source {@link Publisher} that were - * emitted in a specified window of time before the {@code Publisher} completed. + * Returns a {@code Flowable} that emits at most a specified number of items from the current {@code Flowable} that were + * emitted in a specified window of time before the current {@code Flowable} completed. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it).
*
Scheduler:
*
{@code takeLast} does not operate on any particular scheduler but uses the current time @@ -16213,8 +16213,8 @@ public final Flowable takeLast(int count) { * the length of the time window * @param unit * the time unit of {@code time} - * @return a {@code Flowable} that emits at most {@code count} items from the source {@code Publisher} that were emitted - * in a specified window of time before the {@code Publisher} completed + * @return a {@code Flowable} that emits at most {@code count} items from the current {@code Flowable} that were emitted + * in a specified window of time before the current {@code Flowable} completed * @throws NullPointerException if {@code unit} is {@code null} * @throws IllegalArgumentException if {@code count} is negative * @see ReactiveX operators documentation: TakeLast @@ -16228,14 +16228,14 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit) } /** - * Returns a {@code Flowable} that emits at most a specified number of items from the source {@link Publisher} that were - * emitted in a specified window of time before the {@code Publisher} completed, where the timing information is + * Returns a {@code Flowable} that emits at most a specified number of items from the current {@code Flowable} that were + * emitted in a specified window of time before the current {@code Flowable} completed, where the timing information is * provided by a given {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it).
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use for tracking the current time
@@ -16249,9 +16249,10 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit) * the time unit of {@code time} * @param scheduler * the {@code Scheduler} that provides the timestamps for the observed items - * @return a {@code Flowable} that emits at most {@code count} items from the source {@code Publisher} that were emitted - * in a specified window of time before the {@code Publisher} completed, where the timing information is + * @return a {@code Flowable} that emits at most {@code count} items from the current {@code Flowable} that were emitted + * in a specified window of time before the current {@code Flowable} completed, where the timing information is * provided by the given {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException * if {@code count} is less than zero * @see ReactiveX operators documentation: TakeLast @@ -16265,14 +16266,14 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits at most a specified number of items from the source {@link Publisher} that were - * emitted in a specified window of time before the {@code Publisher} completed, where the timing information is + * Returns a {@code Flowable} that emits at most a specified number of items from the current {@code Flowable} that were + * emitted in a specified window of time before the current {@code Flowable} completed, where the timing information is * provided by a given {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it).
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use for tracking the current time
@@ -16291,9 +16292,10 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit, * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @param bufferSize * the hint about how many elements to expect to be last - * @return a {@code Flowable} that emits at most {@code count} items from the source {@code Publisher} that were emitted - * in a specified window of time before the {@code Publisher} completed, where the timing information is + * @return a {@code Flowable} that emits at most {@code count} items from the current {@code Flowable} that were emitted + * in a specified window of time before the current {@code Flowable} completed, where the timing information is * provided by the given {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException * if {@code count} is negative or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: TakeLast @@ -16313,13 +16315,13 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits the items from the source {@link Publisher} that were emitted in a specified - * window of time before the {@code Publisher} completed. + * Returns a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in a specified + * window of time before the current {@code Flowable} completed. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it) but note that this may * lead to {@link OutOfMemoryError} due to internal buffer bloat. * Consider using {@link #takeLast(long, long, TimeUnit)} in this case.
@@ -16331,8 +16333,9 @@ public final Flowable takeLast(long count, long time, @NonNull TimeUnit unit, * the length of the time window * @param unit * the time unit of {@code time} - * @return a {@code Flowable} that emits the items from the source {@code Publisher} that were emitted in the window of - * time before the {@code Publisher} completed specified by {@code time} + * @return a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in the window of + * time before the current {@code Flowable} completed specified by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -16344,13 +16347,13 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that emits the items from the source {@link Publisher} that were emitted in a specified - * window of time before the {@code Publisher} completed. + * Returns a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in a specified + * window of time before the current {@code Flowable} completed. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it) but note that this may * lead to {@link OutOfMemoryError} due to internal buffer bloat. * Consider using {@link #takeLast(long, long, TimeUnit)} in this case.
@@ -16365,8 +16368,9 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit) { * @param delayError * if {@code true}, an exception signaled by the current {@code Flowable} is delayed until the regular elements are consumed * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped - * @return a {@code Flowable} that emits the items from the source {@code Publisher} that were emitted in the window of - * time before the {@code Publisher} completed specified by {@code time} + * @return a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in the window of + * time before the current {@code Flowable} completed specified by {@code time} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -16378,14 +16382,14 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, boolean del } /** - * Returns a {@code Flowable} that emits the items from the source {@link Publisher} that were emitted in a specified - * window of time before the {@code Publisher} completed, where the timing information is provided by a specified + * Returns a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in a specified + * window of time before the current {@code Flowable} completed, where the timing information is provided by a specified * {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it) but note that this may * lead to {@link OutOfMemoryError} due to internal buffer bloat. * Consider using {@link #takeLast(long, long, TimeUnit, Scheduler)} in this case.
@@ -16399,9 +16403,10 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, boolean del * the time unit of {@code time} * @param scheduler * the {@code Scheduler} that provides the timestamps for the observed items - * @return a {@code Flowable} that emits the items from the source {@code Publisher} that were emitted in the window of - * time before the {@code Publisher} completed specified by {@code time}, where the timing information is + * @return a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in the window of + * time before the current {@code Flowable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -16413,14 +16418,14 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that emits the items from the source {@link Publisher} that were emitted in a specified - * window of time before the {@code Publisher} completed, where the timing information is provided by a specified + * Returns a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in a specified + * window of time before the current {@code Flowable} completed, where the timing information is provided by a specified * {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it) but note that this may * lead to {@link OutOfMemoryError} due to internal buffer bloat. * Consider using {@link #takeLast(long, long, TimeUnit, Scheduler)} in this case.
@@ -16437,9 +16442,10 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc * @param delayError * if {@code true}, an exception signaled by the current {@code Flowable} is delayed until the regular elements are consumed * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped - * @return a {@code Flowable} that emits the items from the source {@code Publisher} that were emitted in the window of - * time before the {@code Publisher} completed specified by {@code time}, where the timing information is + * @return a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in the window of + * time before the current {@code Flowable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -16451,14 +16457,14 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that emits the items from the source {@link Publisher} that were emitted in a specified - * window of time before the {@code Publisher} completed, where the timing information is provided by a specified + * Returns a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in a specified + * window of time before the current {@code Flowable} completed, where the timing information is provided by a specified * {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., no backpressure is applied to it) but note that this may * lead to {@link OutOfMemoryError} due to internal buffer bloat. * Consider using {@link #takeLast(long, long, TimeUnit, Scheduler)} in this case.
@@ -16477,9 +16483,11 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc * by the downstream; if {@code false}, an exception is immediately signaled and all regular elements dropped * @param bufferSize * the hint about how many elements to expect to be last - * @return a {@code Flowable} that emits the items from the source {@code Publisher} that were emitted in the window of - * time before the {@code Publisher} completed specified by {@code time}, where the timing information is + * @return a {@code Flowable} that emits the items from the current {@code Flowable} that were emitted in the window of + * time before the current {@code Flowable} completed specified by {@code time}, where the timing information is * provided by {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: TakeLast */ @CheckReturnValue @@ -16491,7 +16499,7 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that emits items emitted by the source {@link Publisher}, checks the specified predicate + * Returns a {@code Flowable} that emits items emitted by the current {@code Flowable}, checks the specified predicate * for each item, and then completes when the condition is satisfied. *

* @@ -16508,9 +16516,10 @@ public final Flowable takeLast(long time, @NonNull TimeUnit unit, @NonNull Sc *

* * @param stopPredicate - * a function that evaluates an item emitted by the source {@code Publisher} and returns a {@link Boolean} - * @return a {@code Flowable} that first emits items emitted by the source {@code Publisher}, checks the specified + * a function that evaluates an item emitted by the current {@code Flowable} and returns a {@link Boolean} + * @return a {@code Flowable} that first emits items emitted by the current {@code Flowable}, checks the specified * condition after each item, and then completes when the condition is satisfied. + * @throws NullPointerException if {@code stopPredicate} is {@code null} * @see ReactiveX operators documentation: TakeUntil * @see Flowable#takeWhile(Predicate) * @since 1.1.0 @@ -16525,13 +16534,13 @@ public final Flowable takeUntil(@NonNull Predicate stopPredicate) } /** - * Returns a {@code Flowable} that emits the items emitted by the source {@link Publisher} until a second {@code Publisher} + * Returns a {@code Flowable} that emits the items emitted by the current {@code Flowable} until a second {@link Publisher} * emits an item. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code takeUntil} does not operate by default on a particular {@link Scheduler}.
@@ -16539,10 +16548,11 @@ public final Flowable takeUntil(@NonNull Predicate stopPredicate) * * @param other * the {@code Publisher} whose first emitted item will cause {@code takeUntil} to stop emitting items - * from the source {@code Publisher} + * from the current {@code Flowable} * @param * the type of items emitted by {@code other} - * @return a {@code Flowable} that emits the items emitted by the source {@code Publisher} until such time as {@code other} emits its first item + * @return a {@code Flowable} that emits the items emitted by the current {@code Flowable} until such time as {@code other} emits its first item + * @throws NullPointerException if {@code other} is {@code null} * @see ReactiveX operators documentation: TakeUntil */ @CheckReturnValue @@ -16555,22 +16565,23 @@ public final Flowable takeUntil(@NonNull Publisher other) { } /** - * Returns a {@code Flowable} that emits items emitted by the source {@link Publisher} so long as each item satisfied a + * Returns a {@code Flowable} that emits items emitted by the current {@code Flowable} so long as each item satisfied a * specified condition, and then completes as soon as this condition is not satisfied. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code takeWhile} does not operate by default on a particular {@link Scheduler}.
*
* * @param predicate - * a function that evaluates an item emitted by the source {@code Publisher} and returns a {@link Boolean} - * @return a {@code Flowable} that emits the items from the source {@code Publisher} so long as each item satisfies the + * a function that evaluates an item emitted by the current {@code Flowable} and returns a {@link Boolean} + * @return a {@code Flowable} that emits the items from the current {@code Flowable} so long as each item satisfies the * condition defined by {@code predicate}, then completes + * @throws NullPointerException if {@code predicate} is {@code null} * @see ReactiveX operators documentation: TakeWhile * @see Flowable#takeUntil(Predicate) */ @@ -16584,7 +16595,7 @@ public final Flowable takeWhile(@NonNull Predicate predicate) { } /** - * Returns a {@code Flowable} that emits only the first item emitted by the source {@link Publisher} during sequential + * Returns a {@code Flowable} that emits only the first item emitted by the current {@code Flowable} during sequential * time windows of a specified duration. *

* This differs from {@link #throttleLast} in that this only tracks the passage of time whereas @@ -16603,6 +16614,7 @@ public final Flowable takeWhile(@NonNull Predicate predicate) { * @param unit * the unit of time of {@code windowDuration} * @return a {@code Flowable} that performs the throttle operation + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure */ @@ -16615,7 +16627,7 @@ public final Flowable throttleFirst(long windowDuration, @NonNull TimeUnit un } /** - * Returns a {@code Flowable} that emits only the first item emitted by the source {@link Publisher} during sequential + * Returns a {@code Flowable} that emits only the first item emitted by the current {@code Flowable} during sequential * time windows of a specified duration, where the windows are managed by a specified {@link Scheduler}. *

* This differs from {@link #throttleLast} in that this only tracks the passage of time whereas @@ -16637,6 +16649,7 @@ public final Flowable throttleFirst(long windowDuration, @NonNull TimeUnit un * the {@code Scheduler} to use internally to manage the timers that handle timeout for each * event * @return a {@code Flowable} that performs the throttle operation + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure */ @@ -16651,7 +16664,7 @@ public final Flowable throttleFirst(long skipDuration, @NonNull TimeUnit unit } /** - * Returns a {@code Flowable} that emits only the last item emitted by the source {@link Publisher} during sequential + * Returns a {@code Flowable} that emits only the last item emitted by the current {@code Flowable} during sequential * time windows of a specified duration. *

* This differs from {@link #throttleFirst} in that this ticks along at a scheduled interval whereas @@ -16666,11 +16679,12 @@ public final Flowable throttleFirst(long skipDuration, @NonNull TimeUnit unit *

* * @param intervalDuration - * duration of windows within which the last item emitted by the source {@code Publisher} will be + * duration of windows within which the last item emitted by the current {@code Flowable} will be * emitted * @param unit * the unit of time of {@code intervalDuration} * @return a {@code Flowable} that performs the throttle operation + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #sample(long, TimeUnit) @@ -16684,7 +16698,7 @@ public final Flowable throttleLast(long intervalDuration, @NonNull TimeUnit u } /** - * Returns a {@code Flowable} that emits only the last item emitted by the source {@link Publisher} during sequential + * Returns a {@code Flowable} that emits only the last item emitted by the current {@code Flowable} during sequential * time windows of a specified duration, where the duration is governed by a specified {@link Scheduler}. *

* This differs from {@link #throttleFirst(long, TimeUnit, Scheduler)} in that this ticks along at a scheduled interval whereas @@ -16699,7 +16713,7 @@ public final Flowable throttleLast(long intervalDuration, @NonNull TimeUnit u *

* * @param intervalDuration - * duration of windows within which the last item emitted by the source {@code Publisher} will be + * duration of windows within which the last item emitted by the current {@code Flowable} will be * emitted * @param unit * the unit of time of {@code intervalDuration} @@ -16707,6 +16721,7 @@ public final Flowable throttleLast(long intervalDuration, @NonNull TimeUnit u * the {@code Scheduler} to use internally to manage the timers that handle timeout for each * event * @return a {@code Flowable} that performs the throttle operation + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Sample * @see RxJava wiki: Backpressure * @see #sample(long, TimeUnit, Scheduler) @@ -16745,6 +16760,7 @@ public final Flowable throttleLast(long intervalDuration, @NonNull TimeUnit u * before trying to emit the latest item from upstream again * @param unit the time unit * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} is {@code null} * @since 2.2 * @see #throttleLatest(long, TimeUnit, boolean) * @see #throttleLatest(long, TimeUnit, Scheduler) @@ -16784,6 +16800,7 @@ public final Flowable throttleLatest(long timeout, @NonNull TimeUnit unit) { * a timeout window active or not. If {@code false}, the very last * upstream item is ignored and the flow terminates. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} is {@code null} * @see #throttleLatest(long, TimeUnit, Scheduler, boolean) * @since 2.2 */ @@ -16823,6 +16840,7 @@ public final Flowable throttleLatest(long timeout, @NonNull TimeUnit unit, bo * @param scheduler the {@code Scheduler} where the timed wait and latest item * emission will be performed * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see #throttleLatest(long, TimeUnit, Scheduler, boolean) * @since 2.2 */ @@ -16863,6 +16881,7 @@ public final Flowable throttleLatest(long timeout, @NonNull TimeUnit unit, @N * a timeout window active or not. If {@code false}, the very last * upstream item is ignored and the flow terminates. * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -16876,12 +16895,12 @@ public final Flowable throttleLatest(long timeout, @NonNull TimeUnit unit, @N } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, except that it drops items emitted by the - * source {@code Publisher} that are followed by newer items before a timeout value expires. The timer resets on + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, except that it drops items emitted by the + * current {@code Flowable} that are followed by newer items before a timeout value expires. The timer resets on * each emission (alias to {@link #debounce(long, TimeUnit)}). *

- * Note: If items keep being emitted by the source {@code Publisher} faster than the timeout then no items - * will be emitted by the resulting {@code Publisher}. + * Note: If items keep being emitted by the current {@code Flowable} faster than the timeout then no items + * will be emitted by the resulting {@code Flowable}. *

* *

@@ -16892,13 +16911,14 @@ public final Flowable throttleLatest(long timeout, @NonNull TimeUnit unit, @N *
* * @param timeout - * the length of the window of time that must pass after the emission of an item from the source - * {@code Publisher} in which that {@code Publisher} emits no items in order for the item to be emitted by the - * resulting {@code Publisher} + * the length of the window of time that must pass after the emission of an item from the current + * {@code Flowable} in which it emits no items in order for the item to be emitted by the + * resulting {@code Flowable} * @param unit * the unit of time for the specified {@code timeout} - * @return a {@code Flowable} that filters out items from the source {@code Publisher} that are too quickly followed by + * @return a {@code Flowable} that filters out items from the current {@code Flowable} that are too quickly followed by * newer items + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Debounce * @see RxJava wiki: Backpressure * @see #debounce(long, TimeUnit) @@ -16912,12 +16932,12 @@ public final Flowable throttleWithTimeout(long timeout, @NonNull TimeUnit uni } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, except that it drops items emitted by the - * source {@code Publisher} that are followed by newer items before a timeout value expires on a specified + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, except that it drops items emitted by the + * current {@code Flowable} that are followed by newer items before a timeout value expires on a specified * {@link Scheduler}. The timer resets on each emission (alias to {@link #debounce(long, TimeUnit, Scheduler)}). *

- * Note: If items keep being emitted by the source {@code Publisher} faster than the timeout then no items - * will be emitted by the resulting {@code Publisher}. + * Note: If items keep being emitted by the current {@code Flowable} faster than the timeout then no items + * will be emitted by the resulting {@code Flowable}. *

* *

@@ -16928,16 +16948,17 @@ public final Flowable throttleWithTimeout(long timeout, @NonNull TimeUnit uni *
* * @param timeout - * the length of the window of time that must pass after the emission of an item from the source - * {@code Publisher} in which that {@code Publisher} emits no items in order for the item to be emitted by the - * resulting {@code Publisher} + * the length of the window of time that must pass after the emission of an item from the current + * {@code Flowable} in which it emits no items in order for the item to be emitted by the + * resulting {@code Flowable} * @param unit * the unit of time for the specified {@code timeout} * @param scheduler * the {@code Scheduler} to use internally to manage the timers that handle the timeout for each * item - * @return a {@code Flowable} that filters out items from the source {@code Publisher} that are too quickly followed by + * @return a {@code Flowable} that filters out items from the current {@code Flowable} that are too quickly followed by * newer items + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Debounce * @see RxJava wiki: Backpressure * @see #debounce(long, TimeUnit, Scheduler) @@ -16952,12 +16973,12 @@ public final Flowable throttleWithTimeout(long timeout, @NonNull TimeUnit uni /** * Returns a {@code Flowable} that emits records of the time interval between consecutive items emitted by the - * source {@link Publisher}. + * current {@code Flowable}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timeInterval} does not operate on any particular scheduler but uses the current time @@ -16977,12 +16998,12 @@ public final Flowable> timeInterval() { /** * Returns a {@code Flowable} that emits records of the time interval between consecutive items emitted by the - * source {@link Publisher}, where this interval is computed on a specified {@link Scheduler}. + * current {@code Flowable}, where this interval is computed on a specified {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timeInterval} does not operate on any particular scheduler but uses the current time @@ -16992,6 +17013,7 @@ public final Flowable> timeInterval() { * @param scheduler * the {@code Scheduler} used to compute time intervals * @return a {@code Flowable} that emits time interval information items + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TimeInterval */ @CheckReturnValue @@ -17004,12 +17026,12 @@ public final Flowable> timeInterval(@NonNull Scheduler scheduler) { /** * Returns a {@code Flowable} that emits records of the time interval between consecutive items emitted by the - * source {@link Publisher}. + * current {@code Flowable}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timeInterval} does not operate on any particular scheduler but uses the current time @@ -17018,6 +17040,7 @@ public final Flowable> timeInterval(@NonNull Scheduler scheduler) { * * @param unit the time unit for the current time * @return a {@code Flowable} that emits time interval information items + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: TimeInterval */ @CheckReturnValue @@ -17030,12 +17053,12 @@ public final Flowable> timeInterval(@NonNull TimeUnit unit) { /** * Returns a {@code Flowable} that emits records of the time interval between consecutive items emitted by the - * source {@link Publisher}, where this interval is computed on a specified {@link Scheduler}. + * current {@code Flowable}, where this interval is computed on a specified {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timeInterval} does not operate on any particular scheduler but uses the current time @@ -17046,6 +17069,7 @@ public final Flowable> timeInterval(@NonNull TimeUnit unit) { * @param scheduler * the {@code Scheduler} used to compute time intervals * @return a {@code Flowable} that emits time interval information items + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: TimeInterval */ @CheckReturnValue @@ -17059,9 +17083,9 @@ public final Flowable> timeInterval(@NonNull TimeUnit unit, @NonNull Sc } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, but notifies {@link Subscriber}s of a - * {@link TimeoutException} if an item emitted by the source {@code Publisher} doesn't arrive within a window of - * time after the emission of the previous item, where that period of time is measured by a {@code Publisher} that + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, but notifies {@link Subscriber}s of a + * {@link TimeoutException} if an item emitted by the current {@code Flowable} doesn't arrive within a window of + * time after the emission of the previous item, where that period of time is measured by a {@link Publisher} that * is a function of the previous item. *

* @@ -17071,8 +17095,8 @@ public final Flowable> timeInterval(@NonNull TimeUnit unit, @NonNull Sc *

Backpressure:
*
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. - * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * If any of the current {@code Flowable}s violate this, it may throw an + * {@link IllegalStateException} when the current {@code Flowable} completes.
*
Scheduler:
*
This version of {@code timeout} operates by default on the {@code immediate} {@link Scheduler}.
*
@@ -17080,11 +17104,12 @@ public final Flowable> timeInterval(@NonNull TimeUnit unit, @NonNull Sc * @param * the timeout value type (ignored) * @param itemTimeoutIndicator - * a function that returns a {@code Publisher} for each item emitted by the source - * {@code Publisher} and that determines the timeout window for the subsequent item - * @return a {@code Flowable} that mirrors the source {@code Publisher}, but notifies {@code Subscriber}s of a - * {@code TimeoutException} if an item emitted by the source {@code Publisher} takes longer to arrive than + * a function that returns a {@code Publisher} for each item emitted by the current + * {@code Flowable} and that determines the timeout window for the subsequent item + * @return a {@code Flowable} that mirrors the current {@code Flowable}, but notifies {@code Subscriber}s of a + * {@code TimeoutException} if an item emitted by the current {@code Flowable} takes longer to arrive than * the time window defined by the selector for the previously emitted item + * @throws NullPointerException if {@code itemTimeoutIndicator} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17096,8 +17121,8 @@ public final Flowable timeout(@NonNull Function @@ -17108,8 +17133,8 @@ public final Flowable timeout(@NonNull FunctionBackpressure: *
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. - * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * If any of the current {@code Flowable}s violate this, it may throw an + * {@link IllegalStateException} when the current {@code Flowable} completes.
*
Scheduler:
*
This version of {@code timeout} operates by default on the {@code immediate} {@link Scheduler}.
*
@@ -17117,13 +17142,14 @@ public final Flowable timeout(@NonNull Function * the timeout value type (ignored) * @param itemTimeoutIndicator - * a function that returns a {@code Publisher}, for each item emitted by the source {@code Publisher}, that + * a function that returns a {@code Publisher}, for each item emitted by the current {@code Flowable}, that * determines the timeout window for the subsequent item * @param other - * the fallback {@code Publisher} to switch to if the source {@code Publisher} times out - * @return a {@code Flowable} that mirrors the source {@code Publisher}, but switches to mirroring a fallback {@code Publisher} - * if an item emitted by the source {@code Publisher} takes longer to arrive than the time window defined + * the fallback {@code Publisher} to switch to if the current {@code Flowable} times out + * @return a {@code Flowable} that mirrors the current {@code Flowable}, but switches to mirroring a fallback {@code Publisher} + * if an item emitted by the current {@code Flowable} takes longer to arrive than the time window defined * by the selector for the previously emitted item + * @throws NullPointerException if {@code itemTimeoutIndicator} or {@code other} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17136,14 +17162,14 @@ public final Flowable timeout(@NonNull Function * *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This version of {@code timeout} operates by default on the {@code computation} {@link Scheduler}.
@@ -17153,8 +17179,9 @@ public final Flowable timeout(@NonNull FunctionReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17166,17 +17193,17 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher} but applies a timeout policy for each emitted + * Returns a {@code Flowable} that mirrors the current {@code Flowable} but applies a timeout policy for each emitted * item. If the next item isn't emitted within the specified timeout duration starting from its predecessor, - * the source {@code Publisher} is disposed and resulting {@code Publisher} begins instead to mirror a fallback {@code Publisher}. + * the current {@code Flowable} is disposed and the resulting {@code Flowable} begins instead to mirror a fallback {@link Publisher}. *

* *

*
Backpressure:
*
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. - * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * If any of the current {@code Flowable}s violate this, it may throw an + * {@link IllegalStateException} when the current {@code Flowable} completes.
*
Scheduler:
*
This version of {@code timeout} operates by default on the {@code computation} {@link Scheduler}.
*
@@ -17187,7 +17214,8 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit) { * the unit of time that applies to the {@code timeout} argument * @param other * the fallback {@code Publisher} to use in case of a timeout - * @return the source {@code Publisher} modified to switch to the fallback {@code Publisher} in case of a timeout + * @return the current {@code Flowable} modified to switch to the fallback {@code Publisher} in case of a timeout + * @throws NullPointerException if {@code unit} or {@code other} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17200,18 +17228,18 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher} but applies a timeout policy for each emitted + * Returns a {@code Flowable} that mirrors the current {@code Flowable} but applies a timeout policy for each emitted * item using a specified {@link Scheduler}. If the next item isn't emitted within the specified timeout duration - * starting from its predecessor, the source {@code Publisher} is disposed and resulting {@code Publisher} begins - * instead to mirror a fallback {@code Publisher}. + * starting from its predecessor, the current {@code Flowable} is disposed and the resulting {@code Flowable} begins + * instead to mirror a fallback {@link Publisher}. *

* *

*
Backpressure:
*
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. - * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * If any of the current {@code Flowable}s violate this, it may throw an + * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
*
@@ -17224,8 +17252,9 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull * the {@code Scheduler} to run the timeout timers on * @param other * the {@code Publisher} to use as the fallback in case of a timeout - * @return the source {@code Publisher} modified so that it will switch to the fallback {@code Publisher} in case of a + * @return the current {@code Flowable} modified so that it will switch to the fallback {@code Publisher} in case of a * timeout + * @throws NullPointerException if {@code unit}, {@code scheduler} or {@code other} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17238,15 +17267,15 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher} but applies a timeout policy for each emitted + * Returns a {@code Flowable} that mirrors the current {@code Flowable} but applies a timeout policy for each emitted * item, where this policy is governed by a specified {@link Scheduler}. If the next item isn't emitted within the - * specified timeout duration starting from its predecessor, the resulting {@code Publisher} terminates and + * specified timeout duration starting from its predecessor, the resulting {@code Flowable} terminates and * notifies {@link Subscriber}s of a {@link TimeoutException}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
@@ -17258,8 +17287,9 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull * the unit of time that applies to the {@code timeout} argument * @param scheduler * the {@code Scheduler} to run the timeout timers on - * @return the source {@code Publisher} modified to notify {@code Subscriber}s of a {@code TimeoutException} in case of a + * @return the current {@code Flowable} modified to notify {@code Subscriber}s of a {@code TimeoutException} in case of a * timeout + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17271,9 +17301,9 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, but notifies {@link Subscriber}s of a - * {@link TimeoutException} if either the first item emitted by the source {@code Publisher} or any subsequent item - * doesn't arrive within time windows defined by other {@code Publisher}s. + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, but notifies {@link Subscriber}s of a + * {@link TimeoutException} if either the first item emitted by the current {@code Flowable} or any subsequent item + * doesn't arrive within time windows defined by other {@link Publisher}s. *

* *

@@ -17293,12 +17323,13 @@ public final Flowable timeout(long timeout, @NonNull TimeUnit unit, @NonNull * a function that returns a {@code Publisher} that determines the timeout window for the first source * item * @param itemTimeoutIndicator - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} and that + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} and that * determines the timeout window in which the subsequent source item must arrive in order to * continue the sequence - * @return a {@code Flowable} that mirrors the source {@code Publisher}, but notifies {@code Subscriber}s of a + * @return a {@code Flowable} that mirrors the current {@code Flowable}, but notifies {@code Subscriber}s of a * {@code TimeoutException} if either the first item or any subsequent item doesn't arrive within * the time windows specified by the timeout selectors + * @throws NullPointerException if {@code firstTimeoutIndicator} or {@code itemTimeoutIndicator} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17312,8 +17343,8 @@ public final Flowable timeout(@NonNull Publisher firstTimeoutIndica } /** - * Returns a {@code Flowable} that mirrors the source {@link Publisher}, but switches to a fallback {@code Publisher} if either - * the first item emitted by the source {@code Publisher} or any subsequent item doesn't arrive within time windows + * Returns a {@code Flowable} that mirrors the current {@code Flowable}, but switches to a fallback {@link Publisher} if either + * the first item emitted by the current {@code Flowable} or any subsequent item doesn't arrive within time windows * defined by other {@code Publisher}s. *

* @@ -17321,8 +17352,8 @@ public final Flowable timeout(@NonNull Publisher firstTimeoutIndica *

Backpressure:
*
The operator honors backpressure from downstream. The {@code Publisher} * sources are expected to honor backpressure as well. - * If any of the source {@code Publisher}s violate this, it may throw an - * {@link IllegalStateException} when the source {@code Publisher} completes.
+ * If any of the current {@code Flowable}s violate this, it may throw an + * {@link IllegalStateException} when the current {@code Flowable} completes. *
Scheduler:
*
{@code timeout} does not operate by default on any {@link Scheduler}.
*
@@ -17335,16 +17366,15 @@ public final Flowable timeout(@NonNull Publisher firstTimeoutIndica * a function that returns a {@code Publisher} which determines the timeout window for the first source * item * @param itemTimeoutIndicator - * a function that returns a {@code Publisher} for each item emitted by the source {@code Publisher} and that + * a function that returns a {@code Publisher} for each item emitted by the current {@code Flowable} and that * determines the timeout window in which the subsequent source item must arrive in order to * continue the sequence * @param other - * the fallback {@code Publisher} to switch to if the source {@code Publisher} times out - * @return a {@code Flowable} that mirrors the source {@code Publisher}, but switches to the {@code other} {@code Publisher} if - * either the first item emitted by the source {@code Publisher} or any subsequent item doesn't arrive + * the fallback {@code Publisher} to switch to if the current {@code Flowable} times out + * @return a {@code Flowable} that mirrors the current {@code Flowable}, but switches to the {@code other} {@code Publisher} if + * either the first item emitted by the current {@code Flowable} or any subsequent item doesn't arrive * within time windows defined by the timeout selectors - * @throws NullPointerException - * if {@code itemTimeoutIndicator} is {@code null} + * @throws NullPointerException if {@code firstTimeoutIndicator}, {@code itemTimeoutIndicator} or {@code other} is {@code null} * @see ReactiveX operators documentation: Timeout */ @CheckReturnValue @@ -17376,20 +17406,20 @@ private Flowable timeout0( } /** - * Returns a {@code Flowable} that emits each item emitted by the source {@link Publisher}, wrapped in a + * Returns a {@code Flowable} that emits each item emitted by the current {@code Flowable}, wrapped in a * {@link Timed} object. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timestamp} does not operate on any particular scheduler but uses the current time * from the {@code computation} {@link Scheduler}.
*
* - * @return a {@code Flowable} that emits timestamped items from the source {@code Publisher} + * @return a {@code Flowable} that emits timestamped items from the current {@code Flowable} * @see ReactiveX operators documentation: Timestamp */ @CheckReturnValue @@ -17401,13 +17431,13 @@ public final Flowable> timestamp() { } /** - * Returns a {@code Flowable} that emits each item emitted by the source {@link Publisher}, wrapped in a + * Returns a {@code Flowable} that emits each item emitted by the current {@code Flowable}, wrapped in a * {@link Timed} object whose timestamps are provided by a specified {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This operator does not operate on any particular scheduler but uses the current time @@ -17416,8 +17446,9 @@ public final Flowable> timestamp() { * * @param scheduler * the {@code Scheduler} to use as a time source - * @return a {@code Flowable} that emits timestamped items from the source {@code Publisher} with timestamps provided by + * @return a {@code Flowable} that emits timestamped items from the current {@code Flowable} with timestamps provided by * the {@code scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timestamp */ @CheckReturnValue @@ -17429,13 +17460,13 @@ public final Flowable> timestamp(@NonNull Scheduler scheduler) { } /** - * Returns a {@code Flowable} that emits each item emitted by the source {@link Publisher}, wrapped in a + * Returns a {@code Flowable} that emits each item emitted by the current {@code Flowable}, wrapped in a * {@link Timed} object. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
{@code timestamp} does not operate on any particular scheduler but uses the current time @@ -17443,7 +17474,8 @@ public final Flowable> timestamp(@NonNull Scheduler scheduler) { *
* * @param unit the time unit for the current time - * @return a {@code Flowable} that emits timestamped items from the source {@code Publisher} + * @return a {@code Flowable} that emits timestamped items from the current {@code Flowable} + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Timestamp */ @CheckReturnValue @@ -17455,13 +17487,13 @@ public final Flowable> timestamp(@NonNull TimeUnit unit) { } /** - * Returns a {@code Flowable} that emits each item emitted by the source {@link Publisher}, wrapped in a + * Returns a {@code Flowable} that emits each item emitted by the current {@code Flowable}, wrapped in a * {@link Timed} object whose timestamps are provided by a specified {@link Scheduler}. *

* *

*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
This operator does not operate on any particular scheduler but uses the current time @@ -17471,8 +17503,9 @@ public final Flowable> timestamp(@NonNull TimeUnit unit) { * @param unit the time unit for the current time * @param scheduler * the {@code Scheduler} to use as a time source - * @return a {@code Flowable} that emits timestamped items from the source {@code Publisher} with timestamps provided by + * @return a {@code Flowable} that emits timestamped items from the current {@code Flowable} with timestamps provided by * the {@code scheduler} + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Timestamp */ @CheckReturnValue @@ -17499,7 +17532,7 @@ public final Flowable> timestamp(@NonNull TimeUnit unit, @NonNull Sched * @param the resulting object type * @param converter the function that receives the current {@code Flowable} instance and returns a value * @return the converted value - * @throws NullPointerException if converter is {@code null} + * @throws NullPointerException if {@code converter} is {@code null} * @since 2.2 */ @CheckReturnValue @@ -17526,14 +17559,14 @@ public final R to(@NonNull FlowableConverter converter) { * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toList} does not operate by default on a particular {@link Scheduler}.
*
* - * @return a {@code Single} that emits a single item: a {@link List} containing all of the items emitted by the source - * {@code Publisher} + * @return a {@code Single} that emits a single item: a {@link List} containing all of the items emitted by the current + * {@code Flowable} * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17561,7 +17594,7 @@ public final Single> toList() { * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toList} does not operate by default on a particular {@link Scheduler}.
@@ -17569,8 +17602,9 @@ public final Single> toList() { * * @param capacityHint * the number of elements expected from the current {@code Flowable} - * @return a {@code Single} that emits a single item: a {@link List} containing all of the items emitted by the source - * {@code Publisher} + * @return a {@code Single} that emits a single item: a {@link List} containing all of the items emitted by the current + * {@code Flowable} + * @throws IllegalArgumentException if {@code capacityHint} is non-positive * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17599,7 +17633,7 @@ public final Single> toList(int capacityHint) { * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toList} does not operate by default on a particular {@link Scheduler}.
@@ -17608,8 +17642,9 @@ public final Single> toList(int capacityHint) { * @param the subclass of a collection of Ts * @param collectionSupplier * the {@link Supplier} returning the collection (for each individual {@code Subscriber}) to be filled in - * @return a {@code Single} that emits a single item: a {@link Collection} (subclass) containing all of the items emitted by the source - * {@code Publisher} + * @return a {@code Single} that emits a single item: a {@link Collection} (subclass) containing all of the items emitted by the current + * {@code Flowable} + * @throws NullPointerException if {@code collectionSupplier} is {@code null} * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17634,7 +17669,7 @@ public final > Single toList(@NonNull Supplie * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMap} does not operate by default on a particular {@link Scheduler}.
@@ -17643,8 +17678,9 @@ public final > Single toList(@NonNull Supplie * @param the key type of the Map * @param keySelector * the function that extracts the key from a source item to be used in the {@code HashMap} - * @return a {@code Single} that emits a single item: a {@code HashMap} containing the mapped items from the source - * {@code Publisher} + * @return a {@code Single} that emits a single item: a {@code HashMap} containing the mapped items from the current + * {@code Flowable} + * @throws NullPointerException if {@code keySelector} is {@code null} * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17670,7 +17706,7 @@ public final Single> toMap(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMap} does not operate by default on a particular {@link Scheduler}.
@@ -17682,8 +17718,9 @@ public final Single> toMap(@NonNull FunctionReactiveX operators documentation: To */ @CheckReturnValue @@ -17707,7 +17744,7 @@ public final Single> toMap(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMap} does not operate by default on a particular {@link Scheduler}.
@@ -17722,7 +17759,8 @@ public final Single> toMap(@NonNull FunctionReactiveX operators documentation: To */ @CheckReturnValue @@ -17757,7 +17795,8 @@ public final Single> toMap(@NonNull FunctionReactiveX operators documentation: To */ @CheckReturnValue @@ -17783,7 +17822,7 @@ public final Single>> toMultimap(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMultimap} does not operate by default on a particular {@link Scheduler}.
@@ -17796,7 +17835,8 @@ public final Single>> toMultimap(@NonNull FunctionReactiveX operators documentation: To */ @CheckReturnValue @@ -17821,7 +17861,7 @@ public final Single>> toMultimap(@NonNull Function *
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMultimap} does not operate by default on a particular {@link Scheduler}.
@@ -17838,7 +17878,8 @@ public final Single>> toMultimap(@NonNull FunctionReactiveX operators documentation: To */ @CheckReturnValue @@ -17869,7 +17910,7 @@ public final Single>> toMultimap( * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toMultimap} does not operate by default on a particular {@link Scheduler}.
@@ -17883,8 +17924,9 @@ public final Single>> toMultimap( * the function that extracts a value from the source items to be used as the value in the {@code Map} * @param mapSupplier * the function that returns a {@code Map} instance to be used - * @return a {@code Single} that emits a single item: a {@code Map} that contains a list items mapped from the source - * {@code Publisher} + * @return a {@code Single} that emits a single item: a {@code Map} that contains a list items mapped from the current + * {@code Flowable} + * @throws NullPointerException if {@code keySelector}, {@code valueSelector} or {@code mapSupplier} is {@code null} * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17935,12 +17977,12 @@ public final Observable toObservable() { * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toSortedList} does not operate by default on a particular {@link Scheduler}.
*
- * @return a {@code Single} that emits a {@code List} that contains the items emitted by the source {@code Publisher} in + * @return a {@code Single} that emits a {@code List} that contains the items emitted by the current {@code Flowable} in * sorted order * @see ReactiveX operators documentation: To */ @@ -17963,17 +18005,18 @@ public final Single> toSortedList() { * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toSortedList} does not operate by default on a particular {@link Scheduler}.
*
* * @param comparator - * a function that compares two items emitted by the source {@code Publisher} and returns an {@code int} + * a function that compares two items emitted by the current {@code Flowable} and returns an {@code int} * that indicates their sort order - * @return a {@code Single} that emits a {@code List} that contains the items emitted by the source {@code Publisher} in + * @return a {@code Single} that emits a {@code List} that contains the items emitted by the current {@code Flowable} in * sorted order + * @throws NullPointerException if {@code comparator} is {@code null} * @see ReactiveX operators documentation: To */ @CheckReturnValue @@ -17996,19 +18039,21 @@ public final Single> toSortedList(@NonNull Comparator compara * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toSortedList} does not operate by default on a particular {@link Scheduler}.
*
* * @param comparator - * a function that compares two items emitted by the source {@code Publisher} and returns an {@code int} + * a function that compares two items emitted by the current {@code Flowable} and returns an {@code int} * that indicates their sort order * @param capacityHint * the initial capacity of the {@link ArrayList} used to accumulate items before sorting - * @return a {@code Single} that emits a {@code List} that contains the items emitted by the source {@code Publisher} in + * @return a {@code Single} that emits a {@code List} that contains the items emitted by the current {@code Flowable} in * sorted order + * @throws NullPointerException if {@code comparator} is {@code null} + * @throws IllegalArgumentException if {@code capacityHint} is non-positive * @see ReactiveX operators documentation: To * @since 2.0 */ @@ -18037,7 +18082,7 @@ public final Single> toSortedList(@NonNull Comparator compara * operator and an infinite source may lead to a fatal {@link OutOfMemoryError}. *
*
Backpressure:
- *
The operator honors backpressure from downstream and consumes the source {@code Publisher} in an + *
The operator honors backpressure from downstream and consumes the current {@code Flowable} in an * unbounded manner (i.e., without applying backpressure to it).
*
Scheduler:
*
{@code toSortedList} does not operate by default on a particular {@link Scheduler}.
@@ -18045,8 +18090,9 @@ public final Single> toSortedList(@NonNull Comparator compara * * @param capacityHint * the initial capacity of the {@link ArrayList} used to accumulate items before sorting - * @return a {@code Single} that emits a {@code List} that contains the items emitted by the source {@code Publisher} in + * @return a {@code Single} that emits a {@code List} that contains the items emitted by the current {@code Flowable} in * sorted order + * @throws IllegalArgumentException if {@code capacityHint} is non-positive * @see ReactiveX operators documentation: To * @since 2.0 */ @@ -18059,11 +18105,11 @@ public final Single> toSortedList(int capacityHint) { } /** - * Modifies the source {@link Publisher} so that subscribers will cancel it on a specified + * Modifies the current {@code Flowable} so that subscribers will cancel it on a specified * {@link Scheduler}. *
*
Backpressure:
- *
The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s backpressure + *
The operator doesn't interfere with backpressure which is determined by the current {@code Flowable}'s backpressure * behavior.
*
Scheduler:
*
You specify which {@code Scheduler} this operator will use.
@@ -18071,8 +18117,9 @@ public final Single> toSortedList(int capacityHint) { * * @param scheduler * the {@code Scheduler} to perform cancellation actions on - * @return the source {@code Publisher} modified so that its cancellations happen on the specified + * @return the current {@code Flowable} modified so that its cancellations happen on the specified * {@code Scheduler} + * @throws NullPointerException if {@code scheduler} is {@code null} * @see ReactiveX operators documentation: SubscribeOn */ @CheckReturnValue @@ -18085,10 +18132,10 @@ public final Flowable unsubscribeOn(@NonNull Scheduler scheduler) { } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each containing {@code count} items. When the source - * {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the current window and - * propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each containing {@code count} items. When the current + * {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the current window and + * propagates the notification from the current {@code Flowable}. *

* *

@@ -18097,7 +18144,7 @@ public final Flowable unsubscribeOn(@NonNull Scheduler scheduler) { * a trade-off between no-dataloss and ensuring upstream cancellation can happen. *

*
Backpressure:
- *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Publisher} uses an + *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Flowable} uses an * unbounded buffer that may hold at most {@code count} elements.
*
Scheduler:
*
This version of {@code window} does not operate by default on a particular {@link Scheduler}.
@@ -18106,8 +18153,8 @@ public final Flowable unsubscribeOn(@NonNull Scheduler scheduler) { * @param count * the maximum size of each window before it should be emitted * @return a {@code Flowable} that emits connected, non-overlapping windows, each containing at most - * {@code count} items from the source {@code Publisher} - * @throws IllegalArgumentException if either count is non-positive + * {@code count} items from the current {@code Flowable} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18119,10 +18166,10 @@ public final Flowable> window(long count) { } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits windows every {@code skip} items, each containing no more than {@code count} items. When - * the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the current window - * and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits windows every {@code skip} items, each containing no more than {@code count} items. When + * the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the current window + * and propagates the notification from the current {@code Flowable}. *

* *

@@ -18132,7 +18179,7 @@ public final Flowable> window(long count) { * a trade-off between no-dataloss and ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Publisher} uses an + *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Flowable} uses an * unbounded buffer that may hold at most {@code count} elements.
*
Scheduler:
*
This version of {@code window} does not operate by default on a particular {@link Scheduler}.
@@ -18144,8 +18191,8 @@ public final Flowable> window(long count) { * how many items need to be skipped before starting a new window. Note that if {@code skip} and * {@code count} are equal this is the same operation as {@link #window(long)}. * @return a {@code Flowable} that emits windows every {@code skip} items containing at most {@code count} items - * from the source {@code Publisher} - * @throws IllegalArgumentException if either count or skip is non-positive + * from the current {@code Flowable} + * @throws IllegalArgumentException if {@code count} or {@code skip} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18157,10 +18204,10 @@ public final Flowable> window(long count, long skip) { } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits windows every {@code skip} items, each containing no more than {@code count} items. When - * the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the current window - * and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits windows every {@code skip} items, each containing no more than {@code count} items. When + * the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the current window + * and propagates the notification from the current {@code Flowable}. *

* *

@@ -18170,7 +18217,7 @@ public final Flowable> window(long count, long skip) { * a trade-off between no-dataloss and ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Publisher} uses an + *
The operator honors backpressure of its inner and outer subscribers, however, the inner {@code Flowable} uses an * unbounded buffer that may hold at most {@code count} elements.
*
Scheduler:
*
This version of {@code window} does not operate by default on a particular {@link Scheduler}.
@@ -18184,7 +18231,7 @@ public final Flowable> window(long count, long skip) { * @param bufferSize * the capacity hint for the buffer in the inner windows * @return a {@code Flowable} that emits windows every {@code skip} items containing at most {@code count} items - * from the source {@code Publisher} + * from the current {@code Flowable} * @throws IllegalArgumentException if {@code count}, {@code skip} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @@ -18200,11 +18247,11 @@ public final Flowable> window(long count, long skip, int bufferSize) } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new window periodically, as determined by the {@code timeskip} argument. It emits - * each window after a fixed timespan, specified by the {@code timespan} argument. When the source - * {@code Publisher} completes or {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new window periodically, as determined by the {@code timeskip} argument. It emits + * each window after a fixed timespan, specified by the {@code timespan} argument. When the current + * {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18214,9 +18261,9 @@ public final Flowable> window(long count, long skip, int bufferSize) * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure but have an unbounded inner buffer that may lead to {@link OutOfMemoryError} * if left unconsumed.
*
Scheduler:
@@ -18230,6 +18277,7 @@ public final Flowable> window(long count, long skip, int bufferSize) * @param unit * the unit of time that applies to the {@code timespan} and {@code timeskip} arguments * @return a {@code Flowable} that emits new windows periodically as a fixed timespan elapses + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18241,11 +18289,11 @@ public final Flowable> window(long timespan, long timeskip, @NonNull } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new window periodically, as determined by the {@code timeskip} argument. It emits - * each window after a fixed timespan, specified by the {@code timespan} argument. When the source - * {@code Publisher} completes or {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new window periodically, as determined by the {@code timeskip} argument. It emits + * each window after a fixed timespan, specified by the {@code timespan} argument. When the current + * {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18255,9 +18303,9 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The returned inner {@code Flowable}s honor * backpressure but have an unbounded inner buffer that may lead to {@link OutOfMemoryError} * if left unconsumed.
*
Scheduler:
@@ -18273,6 +18321,7 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * @param scheduler * the {@code Scheduler} to use when determining the end and start of a window * @return a {@code Flowable} that emits new windows periodically as a fixed timespan elapses + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18284,11 +18333,11 @@ public final Flowable> window(long timespan, long timeskip, @NonNull } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} starts a new window periodically, as determined by the {@code timeskip} argument. It emits - * each window after a fixed timespan, specified by the {@code timespan} argument. When the source - * {@code Publisher} completes or {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} starts a new window periodically, as determined by the {@code timeskip} argument. It emits + * each window after a fixed timespan, specified by the {@code timespan} argument. When the current + * {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18298,9 +18347,9 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The returned inner {@code Flowable}s honor * backpressure but have an unbounded inner buffer that may lead to {@link OutOfMemoryError} * if left unconsumed.
*
Scheduler:
@@ -18318,6 +18367,7 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * @param bufferSize * the capacity hint for the buffer in the inner windows * @return a {@code Flowable} that emits new windows periodically as a fixed timespan elapses + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code timespan}, {@code timeskip} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @@ -18335,10 +18385,10 @@ public final Flowable> window(long timespan, long timeskip, @NonNull } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration specified by the - * {@code timespan} argument. When the source {@code Publisher} completes or encounters an error, the resulting - * {@code Publisher} emits the current window and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration specified by the + * {@code timespan} argument. When the current {@code Flowable} completes or encounters an error, the resulting + * {@code Flowable} emits the current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18348,9 +18398,9 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
This version of {@code window} operates by default on the {@code computation} {@link Scheduler}.
@@ -18362,7 +18412,8 @@ public final Flowable> window(long timespan, long timeskip, @NonNull * @param unit * the unit of time that applies to the {@code timespan} argument * @return a {@code Flowable} that emits connected, non-overlapping windows representing items emitted by the - * source {@code Publisher} during fixed, consecutive durations + * current {@code Flowable} during fixed, consecutive durations + * @throws NullPointerException if {@code unit} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18374,11 +18425,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit) } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration as specified by the + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration as specified by the * {@code timespan} argument or a maximum size as specified by the {@code count} argument (whichever is - * reached first). When the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} - * emits the current window and propagates the notification from the source {@code Publisher}. + * reached first). When the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} + * emits the current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18388,9 +18439,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit) * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
This version of {@code window} operates by default on the {@code computation} {@link Scheduler}.
@@ -18403,9 +18454,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit) * the unit of time that applies to the {@code timespan} argument * @param count * the maximum size of each window before it should be emitted - * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} + * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the current {@code Flowable} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18418,11 +18471,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration as specified by the + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration as specified by the * {@code timespan} argument or a maximum size as specified by the {@code count} argument (whichever is - * reached first). When the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} - * emits the current window and propagates the notification from the source {@code Publisher}. + * reached first). When the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} + * emits the current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18432,9 +18485,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
This version of {@code window} operates by default on the {@code computation} {@link Scheduler}.
@@ -18449,9 +18502,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * the maximum size of each window before it should be emitted * @param restart * if {@code true}, when a window reaches the capacity limit, the timer is restarted as well - * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} + * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the current {@code Flowable} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws NullPointerException if {@code unit} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18464,10 +18519,10 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration as specified by the - * {@code timespan} argument. When the source {@code Publisher} completes or encounters an error, the resulting - * {@code Publisher} emits the current window and propagates the notification from the source {@code Publisher}. + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration as specified by the + * {@code timespan} argument. When the current {@code Flowable} completes or encounters an error, the resulting + * {@code Flowable} emits the current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18477,9 +18532,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure but have an unbounded inner buffer that may lead to {@link OutOfMemoryError} * if left unconsumed.
*
Scheduler:
@@ -18494,7 +18549,8 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * @param scheduler * the {@code Scheduler} to use when determining the end and start of a window * @return a {@code Flowable} that emits connected, non-overlapping windows containing items emitted by the - * source {@code Publisher} within a fixed duration + * current {@code Flowable} within a fixed duration + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18507,11 +18563,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration specified by the * {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached - * first). When the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * first). When the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18521,9 +18577,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
@@ -18538,9 +18594,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * the maximum size of each window before it should be emitted * @param scheduler * the {@code Scheduler} to use when determining the end and start of a window - * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} + * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the current {@code Flowable} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18553,11 +18611,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration specified by the * {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached - * first). When the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * first). When the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18567,9 +18625,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
@@ -18586,9 +18644,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * the {@code Scheduler} to use when determining the end and start of a window * @param restart * if {@code true}, when a window reaches the capacity limit, the timer is restarted as well - * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} + * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the current {@code Flowable} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} + * @throws IllegalArgumentException if {@code count} is non-positive * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18601,11 +18661,11 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits connected, non-overlapping windows, each of a fixed duration specified by the + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits connected, non-overlapping windows, each of a fixed duration specified by the * {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached - * first). When the source {@code Publisher} completes or encounters an error, the resulting {@code Publisher} emits the - * current window and propagates the notification from the source {@code Publisher}. + * first). When the current {@code Flowable} completes or encounters an error, the resulting {@code Flowable} emits the + * current window and propagates the notification from the current {@code Flowable}. *

* *

@@ -18615,9 +18675,9 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * a trade-off for ensuring upstream cancellation can happen under some race conditions. *

*
Backpressure:
- *
The operator consumes the source {@code Publisher} in an unbounded manner. - * The returned {@code Publisher} doesn't support backpressure as it uses - * time to control the creation of windows. The returned inner {@code Publisher}s honor + *
The operator consumes the current {@code Flowable} in an unbounded manner. + * The resulting {@code Flowable} doesn't support backpressure as it uses + * time to control the creation of windows. The emitted inner {@code Flowable}s honor * backpressure and may hold up to {@code count} elements at most.
*
Scheduler:
*
You specify which {@link Scheduler} this operator will use.
@@ -18636,9 +18696,10 @@ public final Flowable> window(long timespan, @NonNull TimeUnit unit, * if {@code true}, when a window reaches the capacity limit, the timer is restarted as well * @param bufferSize * the capacity hint for the buffer in the inner windows - * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the source {@code Publisher} + * @return a {@code Flowable} that emits connected, non-overlapping windows of items from the current {@code Flowable} * that were emitted during a fixed duration of time or when the window has reached maximum capacity * (whichever occurs first) + * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null} * @throws IllegalArgumentException if {@code count}, {@code timespan} or {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @@ -18657,9 +18718,9 @@ public final Flowable> window( } /** - * Returns a {@code Flowable} that emits non-overlapping windows of items it collects from the source {@link Publisher} + * Returns a {@code Flowable} that emits non-overlapping windows of items it collects from the current {@code Flowable} * where the boundary of each window is determined by the items emitted from a specified boundary-governing - * {@code Publisher}. + * {@link Publisher}. *

* *

@@ -18679,9 +18740,10 @@ public final Flowable> window( * the window element type (ignored) * @param boundaryIndicator * a {@code Publisher} whose emitted items close and open windows - * @return a {@code Flowable} that emits non-overlapping windows of items it collects from the source {@code Publisher} + * @return a {@code Flowable} that emits non-overlapping windows of items it collects from the current {@code Flowable} * where the boundary of each window is determined by the items emitted from the {@code boundary} * {@code Publisher} + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18693,9 +18755,9 @@ public final Flowable> window(@NonNull Publisher boundaryIndi } /** - * Returns a {@code Flowable} that emits non-overlapping windows of items it collects from the source {@link Publisher} + * Returns a {@code Flowable} that emits non-overlapping windows of items it collects from the current {@code Flowable} * where the boundary of each window is determined by the items emitted from a specified boundary-governing - * {@code Publisher}. + * {@link Publisher}. *

* *

@@ -18717,9 +18779,10 @@ public final Flowable> window(@NonNull Publisher boundaryIndi * a {@code Publisher} whose emitted items close and open windows * @param bufferSize * the capacity hint for the buffer in the inner windows - * @return a {@code Flowable} that emits non-overlapping windows of items it collects from the source {@code Publisher} + * @return a {@code Flowable} that emits non-overlapping windows of items it collects from the current {@code Flowable} * where the boundary of each window is determined by the items emitted from the {@code boundary} * {@code Publisher} + * @throws NullPointerException if {@code boundaryIndicator} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @@ -18734,9 +18797,9 @@ public final Flowable> window(@NonNull Publisher boundaryIndi } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits windows that contain those items emitted by the source {@code Publisher} between the time when - * the {@code windowOpenings} {@code Publisher} emits an item and when the {@code Publisher} returned by + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits windows that contain those items emitted by the current {@code Flowable} between the time when + * the {@code windowOpenings} {@link Publisher} emits an item and when the {@code Publisher} returned by * {@code closingSelector} emits an item. *

* @@ -18762,8 +18825,9 @@ public final Flowable> window(@NonNull Publisher boundaryIndi * @param closingIndicator * a {@link Function} that produces a {@code Publisher} for every window created. When this {@code Publisher} * emits an item, the associated window is closed and emitted - * @return a {@code Flowable} that emits windows of items emitted by the source {@code Publisher} that are governed by + * @return a {@code Flowable} that emits windows of items emitted by the current {@code Flowable} that are governed by * the specified window-governing {@code Publisher}s + * @throws NullPointerException if {@code openingIndicator} or {@code closingIndicator} is {@code null} * @see ReactiveX operators documentation: Window */ @CheckReturnValue @@ -18777,9 +18841,9 @@ public final Flowable> window( } /** - * Returns a {@code Flowable} that emits windows of items it collects from the source {@link Publisher}. The resulting - * {@code Publisher} emits windows that contain those items emitted by the source {@code Publisher} between the time when - * the {@code windowOpenings} {@code Publisher} emits an item and when the {@code Publisher} returned by + * Returns a {@code Flowable} that emits windows of items it collects from the current {@code Flowable}. The resulting + * {@code Flowable} emits windows that contain those items emitted by the current {@code Flowable} between the time when + * the {@code windowOpenings} {@link Publisher} emits an item and when the {@code Publisher} returned by * {@code closingSelector} emits an item. *

* @@ -18807,8 +18871,9 @@ public final Flowable> window( * emits an item, the associated window is closed and emitted * @param bufferSize * the capacity hint for the buffer in the inner windows - * @return a {@code Flowable} that emits windows of items emitted by the source {@code Publisher} that are governed by + * @return a {@code Flowable} that emits windows of items emitted by the current {@code Flowable} that are governed by * the specified window-governing {@code Publisher}s + * @throws NullPointerException if {@code openingIndicator} or {@code closingIndicator} is {@code null} * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Window */ @@ -18826,8 +18891,8 @@ public final Flowable> window( } /** - * Merges the specified {@link Publisher} into this {@code Publisher} sequence by using the {@code resultSelector} - * function only when the source {@code Publisher} (this instance) emits an item. + * Merges the specified {@link Publisher} into the current {@code Flowable} sequence by using the {@code resultSelector} + * function only when the current {@code Flowable} (this instance) emits an item. *

* * @@ -18845,11 +18910,12 @@ public final Flowable> window( * @param other * the other {@code Publisher} * @param combiner - * the function to call when this {@code Publisher} emits an item and the other {@code Publisher} has already - * emitted an item, to generate the item to be emitted by the resulting {@code Publisher} - * @return a {@code Flowable} that merges the specified {@code Publisher} into this {@code Publisher} by using the - * {@code resultSelector} function only when the source {@code Publisher} sequence (this instance) emits an + * the function to call when the current {@code Flowable} emits an item and the other {@code Publisher} has already + * emitted an item, to generate the item to be emitted by the resulting {@code Flowable} + * @return a {@code Flowable} that merges the specified {@code Publisher} into the current {@code Flowable} by using the + * {@code resultSelector} function only when the current {@code Flowable} sequence (this instance) emits an * item + * @throws NullPointerException if {@code other} or {@code combiner} is {@code null} * @since 2.0 * @see ReactiveX operators documentation: CombineLatest */ @@ -18866,17 +18932,17 @@ public final Flowable> window( } /** - * Combines the value emission from this {@link Publisher} with the latest emissions from the - * other {@code Publisher}s via a function to produce the output item. + * Combines the value emission from the current {@code Flowable} with the latest emissions from the + * other {@link Publisher}s via a function to produce the output item. * *

Note that this operator doesn't emit anything until all other sources have produced at - * least one value. The resulting emission only happens when this {@code Publisher} emits (and + * least one value. The resulting emission only happens when the current {@code Flowable} emits (and * not when any of the other sources emit, unlike combineLatest). * If a source doesn't produce any value and just completes, the sequence is completed immediately. * *

*
Backpressure:
- *
This operator is a pass-through for backpressure behavior between the source {@code Publisher} + *
This operator is a pass-through for backpressure behavior between the current {@code Flowable} * and the downstream {@link Subscriber}. The other {@code Publisher}s are consumed in an unbounded manner.
*
Scheduler:
*
This operator does not operate by default on a particular {@link Scheduler}.
@@ -18888,7 +18954,8 @@ public final Flowable> window( * @param source1 the first other {@code Publisher} * @param source2 the second other {@code Publisher} * @param combiner the function called with an array of values from each participating {@code Publisher} - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code source1}, {@code source2} or {@code combiner} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -18905,17 +18972,17 @@ public final Flowable> window( } /** - * Combines the value emission from this {@link Publisher} with the latest emissions from the - * other {@code Publisher}s via a function to produce the output item. + * Combines the value emission from the current {@code Flowable} with the latest emissions from the + * other {@link Publisher}s via a function to produce the output item. * *

Note that this operator doesn't emit anything until all other sources have produced at - * least one value. The resulting emission only happens when this {@code Publisher} emits (and + * least one value. The resulting emission only happens when the current {@code Flowable} emits (and * not when any of the other sources emit, unlike combineLatest). * If a source doesn't produce any value and just completes, the sequence is completed immediately. * *

*
Backpressure:
- *
This operator is a pass-through for backpressure behavior between the source {@code Publisher} + *
This operator is a pass-through for backpressure behavior between the current {@code Flowable} * and the downstream {@link Subscriber}. The other {@code Publisher}s are consumed in an unbounded manner.
*
Scheduler:
*
This operator does not operate by default on a particular {@link Scheduler}.
@@ -18929,7 +18996,8 @@ public final Flowable> window( * @param source2 the second other {@code Publisher} * @param source3 the third other {@code Publisher} * @param combiner the function called with an array of values from each participating {@code Publisher} - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3} or {@code combiner} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -18949,17 +19017,17 @@ public final Flowable> window( } /** - * Combines the value emission from this {@link Publisher} with the latest emissions from the - * other {@code Publisher}s via a function to produce the output item. + * Combines the value emission from the current {@code Flowable} with the latest emissions from the + * other {@link Publisher}s via a function to produce the output item. * *

Note that this operator doesn't emit anything until all other sources have produced at - * least one value. The resulting emission only happens when this {@code Publisher} emits (and + * least one value. The resulting emission only happens when the current {@code Flowable} emits (and * not when any of the other sources emit, unlike combineLatest). * If a source doesn't produce any value and just completes, the sequence is completed immediately. * *

*
Backpressure:
- *
This operator is a pass-through for backpressure behavior between the source {@code Publisher} + *
This operator is a pass-through for backpressure behavior between the current {@code Flowable} * and the downstream {@link Subscriber}. The other {@code Publisher}s are consumed in an unbounded manner.
*
Scheduler:
*
This operator does not operate by default on a particular {@link Scheduler}.
@@ -18975,7 +19043,9 @@ public final Flowable> window( * @param source3 the third other {@code Publisher} * @param source4 the fourth other {@code Publisher} * @param combiner the function called with an array of values from each participating {@code Publisher} - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code source1}, {@code source2}, {@code source3}, + * {@code source4} or {@code combiner} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -18996,17 +19066,17 @@ public final Flowable> window( } /** - * Combines the value emission from this {@link Publisher} with the latest emissions from the - * other {@code Publisher}s via a function to produce the output item. + * Combines the value emission from the current {@code Flowable} with the latest emissions from the + * other {@link Publisher}s via a function to produce the output item. * *

Note that this operator doesn't emit anything until all other sources have produced at - * least one value. The resulting emission only happens when this {@code Publisher} emits (and + * least one value. The resulting emission only happens when the current {@code Flowable} emits (and * not when any of the other sources emit, unlike combineLatest). * If a source doesn't produce any value and just completes, the sequence is completed immediately. * *

*
Backpressure:
- *
This operator is a pass-through for backpressure behavior between the source {@code Publisher} + *
This operator is a pass-through for backpressure behavior between the current {@code Flowable} * and the downstream {@link Subscriber}. The other {@code Publisher}s are consumed in an unbounded manner.
*
Scheduler:
*
This operator does not operate by default on a particular {@link Scheduler}.
@@ -19015,7 +19085,8 @@ public final Flowable> window( * @param the result value type * @param others the array of other sources * @param combiner the function called with an array of values from each participating {@code Publisher} - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code others} or {@code combiner} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -19029,17 +19100,17 @@ public final Flowable> window( } /** - * Combines the value emission from this {@link Publisher} with the latest emissions from the - * other {@code Publisher}s via a function to produce the output item. + * Combines the value emission from the current {@code Flowable} with the latest emissions from the + * other {@link Publisher}s via a function to produce the output item. * *

Note that this operator doesn't emit anything until all other sources have produced at - * least one value. The resulting emission only happens when this {@code Publisher} emits (and + * least one value. The resulting emission only happens when the current {@code Flowable} emits (and * not when any of the other sources emit, unlike combineLatest). * If a source doesn't produce any value and just completes, the sequence is completed immediately. * *

*
Backpressure:
- *
This operator is a pass-through for backpressure behavior between the source {@code Publisher} + *
This operator is a pass-through for backpressure behavior between the current {@code Flowable} * and the downstream {@link Subscriber}. The other {@code Publisher}s are consumed in an unbounded manner.
*
Scheduler:
*
This operator does not operate by default on a particular {@link Scheduler}.
@@ -19048,7 +19119,8 @@ public final Flowable> window( * @param the result value type * @param others the iterable of other sources * @param combiner the function called with an array of values from each participating {@code Publisher} - * @return the new {@code Publisher} instance + * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code others} or {@code combiner} is {@code null} * @since 2.0 */ @CheckReturnValue @@ -19063,11 +19135,11 @@ public final Flowable withLatestFrom(@NonNull Iterable * *

- * Note that the {@code other} {@code Iterable} is evaluated as items are observed from the source {@code Publisher}; it is + * Note that the {@code other} {@code Iterable} is evaluated as items are observed from the current {@code Flowable}; it is * not pre-consumed. This allows you to zip infinite streams on either side. *

*
Backpressure:
@@ -19081,14 +19153,15 @@ public final Flowable withLatestFrom(@NonNull Iterable * the type of items in the {@code other} {@code Iterable} * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param other * the {@code Iterable} sequence * @param zipper - * a function that combines the pairs of items from the {@code Publisher} and the {@code Iterable} to generate - * the items to be emitted by the resulting {@code Publisher} - * @return a {@code Flowable} that pairs up values from the source {@code Publisher} and the {@code other} {@code Iterable} + * a function that combines the pairs of items from the current {@code Flowable} and the {@code Iterable} to generate + * the items to be emitted by the resulting {@code Flowable} + * @return a {@code Flowable} that pairs up values from the current {@code Flowable} and the {@code other} {@code Iterable} * sequence and emits the results of {@code zipFunction} applied to these pairs + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -19103,7 +19176,7 @@ public final Flowable zipWith(@NonNull Iterable other, @NonNull Bi /** * Returns a {@code Flowable} that emits items that are the result of applying a specified function to pairs of - * values, one each from the source {@link Publisher} and another specified {@code Publisher}. + * values, one each from the current {@code Flowable} and another specified {@link Publisher}. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if * one of the sources is shorter than the rest while canceling the other sources. Therefore, it @@ -19130,14 +19203,15 @@ public final Flowable zipWith(@NonNull Iterable other, @NonNull Bi * @param * the type of items emitted by the {@code other} {@code Publisher} * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param other * the other {@code Publisher} * @param zipper * a function that combines the pairs of items from the two {@code Publisher}s to generate the items to - * be emitted by the resulting {@code Publisher} - * @return a {@code Flowable} that pairs up values from the source {@code Publisher} and the {@code other} {@code Publisher} + * be emitted by the resulting {@code Flowable} + * @return a {@code Flowable} that pairs up values from the current {@code Flowable} and the {@code other} {@code Publisher} * and emits the results of {@code zipFunction} applied to these pairs + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip */ @CheckReturnValue @@ -19151,7 +19225,7 @@ public final Flowable zipWith(@NonNull Publisher other, @ /** * Returns a {@code Flowable} that emits items that are the result of applying a specified function to pairs of - * values, one each from the source {@link Publisher} and another specified {@code Publisher}. + * values, one each from the current {@code Flowable} and another specified {@link Publisher}. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if * one of the sources is shorter than the rest while canceling the other sources. Therefore, it @@ -19178,16 +19252,17 @@ public final Flowable zipWith(@NonNull Publisher other, @ * @param * the type of items emitted by the {@code other} {@code Publisher} * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param other * the other {@code Publisher} * @param zipper * a function that combines the pairs of items from the two {@code Publisher}s to generate the items to - * be emitted by the resulting {@code Publisher} + * be emitted by the resulting {@code Flowable} * @param delayError * if {@code true}, errors from the current {@code Flowable} or the other {@code Publisher} is delayed until both terminate - * @return a {@code Flowable} that pairs up values from the source {@code Publisher} and the {@code other} {@code Publisher} + * @return a {@code Flowable} that pairs up values from the current {@code Flowable} and the {@code other} {@code Publisher} * and emits the results of {@code zipFunction} applied to these pairs + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} * @see ReactiveX operators documentation: Zip * @since 2.0 */ @@ -19202,7 +19277,7 @@ public final Flowable zipWith(@NonNull Publisher other, /** * Returns a {@code Flowable} that emits items that are the result of applying a specified function to pairs of - * values, one each from the source {@link Publisher} and another specified {@code Publisher}. + * values, one each from the current {@code Flowable} and another specified {@link Publisher}. *

* The operator subscribes to its sources in the order they are specified and completes eagerly if * one of the sources is shorter than the rest while canceling the other sources. Therefore, it @@ -19229,18 +19304,20 @@ public final Flowable zipWith(@NonNull Publisher other, * @param * the type of items emitted by the {@code other} {@code Publisher} * @param - * the type of items emitted by the resulting {@code Publisher} + * the type of items emitted by the resulting {@code Flowable} * @param other * the other {@code Publisher} * @param zipper * a function that combines the pairs of items from the two {@code Publisher}s to generate the items to - * be emitted by the resulting {@code Publisher} + * be emitted by the resulting {@code Flowable} * @param bufferSize * the capacity hint for the buffer in the inner windows * @param delayError * if {@code true}, errors from the current {@code Flowable} or the other {@code Publisher} is delayed until both terminate - * @return a {@code Flowable} that pairs up values from the source {@code Publisher} and the {@code other} {@code Publisher} + * @return a {@code Flowable} that pairs up values from the current {@code Flowable} and the {@code other} {@code Publisher} * and emits the results of {@code zipFunction} applied to these pairs + * @throws NullPointerException if {@code other} or {@code zipper} is {@code null} + * @throws IllegalArgumentException if {@code bufferSize} is non-positive * @see ReactiveX operators documentation: Zip * @since 2.0 */ @@ -19354,6 +19431,7 @@ public final TestSubscriber test(long initialRequest, boolean cancel) { // No * @param the element type of the optional value * @param optional the optional value to convert into a {@code Flowable} * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code optional} is {@code null} * @since 3.0.0 * @see #just(Object) * @see #empty() @@ -19393,6 +19471,7 @@ public final TestSubscriber test(long initialRequest, boolean cancel) { // No * @param the element type of the {@code CompletionStage} * @param stage the {@code CompletionStage} to convert to {@code Flowable} and signal its terminal value or error * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code stage} is {@code null} * @since 3.0.0 */ @CheckReturnValue @@ -19438,6 +19517,7 @@ public final TestSubscriber test(long initialRequest, boolean cancel) { // No * @param the element type of the source {@code Stream} * @param stream the {@code Stream} of values to emit * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code stream} is {@code null} * @since 3.0.0 * @see #fromIterable(Iterable) */ @@ -19466,6 +19546,7 @@ public final TestSubscriber test(long initialRequest, boolean cancel) { // No * @param mapper the function that receives the upstream item and should return a non-empty {@code Optional} * to emit as the output or an empty {@code Optional} to skip to the next upstream value * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @since 3.0.0 * @see #map(Function) * @see #filter(Predicate) @@ -19496,6 +19577,7 @@ public final TestSubscriber test(long initialRequest, boolean cancel) { // No * @param collector the interface defining the container supplier, accumulator and finisher functions; * see {@link Collectors} for some standard implementations * @return the new {@link Single} instance + * @throws NullPointerException if {@code collector} is {@code null} * @since 3.0.0 * @see Collectors * @see #collect(Supplier, BiConsumer) @@ -19767,6 +19849,7 @@ public final Stream blockingStream() { * @param prefetch the number of items to request from the upstream to limit the number of * in-flight items and item generation. * @return the new {@code Stream} instance + * @throws IllegalArgumentException if {@code prefetch} is non-positive * @since 3.0.0 */ @CheckReturnValue @@ -19819,6 +19902,7 @@ public final Stream blockingStream(int prefetch) { * @param mapper the function that receives an upstream item and should return a {@code Stream} whose elements * will be emitted to the downstream * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @since 3.0.0 * @see #concatMap(Function) * @see #concatMapIterable(Function) @@ -19872,6 +19956,7 @@ public final Stream blockingStream(int prefetch) { * will be emitted to the downstream * @param prefetch the number of upstream items to request upfront, then 75% of this amount after each 75% upstream items received * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive * @since 3.0.0 * @see #concatMap(Function, int) @@ -19928,6 +20013,7 @@ public final Stream blockingStream(int prefetch) { * @param mapper the function that receives an upstream item and should return a {@code Stream} whose elements * will be emitted to the downstream * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @since 3.0.0 * @see #flatMap(Function) * @see #flatMapIterable(Function) @@ -19981,6 +20067,7 @@ public final Stream blockingStream(int prefetch) { * will be emitted to the downstream * @param prefetch the number of upstream items to request upfront, then 75% of this amount after each 75% upstream items received * @return the new {@code Flowable} instance + * @throws NullPointerException if {@code mapper} is {@code null} * @throws IllegalArgumentException if {@code prefetch} is non-positive * @since 3.0.0 * @see #flatMap(Function, int) diff --git a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java index 14400c5c6d..fe6d215165 100644 --- a/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java +++ b/src/test/java/io/reactivex/rxjava3/validators/ParamValidationNaming.java @@ -517,6 +517,12 @@ static final class ValidatorStrings { new ValidatorStrings("reducer", "* @throws NullPointerException"), new ValidatorStrings("seed", "* @throws NullPointerException"), new ValidatorStrings("seedSupplier", "* @throws NullPointerException"), + new ValidatorStrings("mapSupplier", "* @throws NullPointerException"), + new ValidatorStrings("collectionFactory", "* @throws NullPointerException"), + new ValidatorStrings("factory", "* @throws NullPointerException"), + new ValidatorStrings("stage", "* @throws NullPointerException"), + new ValidatorStrings("stream", "* @throws NullPointerException"), + new ValidatorStrings("collector", "* @throws NullPointerException"), new ValidatorStrings("parallelism", "* @throws IllegalArgumentException"), new ValidatorStrings("prefetch", "* @throws IllegalArgumentException"),