@@ -308,6 +308,7 @@ public static <T> Flowable<T> concat(
308
308
* @param <T> the value type
309
309
* @param sources the {@code Publisher} of {@code MaybeSource} instances
310
310
* @return the new {@code Flowable} instance
311
+ * @throws NullPointerException if {@code sources} is {@code null}
311
312
*/
312
313
@ BackpressureSupport (BackpressureKind .FULL )
313
314
@ CheckReturnValue
@@ -433,6 +434,7 @@ public static <T> Flowable<T> concatArrayDelayError(@NonNull MaybeSource<? exten
433
434
* @param <T> the value type
434
435
* @param sources a sequence of {@code MaybeSource}s that need to be eagerly concatenated
435
436
* @return the new {@code Flowable} instance with the specified concatenation behavior
437
+ * @throws NullPointerException if {@code sources} is {@code null}
436
438
*/
437
439
@ SuppressWarnings ({ "rawtypes" , "unchecked" })
438
440
@ BackpressureSupport (BackpressureKind .FULL )
@@ -488,6 +490,7 @@ public static <T> Flowable<T> concatDelayError(@NonNull Iterable<? extends Maybe
488
490
* @param <T> the common element base type
489
491
* @param sources the {@code Publisher} sequence of {@code MaybeSource}s
490
492
* @return the new {@code Flowable} with the concatenating behavior
493
+ * @throws NullPointerException if {@code sources} is {@code null}
491
494
*/
492
495
@ SuppressWarnings ({ "unchecked" , "rawtypes" })
493
496
@ BackpressureSupport (BackpressureKind .FULL )
@@ -515,6 +518,7 @@ public static <T> Flowable<T> concatDelayError(@NonNull Publisher<? extends Mayb
515
518
* @param <T> the value type
516
519
* @param sources a sequence of {@code MaybeSource} that need to be eagerly concatenated
517
520
* @return the new {@code Flowable} instance with the specified concatenation behavior
521
+ * @throws NullPointerException if {@code sources} is {@code null}
518
522
*/
519
523
@ SuppressWarnings ({ "rawtypes" , "unchecked" })
520
524
@ BackpressureSupport (BackpressureKind .FULL )
@@ -544,6 +548,7 @@ public static <T> Flowable<T> concatEager(@NonNull Iterable<? extends MaybeSourc
544
548
* @param <T> the value type
545
549
* @param sources a sequence of {@code MaybeSource}s that need to be eagerly concatenated
546
550
* @return the new {@code Flowable} instance with the specified concatenation behavior
551
+ * @throws NullPointerException if {@code sources} is {@code null}
547
552
*/
548
553
@ SuppressWarnings ({ "rawtypes" , "unchecked" })
549
554
@ BackpressureSupport (BackpressureKind .FULL )
@@ -1044,6 +1049,7 @@ public static <T> Flowable<T> merge(@NonNull Iterable<? extends MaybeSource<? ex
1044
1049
* @param <T> the common and resulting value type
1045
1050
* @param sources the {@code Flowable} sequence of {@code MaybeSource} sources
1046
1051
* @return the new {@code Flowable} instance
1052
+ * @throws NullPointerException if {@code sources} is {@code null}
1047
1053
* @see #mergeDelayError(Publisher)
1048
1054
*/
1049
1055
@ BackpressureSupport (BackpressureKind .FULL )
@@ -1437,6 +1443,7 @@ public static <T> Flowable<T> mergeDelayError(@NonNull Iterable<? extends MaybeS
1437
1443
* a {@code Publisher} that emits {@code MaybeSource}s
1438
1444
* @return a {@code Flowable} that emits all of the items emitted by the {@code MaybeSource}s emitted by the
1439
1445
* {@code source} {@code Publisher}
1446
+ * @throws NullPointerException if {@code sources} is {@code null}
1440
1447
* @see <a href="http://reactivex.io/documentation/operators/merge.html">ReactiveX operators documentation: Merge</a>
1441
1448
*/
1442
1449
@ BackpressureSupport (BackpressureKind .FULL )
@@ -1662,6 +1669,7 @@ public static <T> Maybe<T> never() {
1662
1669
* @param <T>
1663
1670
* the type of items emitted by each {@code MaybeSource}
1664
1671
* @return a {@code Single} that emits a {@code Boolean} value that indicates whether the two sequences are the same
1672
+ * @throws NullPointerException if {@code source1} or {@code source2} is {@code null}
1665
1673
* @see <a href="http://reactivex.io/documentation/operators/sequenceequal.html">ReactiveX operators documentation: SequenceEqual</a>
1666
1674
*/
1667
1675
@ CheckReturnValue
@@ -1720,6 +1728,7 @@ public static <T> Single<Boolean> sequenceEqual(@NonNull MaybeSource<? extends T
1720
1728
* @param unit
1721
1729
* time units to use for {@code delay}
1722
1730
* @return a {@code Maybe} that emits {@code 0L} after a specified delay
1731
+ * @throws NullPointerException if {@code unit} is {@code null}
1723
1732
* @see <a href="http://reactivex.io/documentation/operators/timer.html">ReactiveX operators documentation: Timer</a>
1724
1733
*/
1725
1734
@ CheckReturnValue
@@ -2688,6 +2697,7 @@ public final Single<T> defaultIfEmpty(@NonNull T defaultItem) {
2688
2697
* @param unit
2689
2698
* the {@link TimeUnit} in which {@code period} is defined
2690
2699
* @return the new {@code Maybe} instance
2700
+ * @throws NullPointerException if {@code unit} is {@code null}
2691
2701
* @see <a href="http://reactivex.io/documentation/operators/delay.html">ReactiveX operators documentation: Delay</a>
2692
2702
* @see #delay(long, TimeUnit, Scheduler)
2693
2703
*/
@@ -2799,6 +2809,7 @@ public final <U> Maybe<T> delaySubscription(@NonNull Publisher<U> subscriptionIn
2799
2809
* @param unit
2800
2810
* the time unit of {@code delay}
2801
2811
* @return a {@code Maybe} that delays the subscription to the source {@code Maybe} by the given amount
2812
+ * @throws NullPointerException if {@code unit} is {@code null}
2802
2813
* @see <a href="http://reactivex.io/documentation/operators/delay.html">ReactiveX operators documentation: Delay</a>
2803
2814
* @see #delaySubscription(long, TimeUnit, Scheduler)
2804
2815
*/
@@ -2827,6 +2838,7 @@ public final Maybe<T> delaySubscription(long delay, @NonNull TimeUnit unit) {
2827
2838
* the {@code Scheduler} on which the waiting and subscription will happen
2828
2839
* @return a {@code Maybe} that delays the subscription to the source {@code Maybe} by a given
2829
2840
* amount, waiting and subscribing on the given {@code Scheduler}
2841
+ * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
2830
2842
* @see <a href="http://reactivex.io/documentation/operators/delay.html">ReactiveX operators documentation: Delay</a>
2831
2843
*/
2832
2844
@ CheckReturnValue
@@ -4075,7 +4087,7 @@ public final Flowable<T> repeat() {
4075
4087
* @return a {@code Flowable} that repeats the sequence of items emitted by the source {@code Maybe} at most
4076
4088
* {@code count} times
4077
4089
* @throws IllegalArgumentException
4078
- * if {@code count } is less than zero
4090
+ * if {@code times } is negative
4079
4091
* @see <a href="http://reactivex.io/documentation/operators/repeat.html">ReactiveX operators documentation: Repeat</a>
4080
4092
*/
4081
4093
@ BackpressureSupport (BackpressureKind .FULL )
@@ -4134,6 +4146,7 @@ public final Flowable<T> repeatUntil(@NonNull BooleanSupplier stop) {
4134
4146
* @param handler
4135
4147
* receives a {@code Publisher} of notifications with which a user can complete or error, aborting the repeat.
4136
4148
* @return the source {@code Publisher} modified with repeat logic
4149
+ * @throws NullPointerException if {@code handler} is {@code null}
4137
4150
* @see <a href="http://reactivex.io/documentation/operators/repeat.html">ReactiveX operators documentation: Repeat</a>
4138
4151
*/
4139
4152
@ BackpressureSupport (BackpressureKind .FULL )
@@ -4181,6 +4194,7 @@ public final Maybe<T> retry() {
4181
4194
* the predicate that determines if a resubscription may happen in case of a specific exception
4182
4195
* and retry count
4183
4196
* @return the new {@code Maybe} instance
4197
+ * @throws NullPointerException if {@code predicate} is {@code null}
4184
4198
* @see #retry()
4185
4199
* @see <a href="http://reactivex.io/documentation/operators/retry.html">ReactiveX operators documentation: Retry</a>
4186
4200
*/
@@ -4205,16 +4219,17 @@ public final Maybe<T> retry(@NonNull BiPredicate<? super Integer, ? super Throwa
4205
4219
* <dd>{@code retry} does not operate by default on a particular {@link Scheduler}.</dd>
4206
4220
* </dl>
4207
4221
*
4208
- * @param count
4222
+ * @param times
4209
4223
* the number of times to resubscribe if the current {@code Maybe} fails
4210
4224
* @return the new {@code Maybe} instance
4225
+ * @throws IllegalArgumentException if {@code times} is negative
4211
4226
* @see <a href="http://reactivex.io/documentation/operators/retry.html">ReactiveX operators documentation: Retry</a>
4212
4227
*/
4213
4228
@ CheckReturnValue
4214
4229
@ SchedulerSupport (SchedulerSupport .NONE )
4215
4230
@ NonNull
4216
- public final Maybe <T > retry (long count ) {
4217
- return retry (count , Functions .alwaysTrue ());
4231
+ public final Maybe <T > retry (long times ) {
4232
+ return retry (times , Functions .alwaysTrue ());
4218
4233
}
4219
4234
4220
4235
/**
@@ -4227,6 +4242,8 @@ public final Maybe<T> retry(long count) {
4227
4242
* @param times the number of times to resubscribe if the current {@code Maybe} fails
4228
4243
* @param predicate the predicate called with the failure {@link Throwable} and should return {@code true} to trigger a retry.
4229
4244
* @return the new {@code Maybe} instance
4245
+ * @throws NullPointerException if {@code predicate} is {@code null}
4246
+ * @throws IllegalArgumentException if {@code times} is negative
4230
4247
*/
4231
4248
@ CheckReturnValue
4232
4249
@ SchedulerSupport (SchedulerSupport .NONE )
@@ -4244,6 +4261,7 @@ public final Maybe<T> retry(long times, @NonNull Predicate<? super Throwable> pr
4244
4261
*
4245
4262
* @param predicate the predicate that receives the failure {@link Throwable} and should return {@code true} to trigger a retry.
4246
4263
* @return the new {@code Maybe} instance
4264
+ * @throws NullPointerException if {@code predicate} is {@code null}
4247
4265
*/
4248
4266
@ CheckReturnValue
4249
4267
@ SchedulerSupport (SchedulerSupport .NONE )
@@ -4341,6 +4359,7 @@ public final Maybe<T> retryUntil(@NonNull BooleanSupplier stop) {
4341
4359
* receives a {@code Publisher} of notifications with which a user can complete or error, aborting the
4342
4360
* retry
4343
4361
* @return the new {@code Maybe} instance
4362
+ * @throws NullPointerException if {@code handler} is {@code null}
4344
4363
* @see <a href="http://reactivex.io/documentation/operators/retry.html">ReactiveX operators documentation: Retry</a>
4345
4364
*/
4346
4365
@ CheckReturnValue
@@ -4665,16 +4684,17 @@ public final <U> Maybe<T> takeUntil(@NonNull Publisher<U> other) {
4665
4684
*
4666
4685
* @param timeout
4667
4686
* maximum duration between emitted items before a timeout occurs
4668
- * @param timeUnit
4687
+ * @param unit
4669
4688
* the unit of time that applies to the {@code timeout} argument.
4670
4689
* @return the new {@code Maybe} instance
4690
+ * @throws NullPointerException if {@code unit} is {@code null}
4671
4691
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
4672
4692
*/
4673
4693
@ CheckReturnValue
4674
4694
@ SchedulerSupport (SchedulerSupport .COMPUTATION )
4675
4695
@ NonNull
4676
- public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit timeUnit ) {
4677
- return timeout (timeout , timeUnit , Schedulers .computation ());
4696
+ public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit unit ) {
4697
+ return timeout (timeout , unit , Schedulers .computation ());
4678
4698
}
4679
4699
4680
4700
/**
@@ -4690,20 +4710,20 @@ public final Maybe<T> timeout(long timeout, @NonNull TimeUnit timeUnit) {
4690
4710
*
4691
4711
* @param timeout
4692
4712
* maximum duration between items before a timeout occurs
4693
- * @param timeUnit
4713
+ * @param unit
4694
4714
* the unit of time that applies to the {@code timeout} argument
4695
4715
* @param fallback
4696
4716
* the fallback {@code MaybeSource} to use in case of a timeout
4697
4717
* @return the new {@code Maybe} instance
4698
- * @throws NullPointerException if {@code timeUnit } or {@code fallback} is {@code null}
4718
+ * @throws NullPointerException if {@code unit } or {@code fallback} is {@code null}
4699
4719
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
4700
4720
*/
4701
4721
@ CheckReturnValue
4702
4722
@ NonNull
4703
4723
@ SchedulerSupport (SchedulerSupport .COMPUTATION )
4704
- public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit timeUnit , @ NonNull MaybeSource <? extends T > fallback ) {
4724
+ public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit unit , @ NonNull MaybeSource <? extends T > fallback ) {
4705
4725
Objects .requireNonNull (fallback , "fallback is null" );
4706
- return timeout (timeout , timeUnit , Schedulers .computation (), fallback );
4726
+ return timeout (timeout , unit , Schedulers .computation (), fallback );
4707
4727
}
4708
4728
4709
4729
/**
@@ -4720,22 +4740,22 @@ public final Maybe<T> timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull
4720
4740
*
4721
4741
* @param timeout
4722
4742
* maximum duration between items before a timeout occurs
4723
- * @param timeUnit
4743
+ * @param unit
4724
4744
* the unit of time that applies to the {@code timeout} argument
4725
4745
* @param fallback
4726
4746
* the {@code MaybeSource} to use as the fallback in case of a timeout
4727
4747
* @param scheduler
4728
4748
* the {@code Scheduler} to run the timeout timers on
4729
4749
* @return the new {@code Maybe} instance
4730
- * @throws NullPointerException if {@code fallback}, {@code timeUnit } or {@code scheduler} is {@code null}
4750
+ * @throws NullPointerException if {@code fallback}, {@code unit } or {@code scheduler} is {@code null}
4731
4751
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
4732
4752
*/
4733
4753
@ CheckReturnValue
4734
4754
@ NonNull
4735
4755
@ SchedulerSupport (SchedulerSupport .CUSTOM )
4736
- public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit timeUnit , @ NonNull Scheduler scheduler , @ NonNull MaybeSource <? extends T > fallback ) {
4756
+ public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit unit , @ NonNull Scheduler scheduler , @ NonNull MaybeSource <? extends T > fallback ) {
4737
4757
Objects .requireNonNull (fallback , "fallback is null" );
4738
- return timeout (timer (timeout , timeUnit , scheduler ), fallback );
4758
+ return timeout (timer (timeout , unit , scheduler ), fallback );
4739
4759
}
4740
4760
4741
4761
/**
@@ -4752,18 +4772,19 @@ public final Maybe<T> timeout(long timeout, @NonNull TimeUnit timeUnit, @NonNull
4752
4772
*
4753
4773
* @param timeout
4754
4774
* maximum duration between items before a timeout occurs
4755
- * @param timeUnit
4775
+ * @param unit
4756
4776
* the unit of time that applies to the {@code timeout} argument
4757
4777
* @param scheduler
4758
4778
* the {@code Scheduler} to run the timeout timers on
4759
4779
* @return the new {@code Maybe} instance
4760
4780
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
4781
+ * @throws NullPointerException if {@code unit} or {@code scheduler} is {@code null}
4761
4782
*/
4762
4783
@ CheckReturnValue
4763
4784
@ SchedulerSupport (SchedulerSupport .CUSTOM )
4764
4785
@ NonNull
4765
- public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit timeUnit , @ NonNull Scheduler scheduler ) {
4766
- return timeout (timer (timeout , timeUnit , scheduler ));
4786
+ public final Maybe <T > timeout (long timeout , @ NonNull TimeUnit unit , @ NonNull Scheduler scheduler ) {
4787
+ return timeout (timer (timeout , unit , scheduler ));
4767
4788
}
4768
4789
4769
4790
/**
@@ -4909,7 +4930,7 @@ public final Maybe<T> unsubscribeOn(@NonNull Scheduler scheduler) {
4909
4930
* a function that combines the pairs of items from the two {@code MaybeSource}s to generate the items to
4910
4931
* be emitted by the resulting {@code Maybe}
4911
4932
* @return the new {@code Maybe} instance
4912
- * @throws NullPointerException if {@code other} is {@code null}
4933
+ * @throws NullPointerException if {@code other} or {@code zipper} is {@code null}
4913
4934
* @see <a href="http://reactivex.io/documentation/operators/zip.html">ReactiveX operators documentation: Zip</a>
4914
4935
*/
4915
4936
@ CheckReturnValue
0 commit comments