@@ -1701,7 +1701,7 @@ public final static <T> Observable<T> merge(Iterable<? extends Observable<? exte
1701
1701
* the maximum number of Observables that may be subscribed to concurrently
1702
1702
* @return an Observable that emits items that are the result of flattening the items emitted by the
1703
1703
* Observables in the Iterable
1704
- * @throw IllegalArgumentException
1704
+ * @throws IllegalArgumentException
1705
1705
* if {@code maxConcurrent} is less than or equal to 0
1706
1706
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#wiki-merge">RxJava Wiki: merge()</a>
1707
1707
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229923.aspx">MSDN: Observable.Merge</a>
@@ -1728,7 +1728,7 @@ public final static <T> Observable<T> merge(Iterable<? extends Observable<? exte
1728
1728
* the Scheduler on which to traverse the Iterable of Observables
1729
1729
* @return an Observable that emits items that are the result of flattening the items emitted by the
1730
1730
* Observables in the Iterable
1731
- * @throw IllegalArgumentException
1731
+ * @throws IllegalArgumentException
1732
1732
* if {@code maxConcurrent} is less than or equal to 0
1733
1733
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#wiki-merge">RxJava Wiki: merge()</a>
1734
1734
* @see <a href="http://msdn.microsoft.com/en-us/library/hh244329.aspx">MSDN: Observable.Merge</a>
@@ -1795,7 +1795,7 @@ public final static <T> Observable<T> merge(Observable<? extends Observable<? ex
1795
1795
* the maximum number of Observables that may be subscribed to concurrently
1796
1796
* @return an Observable that emits items that are the result of flattening the Observables emitted by the
1797
1797
* {@code source} Observable
1798
- * @throw IllegalArgumentException
1798
+ * @throws IllegalArgumentException
1799
1799
* if {@code maxConcurrent} is less than or equal to 0
1800
1800
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#wiki-merge">RxJava Wiki: merge()</a>
1801
1801
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211914.aspx">MSDN: Observable.Merge</a>
@@ -2466,6 +2466,10 @@ public final static <T> Observable<Observable<T>> parallelMerge(Observable<Obser
2466
2466
* @param count
2467
2467
* the number of sequential Integers to generate
2468
2468
* @return an Observable that emits a range of sequential Integers
2469
+ * @throws IllegalArgumentException
2470
+ * if {@code count} is less than zero
2471
+ * @throws IllegalArgumentException
2472
+ * if {@code start} + {@code count} exceeds {@code Integer.MAX_VALUE}
2469
2473
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#wiki-range">RxJava Wiki: range()</a>
2470
2474
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229460.aspx">MSDN: Observable.Range</a>
2471
2475
*/
@@ -5578,6 +5582,8 @@ public final Observable<T> repeat(Scheduler scheduler) {
5578
5582
* sequence
5579
5583
* @return an Observable that repeats the sequence of items emitted by the source Observable at most
5580
5584
* {@code count} times
5585
+ * @throws IllegalArgumentException
5586
+ * if {@code count} is less than zero
5581
5587
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#wiki-repeat">RxJava Wiki: repeat()</a>
5582
5588
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428.aspx">MSDN: Observable.Repeat</a>
5583
5589
*/
@@ -5729,6 +5735,8 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
5729
5735
* a {@link ConnectableObservable} that shares a single subscription to the source Observable, and
5730
5736
* replays no more than {@code bufferSize} items that were emitted within the window defined by
5731
5737
* {@code time}
5738
+ * @throws IllegalArgumentException
5739
+ * if {@code bufferSize} is less than zero
5732
5740
* @see <a href="https://github.com/Netflix/RxJava/wiki/Connectable-Observable-Operators#wiki-observablereplay">RxJava Wiki: replay()</a>
5733
5741
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229404.aspx">MSDN: Observable.Replay</a>
5734
5742
*/
@@ -5918,6 +5926,8 @@ public final ConnectableObservable<T> replay(int bufferSize, long time, TimeUnit
5918
5926
* @return a {@link ConnectableObservable} that shares a single subscription to the source Observable and
5919
5927
* replays at most {@code bufferSize} items that were emitted during the window defined by
5920
5928
* {@code time}
5929
+ * @throws IllegalArgumentException
5930
+ * if {@code bufferSize} is less than zero
5921
5931
* @see <a href="https://github.com/Netflix/RxJava/wiki/Connectable-Observable-Operators#wiki-observablereplay">RxJava Wiki: replay()</a>
5922
5932
* @see <a href="http://msdn.microsoft.com/en-us/library/hh211759.aspx">MSDN: Observable.Replay</a>
5923
5933
*/
@@ -6984,7 +6994,13 @@ public void onNext(T t) {
6984
6994
* @return a {@link Subscription} reference with which Subscribers that are {@link Observer}s can
6985
6995
* unsubscribe from the Observable
6986
6996
* @throws IllegalStateException
6997
+ * if {@code subscribe()} is unable to obtain an {@code OnSubscribe<>} function
6998
+ * @throws IllegalArgumentException
6987
6999
* if the {@link Subscriber} provided as the argument to {@code subscribe()} is {@code null}
7000
+ * @throws OnErrorNotImplementedException
7001
+ * if the {@link Subscriber}'s {@code onError} method is null
7002
+ * @throws RuntimeException
7003
+ * if the {@link Subscriber}'s {@code onError} method itself threw a {@code Throwable}
6988
7004
*/
6989
7005
public final Subscription subscribe (Subscriber <? super T > observer ) {
6990
7006
// allow the hook to intercept and/or decorate
@@ -7363,6 +7379,8 @@ public final Observable<T> takeLast(int count, long time, TimeUnit unit) {
7363
7379
* @return an Observable that emits at most {@code count} items from the source Observable that were emitted
7364
7380
* in a specified window of time before the Observable completed, where the timing information is
7365
7381
* provided by the given {@code scheduler}
7382
+ * @throws IllegalArgumentException
7383
+ * if {@code count} is less than zero
7366
7384
*/
7367
7385
public final Observable <T > takeLast (int count , long time , TimeUnit unit , Scheduler scheduler ) {
7368
7386
if (count < 0 ) {
@@ -7813,6 +7831,8 @@ public final <U, V> Observable<T> timeout(Func0<? extends Observable<U>> firstTi
7813
7831
* @return an Observable that mirrors the source Observable, but switches to the {@code other} Observable if
7814
7832
* either the first item emitted by the source Observable or any subsequent item don't arrive within
7815
7833
* time windows defined by the timeout selectors
7834
+ * @throws NullPointerException
7835
+ * if {@code timeoutSelector} is null
7816
7836
*/
7817
7837
public final <U , V > Observable <T > timeout (Func0 <? extends Observable <U >> firstTimeoutSelector , Func1 <? super T , ? extends Observable <V >> timeoutSelector , Observable <? extends T > other ) {
7818
7838
if (timeoutSelector == null ) {
0 commit comments