@@ -165,7 +165,7 @@ public static Completable amb(@NonNull Iterable<@NonNull ? extends CompletableSo
165
165
* <dt><b>Scheduler:</b></dt>
166
166
* <dd>{@code complete} does not operate by default on a particular {@link Scheduler}.</dd>
167
167
* </dl>
168
- * @return a {@code Completable} instance that completes immediately
168
+ * @return the shared {@code Completable} instance
169
169
*/
170
170
@ CheckReturnValue
171
171
@ NonNull
@@ -183,7 +183,7 @@ public static Completable complete() {
183
183
* <dd>{@code concatArray} does not operate by default on a particular {@link Scheduler}.</dd>
184
184
* </dl>
185
185
* @param sources the sources to concatenate
186
- * @return the {@code Completable} instance which completes only when all sources complete
186
+ * @return the new {@code Completable} instance
187
187
* @throws NullPointerException if {@code sources} is {@code null}
188
188
*/
189
189
@ CheckReturnValue
@@ -210,7 +210,7 @@ public static Completable concatArray(@NonNull CompletableSource... sources) {
210
210
* <dd>{@code concat} does not operate by default on a particular {@link Scheduler}.</dd>
211
211
* </dl>
212
212
* @param sources the sources to concatenate
213
- * @return the {@code Completable} instance which completes only when all sources complete
213
+ * @return the new {@code Completable} instance
214
214
* @throws NullPointerException if {@code sources} is {@code null}
215
215
*/
216
216
@ CheckReturnValue
@@ -234,7 +234,7 @@ public static Completable concat(@NonNull Iterable<@NonNull ? extends Completabl
234
234
* <dd>{@code concat} does not operate by default on a particular {@link Scheduler}.</dd>
235
235
* </dl>
236
236
* @param sources the sources to concatenate
237
- * @return the {@code Completable} instance which completes only when all sources complete
237
+ * @return the new {@code Completable} instance
238
238
* @throws NullPointerException if {@code sources} is {@code null}
239
239
*/
240
240
@ CheckReturnValue
@@ -258,7 +258,7 @@ public static Completable concat(@NonNull Publisher<@NonNull ? extends Completab
258
258
* </dl>
259
259
* @param sources the sources to concatenate
260
260
* @param prefetch the number of sources to prefetch from the sources
261
- * @return the {@code Completable} instance which completes only when all sources complete
261
+ * @return the new {@code Completable} instance
262
262
* @throws NullPointerException if {@code sources} is {@code null}
263
263
* @throws IllegalArgumentException if {@code prefetch} is non-positive
264
264
*/
@@ -334,7 +334,7 @@ public static Completable create(@NonNull CompletableOnSubscribe source) {
334
334
* </dl>
335
335
* @param source the callback which will receive the {@link CompletableObserver} instances
336
336
* when the {@code Completable} is subscribed to.
337
- * @return the created {@code Completable} instance
337
+ * @return the new {@code Completable} instance
338
338
* @throws NullPointerException if {@code source} is {@code null}
339
339
* @throws IllegalArgumentException if {@code source} is a {@code Completable}
340
340
*/
@@ -358,7 +358,7 @@ public static Completable unsafeCreate(@NonNull CompletableSource source) {
358
358
* <dd>{@code defer} does not operate by default on a particular {@link Scheduler}.</dd>
359
359
* </dl>
360
360
* @param completableSupplier the supplier that returns the {@code Completable} that will be subscribed to.
361
- * @return the {@code Completable} instance
361
+ * @return the new {@code Completable} instance
362
362
* @throws NullPointerException if {@code completableSupplier} is {@code null}
363
363
*/
364
364
@ CheckReturnValue
@@ -1008,7 +1008,7 @@ public static Completable timer(long delay, @NonNull TimeUnit unit, @NonNull Sch
1008
1008
/**
1009
1009
* Creates a {@link NullPointerException} instance and sets the given {@link Throwable} as its initial cause.
1010
1010
* @param ex the {@code Throwable} instance to use as cause, not {@code null} (not verified)
1011
- * @return the created {@code NullPointerException}
1011
+ * @return the new {@code NullPointerException}
1012
1012
*/
1013
1013
private static NullPointerException toNpe (Throwable ex ) {
1014
1014
NullPointerException npe = new NullPointerException ("Actually not, but can't pass out an exception otherwise..." );
@@ -1096,7 +1096,7 @@ public static <R> Completable using(
1096
1096
* <dd>{@code wrap} does not operate by default on a particular {@link Scheduler}.</dd>
1097
1097
* </dl>
1098
1098
* @param source the source to wrap
1099
- * @return the source or its wrapper {@code Completable}
1099
+ * @return the new wrapped or cast {@code Completable} instance
1100
1100
* @throws NullPointerException if {@code source} is {@code null}
1101
1101
*/
1102
1102
@ CheckReturnValue
@@ -1344,7 +1344,7 @@ public final Completable cache() {
1344
1344
* <dd>{@code compose} does not operate by default on a particular {@link Scheduler}.</dd>
1345
1345
* </dl>
1346
1346
* @param transformer the transformer function, not {@code null}
1347
- * @return a {@code Completable} wrapping the {@code CompletableSource} returned by the function via {@link #wrap(CompletableSource)}
1347
+ * @return the new {@code Completable} instance
1348
1348
* @throws NullPointerException if {@code transformer} is {@code null}
1349
1349
*/
1350
1350
@ CheckReturnValue
@@ -1461,7 +1461,7 @@ public final Completable delay(long delay, @NonNull TimeUnit unit, @NonNull Sche
1461
1461
*
1462
1462
* @param delay the time to delay the subscription
1463
1463
* @param unit the time unit of {@code delay}
1464
- * @return a {@code Completable} that delays the subscription to the upstream by the given amount
1464
+ * @return the new {@code Completable} instance
1465
1465
* @throws NullPointerException if {@code unit} is {@code null}
1466
1466
* @since 3.0.0
1467
1467
* @see <a href="http://reactivex.io/documentation/operators/delay.html">ReactiveX operators documentation: Delay</a>
@@ -1486,8 +1486,7 @@ public final Completable delaySubscription(long delay, @NonNull TimeUnit unit) {
1486
1486
* @param delay the time to delay the subscription
1487
1487
* @param unit the time unit of {@code delay}
1488
1488
* @param scheduler the {@code Scheduler} on which the waiting and subscription will happen
1489
- * @return a {@code Completable} that delays the subscription to the upstream by a given
1490
- * amount of time, waiting and subscribing on the given {@code Scheduler}
1489
+ * @return the new {@code Completable} instance
1491
1490
* @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
1492
1491
* @since 3.0.0
1493
1492
* @see <a href="http://reactivex.io/documentation/operators/delay.html">ReactiveX operators documentation: Delay</a>
@@ -1998,8 +1997,7 @@ public final Completable onErrorResumeNext(@NonNull Function<? super Throwable,
1998
1997
* <dd>{@code onTerminateDetach} does not operate by default on a particular {@link Scheduler}.</dd>
1999
1998
* </dl>
2000
1999
* <p>History: 2.1.5 - experimental
2001
- * @return a {@code Completable} which {@code null}s out references to the upstream producer and downstream {@code CompletableObserver} if
2002
- * the sequence is terminated or downstream calls {@code dispose()}
2000
+ * @return the new {@code Completable} instance
2003
2001
* @since 2.2
2004
2002
*/
2005
2003
@ CheckReturnValue
@@ -2336,7 +2334,7 @@ public final Completable hide() {
2336
2334
* <dt><b>Scheduler:</b></dt>
2337
2335
* <dd>{@code subscribe} does not operate by default on a particular {@link Scheduler}.</dd>
2338
2336
* </dl>
2339
- * @return the {@code Disposable} that allows disposing the subscription
2337
+ * @return the new {@code Disposable} that can be used for disposing the subscription at any time
2340
2338
*/
2341
2339
@ SchedulerSupport (SchedulerSupport .NONE )
2342
2340
@ NonNull
@@ -2420,7 +2418,7 @@ public final void subscribe(@NonNull CompletableObserver observer) {
2420
2418
* </dl>
2421
2419
* @param onComplete the {@link Action} that is called if the {@code Completable} completes normally
2422
2420
* @param onError the {@link Consumer} that is called if this {@code Completable} emits an error
2423
- * @return the {@link Disposable} that can be used for disposing the subscription asynchronously
2421
+ * @return the new {@link Disposable} that can be used for disposing the subscription at any time
2424
2422
* @throws NullPointerException if {@code onComplete} or {@code onError} is {@code null}
2425
2423
*/
2426
2424
@ CheckReturnValue
@@ -2449,7 +2447,7 @@ public final Disposable subscribe(@NonNull Action onComplete, @NonNull Consumer<
2449
2447
* <dd>{@code subscribe} does not operate by default on a particular {@link Scheduler}.</dd>
2450
2448
* </dl>
2451
2449
* @param onComplete the {@code Action} called when this {@code Completable} completes normally
2452
- * @return the {@link Disposable} that allows disposing the subscription
2450
+ * @return the new {@link Disposable} that can be used for disposing the subscription at any time
2453
2451
* @throws NullPointerException if {@code onComplete} is {@code null}
2454
2452
*/
2455
2453
@ CheckReturnValue
@@ -2691,8 +2689,7 @@ public final <T> Flowable<T> toFlowable() {
2691
2689
* </dl>
2692
2690
*
2693
2691
* @param <T> the value type
2694
- * @return a {@code Maybe} that only calls {@code onComplete} or {@code onError}, based on which one is
2695
- * called by the current {@code Completable}.
2692
+ * @return the new {@code Maybe} instance
2696
2693
*/
2697
2694
@ CheckReturnValue
2698
2695
@ SuppressWarnings ("unchecked" )
0 commit comments