19
19
20
20
import java .util .ArrayList ;
21
21
import java .util .Arrays ;
22
- import java .util .Collection ;
23
22
import java .util .List ;
24
23
import java .util .concurrent .Future ;
25
24
import java .util .concurrent .TimeUnit ;
@@ -544,7 +543,7 @@ public static <T> Observable<T> from(Iterable<? extends T> iterable) {
544
543
* <p>Implementation note: the entire iterable sequence will be immediately emitted each time an {@link Observer} subscribes. Since this occurs before the {@link Subscription} is returned,
545
544
* it in not possible to unsubscribe from the sequence before it completes.
546
545
*
547
- * @param array
546
+ * @param items
548
547
* the source sequence
549
548
* @param <T>
550
549
* the type of items in the {@link Iterable} sequence and the type of items to be
@@ -1434,7 +1433,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends Observable<
1434
1433
}
1435
1434
1436
1435
/**
1437
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1436
+ * This behaves like {@link #merge(Observable, Observable )} except that if any of the merged Observables
1438
1437
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1439
1438
* refrain from propagating that error notification until all of the merged Observables have
1440
1439
* finished emitting items.
@@ -1462,7 +1461,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1462
1461
}
1463
1462
1464
1463
/**
1465
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1464
+ * This behaves like {@link #merge(Observable, Observable, Observable )} except that if any of the merged Observables
1466
1465
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1467
1466
* refrain from propagating that error notification until all of the merged Observables have
1468
1467
* finished emitting items.
@@ -1492,7 +1491,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1492
1491
}
1493
1492
1494
1493
/**
1495
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1494
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1496
1495
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1497
1496
* refrain from propagating that error notification until all of the merged Observables have
1498
1497
* finished emitting items.
@@ -1524,7 +1523,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1524
1523
}
1525
1524
1526
1525
/**
1527
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1526
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1528
1527
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1529
1528
* refrain from propagating that error notification until all of the merged Observables have
1530
1529
* finished emitting items.
@@ -1558,7 +1557,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1558
1557
}
1559
1558
1560
1559
/**
1561
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1560
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1562
1561
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1563
1562
* refrain from propagating that error notification until all of the merged Observables have
1564
1563
* finished emitting items.
@@ -1594,7 +1593,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1594
1593
}
1595
1594
1596
1595
/**
1597
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1596
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1598
1597
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1599
1598
* refrain from propagating that error notification until all of the merged Observables have
1600
1599
* finished emitting items.
@@ -1632,7 +1631,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1632
1631
}
1633
1632
1634
1633
/**
1635
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1634
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable, Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1636
1635
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1637
1636
* refrain from propagating that error notification until all of the merged Observables have
1638
1637
* finished emitting items.
@@ -1672,7 +1671,7 @@ public static <T> Observable<T> mergeDelayError(Observable<? extends T> t1, Obse
1672
1671
}
1673
1672
1674
1673
/**
1675
- * This behaves like {@link #merge(Observable... )} except that if any of the merged Observables
1674
+ * This behaves like {@link #merge(Observable, Observable, Observable, Observable, Observable, Observable, Observable, Observable, Observable )} except that if any of the merged Observables
1676
1675
* notify of an error via {@link Observer#onError onError}, {@code mergeDelayError} will
1677
1676
* refrain from propagating that error notification until all of the merged Observables have
1678
1677
* finished emitting items.
@@ -1832,7 +1831,7 @@ public static Observable<Long> interval(long interval, TimeUnit unit, Scheduler
1832
1831
* The {@link TimeUnit} for the timeout.
1833
1832
*
1834
1833
* @return An {@link Observable} which filters out values which are too quickly followed up with newer values.
1835
- * @see {@link #throttleWithTimeout};
1834
+ * @see #throttleWithTimeout(long, TimeUnit)
1836
1835
*/
1837
1836
public Observable <T > debounce (long timeout , TimeUnit unit ) {
1838
1837
return create (OperationDebounce .debounce (this , timeout , unit ));
@@ -1860,10 +1859,10 @@ public Observable<T> debounce(long timeout, TimeUnit unit) {
1860
1859
* @param scheduler
1861
1860
* The {@link Scheduler} to use internally to manage the timers which handle timeout for each event.
1862
1861
* @return Observable which performs the throttle operation.
1863
- * @see {@link #throttleWithTimeout};
1862
+ * @see #throttleWithTimeout(long, TimeUnit, Scheduler)
1864
1863
*/
1865
1864
public Observable <T > debounce (long timeout , TimeUnit unit , Scheduler scheduler ) {
1866
- return create (OperationDebounce .debounce (this , timeout , unit ));
1865
+ return create (OperationDebounce .debounce (this , timeout , unit , scheduler ));
1867
1866
}
1868
1867
1869
1868
/**
@@ -1887,7 +1886,7 @@ public Observable<T> debounce(long timeout, TimeUnit unit, Scheduler scheduler)
1887
1886
* The {@link TimeUnit} for the timeout.
1888
1887
*
1889
1888
* @return An {@link Observable} which filters out values which are too quickly followed up with newer values.
1890
- * @see {@link #debounce}
1889
+ * @see #debounce(long, TimeUnit)
1891
1890
*/
1892
1891
public Observable <T > throttleWithTimeout (long timeout , TimeUnit unit ) {
1893
1892
return create (OperationDebounce .debounce (this , timeout , unit ));
@@ -1907,7 +1906,7 @@ public Observable<T> throttleWithTimeout(long timeout, TimeUnit unit) {
1907
1906
* @param scheduler
1908
1907
* The {@link Scheduler} to use internally to manage the timers which handle timeout for each event.
1909
1908
* @return Observable which performs the throttle operation.
1910
- * @see {@link #debounce}
1909
+ * @see #debounce(long, TimeUnit, Scheduler)
1911
1910
*/
1912
1911
public Observable <T > throttleWithTimeout (long timeout , TimeUnit unit , Scheduler scheduler ) {
1913
1912
return create (OperationDebounce .debounce (this , timeout , unit , scheduler ));
@@ -1920,12 +1919,10 @@ public Observable<T> throttleWithTimeout(long timeout, TimeUnit unit, Scheduler
1920
1919
* <p>
1921
1920
* <img width="640" src="https://github.com/Netflix/RxJava/wiki/images/rx-operators/throttleFirst.png">
1922
1921
*
1923
- * @param skipDuration
1922
+ * @param windowDuration
1924
1923
* Time to wait before sending another value after emitting last value.
1925
1924
* @param unit
1926
1925
* The unit of time for the specified timeout.
1927
- * @param scheduler
1928
- * The {@link Scheduler} to use internally to manage the timers which handle timeout for each event.
1929
1926
* @return Observable which performs the throttle operation.
1930
1927
*/
1931
1928
public Observable <T > throttleFirst (long windowDuration , TimeUnit unit ) {
@@ -1963,7 +1960,7 @@ public Observable<T> throttleFirst(long skipDuration, TimeUnit unit, Scheduler s
1963
1960
* @param unit
1964
1961
* The unit of time for the specified interval.
1965
1962
* @return Observable which performs the throttle operation.
1966
- * @see {@link #sample(long, TimeUnit)}
1963
+ * @see #sample(long, TimeUnit)
1967
1964
*/
1968
1965
public Observable <T > throttleLast (long intervalDuration , TimeUnit unit ) {
1969
1966
return sample (intervalDuration , unit );
@@ -1981,7 +1978,7 @@ public Observable<T> throttleLast(long intervalDuration, TimeUnit unit) {
1981
1978
* @param unit
1982
1979
* The unit of time for the specified interval.
1983
1980
* @return Observable which performs the throttle operation.
1984
- * @see {@link #sample(long, TimeUnit, Scheduler)}
1981
+ * @see #sample(long, TimeUnit, Scheduler)
1985
1982
*/
1986
1983
public Observable <T > throttleLast (long intervalDuration , TimeUnit unit , Scheduler scheduler ) {
1987
1984
return sample (intervalDuration , unit , scheduler );
@@ -2727,7 +2724,7 @@ public Observable<Observable<T>> window(int count) {
2727
2724
* The maximum size of each window before it should be emitted.
2728
2725
* @param skip
2729
2726
* How many produced values need to be skipped before starting a new window. Note that when "skip" and
2730
- * "count" are equals that this is the same operation as {@link Observable #window(Observable, int)}.
2727
+ * "count" are equals that this is the same operation as {@link #window(int)}.
2731
2728
* @return
2732
2729
* An {@link Observable} which produces windows every "skipped" values containing at most
2733
2730
* "count" produced values.
@@ -3334,9 +3331,6 @@ public Observable<T> retry(int retryCount) {
3334
3331
* <p>
3335
3332
* For example, if an Observable fails on first time but emits [1, 2] then succeeds the second time and
3336
3333
* emits [1, 2, 3, 4, 5] then the complete output would be [1, 2, 1, 2, 3, 4, 5, onCompleted].
3337
- *
3338
- * @param retryCount
3339
- * Number of retry attempts before failing.
3340
3334
* @return Observable with retry logic.
3341
3335
*/
3342
3336
public Observable <T > retry () {
@@ -3657,7 +3651,7 @@ public Observable<T> takeWhileWithIndex(final Func2<? super T, ? super Integer,
3657
3651
* @return an Observable that emits only the very first item from the source, or none if the
3658
3652
* source Observable completes without emitting a single item.
3659
3653
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229177%28v=vs.103%29.aspx">MSDN: Observable.First</a>
3660
- * @see {@link #first()}
3654
+ * @see #first()
3661
3655
*/
3662
3656
public Observable <T > takeFirst () {
3663
3657
return first ();
@@ -3672,7 +3666,7 @@ public Observable<T> takeFirst() {
3672
3666
* @return an Observable that emits only the very first item satisfying the given condition from the source,
3673
3667
* or none if the source Observable completes without emitting a single matching item.
3674
3668
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229177%28v=vs.103%29.aspx">MSDN: Observable.First</a>
3675
- * @see {@link #first(Func1)}
3669
+ * @see #first(Func1)
3676
3670
*/
3677
3671
public Observable <T > takeFirst (Func1 <? super T , Boolean > predicate ) {
3678
3672
return first (predicate );
@@ -3812,8 +3806,6 @@ public Observable<T> startWith(Iterable<T> values) {
3812
3806
*
3813
3807
* @param t1
3814
3808
* item to include
3815
- * @param values
3816
- * Iterable of the items you want the modified Observable to emit first
3817
3809
* @return an Observable that exhibits the modified behavior
3818
3810
*/
3819
3811
public Observable <T > startWith (T t1 ) {
@@ -3829,8 +3821,6 @@ public Observable<T> startWith(T t1) {
3829
3821
* item to include
3830
3822
* @param t2
3831
3823
* item to include
3832
- * @param values
3833
- * Iterable of the items you want the modified Observable to emit first
3834
3824
* @return an Observable that exhibits the modified behavior
3835
3825
*/
3836
3826
public Observable <T > startWith (T t1 , T t2 ) {
@@ -3848,8 +3838,6 @@ public Observable<T> startWith(T t1, T t2) {
3848
3838
* item to include
3849
3839
* @param t3
3850
3840
* item to include
3851
- * @param values
3852
- * Iterable of the items you want the modified Observable to emit first
3853
3841
* @return an Observable that exhibits the modified behavior
3854
3842
*/
3855
3843
public Observable <T > startWith (T t1 , T t2 , T t3 ) {
@@ -3869,8 +3857,6 @@ public Observable<T> startWith(T t1, T t2, T t3) {
3869
3857
* item to include
3870
3858
* @param t4
3871
3859
* item to include
3872
- * @param values
3873
- * Iterable of the items you want the modified Observable to emit first
3874
3860
* @return an Observable that exhibits the modified behavior
3875
3861
*/
3876
3862
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 ) {
@@ -3892,8 +3878,6 @@ public Observable<T> startWith(T t1, T t2, T t3, T t4) {
3892
3878
* item to include
3893
3879
* @param t5
3894
3880
* item to include
3895
- * @param values
3896
- * Iterable of the items you want the modified Observable to emit first
3897
3881
* @return an Observable that exhibits the modified behavior
3898
3882
*/
3899
3883
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 , T t5 ) {
@@ -3917,8 +3901,6 @@ public Observable<T> startWith(T t1, T t2, T t3, T t4, T t5) {
3917
3901
* item to include
3918
3902
* @param t6
3919
3903
* item to include
3920
- * @param values
3921
- * Iterable of the items you want the modified Observable to emit first
3922
3904
* @return an Observable that exhibits the modified behavior
3923
3905
*/
3924
3906
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 ) {
@@ -3944,8 +3926,6 @@ public Observable<T> startWith(T t1, T t2, T t3, T t4, T t5, T t6) {
3944
3926
* item to include
3945
3927
* @param t7
3946
3928
* item to include
3947
- * @param values
3948
- * Iterable of the items you want the modified Observable to emit first
3949
3929
* @return an Observable that exhibits the modified behavior
3950
3930
*/
3951
3931
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 ) {
@@ -3973,8 +3953,6 @@ public Observable<T> startWith(T t1, T t2, T t3, T t4, T t5, T t6, T t7) {
3973
3953
* item to include
3974
3954
* @param t8
3975
3955
* item to include
3976
- * @param values
3977
- * Iterable of the items you want the modified Observable to emit first
3978
3956
* @return an Observable that exhibits the modified behavior
3979
3957
*/
3980
3958
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 , T t8 ) {
@@ -4004,8 +3982,6 @@ public Observable<T> startWith(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8) {
4004
3982
* item to include
4005
3983
* @param t9
4006
3984
* item to include
4007
- * @param values
4008
- * Iterable of the items you want the modified Observable to emit first
4009
3985
* @return an Observable that exhibits the modified behavior
4010
3986
*/
4011
3987
public Observable <T > startWith (T t1 , T t2 , T t3 , T t4 , T t5 , T t6 , T t7 , T t8 , T t9 ) {
0 commit comments