@@ -589,8 +589,8 @@ public void onNext(T args) {
589
589
* <p>
590
590
* This is similar to {@link #subscribe(Observer)} but blocks. Because it blocks it does not need the {@link Observer#onCompleted()} or {@link Observer#onError(Exception)} methods.
591
591
*
592
- * @param onNext
593
- * {@link Action1}
592
+ * @param o
593
+ * onNext {@link Action1 action }
594
594
* @throws RuntimeException
595
595
* if error occurs
596
596
*/
@@ -901,7 +901,7 @@ public static <T> Observable<T> where(Observable<T> that, Func1<T, Boolean> pred
901
901
* @param <T>
902
902
* the type of items in the {@link Iterable} sequence and the type emitted by the resulting Observable
903
903
* @return an Observable that emits each item in the source {@link Iterable} sequence
904
- * @see {@link #toObservable(Iterable)}
904
+ * @see #toObservable(Iterable)
905
905
*/
906
906
public static <T > Observable <T > from (Iterable <T > iterable ) {
907
907
return toObservable (iterable );
@@ -915,7 +915,7 @@ public static <T> Observable<T> from(Iterable<T> iterable) {
915
915
* @param <T>
916
916
* the type of items in the Array, and the type of items emitted by the resulting Observable
917
917
* @return an Observable that emits each item in the source Array
918
- * @see {@link #toObservable(Object...)}
918
+ * @see #toObservable(Object...)
919
919
*/
920
920
public static <T > Observable <T > from (T ... items ) {
921
921
return toObservable (items );
@@ -1219,7 +1219,7 @@ public R call(T t1) {
1219
1219
* @return an Observable that emits a sequence that is the result of applying the transformation
1220
1220
* function to each item emitted by the source Observable and merging the results of
1221
1221
* the Observables obtained from this transformation
1222
- * @see {@link #flatMap(Observable, Func1)}
1222
+ * @see #flatMap(Observable, Func1)
1223
1223
*/
1224
1224
public static <T , R > Observable <R > mapMany (Observable <T > sequence , Func1 <T , Observable <R >> func ) {
1225
1225
return create (OperationMap .mapMany (sequence , func ));
@@ -1407,7 +1407,7 @@ public static <T> Observable<T> finallyDo(Observable<T> source, Action0 action)
1407
1407
* @return an Observable that emits a sequence that is the result of applying the transformation
1408
1408
* function to each item emitted by the source Observable and merging the results of
1409
1409
* the Observables obtained from this transformation
1410
- * @see {@link #mapMany(Observable, Func1)}
1410
+ * @see #mapMany(Observable, Func1)
1411
1411
*/
1412
1412
public static <T , R > Observable <R > flatMap (Observable <T > sequence , Func1 <T , Observable <R >> func ) {
1413
1413
return mapMany (sequence , func );
@@ -1435,7 +1435,7 @@ public static <T, R> Observable<R> flatMap(Observable<T> sequence, Func1<T, Obse
1435
1435
* @return an Observable that emits a sequence that is the result of applying the transformation
1436
1436
* function to each item emitted by the source Observable and merging the results of
1437
1437
* the Observables obtained from this transformation
1438
- * @see {@link #mapMany(Observable, Func1)}
1438
+ * @see #mapMany(Observable, Func1)
1439
1439
*/
1440
1440
public static <T , R > Observable <R > flatMap (Observable <T > sequence , final Object func ) {
1441
1441
return mapMany (sequence , func );
@@ -2038,24 +2038,24 @@ public static <T> Observable<T> takeLast(final Observable<T> items, final int co
2038
2038
}
2039
2039
2040
2040
/**
2041
- * Returns a specified number of contiguous values from the start of an observable sequence.
2041
+ * Returns the values from the start of an observable sequence while a given predicate remains true .
2042
2042
*
2043
2043
* @param items
2044
2044
* @param predicate
2045
2045
* a function to test each source element for a condition
2046
- * @return
2046
+ * @return the values from the start of the given sequence
2047
2047
*/
2048
2048
public static <T > Observable <T > takeWhile (final Observable <T > items , Func1 <T , Boolean > predicate ) {
2049
2049
return create (OperationTakeWhile .takeWhile (items , predicate ));
2050
2050
}
2051
2051
2052
2052
/**
2053
- * Returns a specified number of contiguous values from the start of an observable sequence.
2053
+ * Returns the values from the start of an observable sequence while a given predicate remains true .
2054
2054
*
2055
2055
* @param items
2056
2056
* @param predicate
2057
2057
* a function to test each source element for a condition
2058
- * @return
2058
+ * @return the values from the start of the given sequence
2059
2059
*/
2060
2060
public static <T > Observable <T > takeWhile (final Observable <T > items , Object predicate ) {
2061
2061
@ SuppressWarnings ("rawtypes" )
@@ -2075,7 +2075,7 @@ public Boolean call(T t) {
2075
2075
* @param items
2076
2076
* @param predicate
2077
2077
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
2078
- * @return
2078
+ * @return the values from the start of the given sequence
2079
2079
*/
2080
2080
public static <T > Observable <T > takeWhileWithIndex (final Observable <T > items , Func2 <T , Integer , Boolean > predicate ) {
2081
2081
return create (OperationTakeWhile .takeWhileWithIndex (items , predicate ));
@@ -2110,7 +2110,7 @@ public Observable<Timestamped<T>> timestamp() {
2110
2110
*
2111
2111
* @param that
2112
2112
* the source Observable
2113
- * @returna Future that expects a single item emitted by the source Observable
2113
+ * @return a Future that expects a single item emitted by the source Observable
2114
2114
*/
2115
2115
public static <T > Future <T > toFuture (final Observable <T > that ) {
2116
2116
return OperationToFuture .toFuture (that );
@@ -2424,7 +2424,7 @@ public static <T> Observable<T> toObservable(T... items) {
2424
2424
* @param sequence
2425
2425
* @throws ClassCastException
2426
2426
* if T objects do not implement Comparable
2427
- * @return
2427
+ * @return an observable containing the sorted list
2428
2428
*/
2429
2429
public static <T > Observable <List <T >> toSortedList (Observable <T > sequence ) {
2430
2430
return create (OperationToObservableSortedList .toSortedList (sequence ));
@@ -2437,7 +2437,7 @@ public static <T> Observable<List<T>> toSortedList(Observable<T> sequence) {
2437
2437
*
2438
2438
* @param sequence
2439
2439
* @param sortFunction
2440
- * @return
2440
+ * @return an observable containing the sorted list
2441
2441
*/
2442
2442
public static <T > Observable <List <T >> toSortedList (Observable <T > sequence , Func2 <T , T , Integer > sortFunction ) {
2443
2443
return create (OperationToObservableSortedList .toSortedList (sequence , sortFunction ));
@@ -2450,7 +2450,7 @@ public static <T> Observable<List<T>> toSortedList(Observable<T> sequence, Func2
2450
2450
*
2451
2451
* @param sequence
2452
2452
* @param sortFunction
2453
- * @return
2453
+ * @return an observable containing the sorted list
2454
2454
*/
2455
2455
public static <T > Observable <List <T >> toSortedList (Observable <T > sequence , final Object sortFunction ) {
2456
2456
@ SuppressWarnings ("rawtypes" )
@@ -2801,7 +2801,7 @@ public Boolean call(T t1) {
2801
2801
* @return an Observable that emits a sequence that is the result of applying the transformation
2802
2802
* function to each item in the input sequence and merging the results of the
2803
2803
* Observables obtained from this transformation.
2804
- * @see {@link #mapMany(Func1)}
2804
+ * @see #mapMany(Func1)
2805
2805
*/
2806
2806
public <R > Observable <R > flatMap (Func1 <T , Observable <R >> func ) {
2807
2807
return mapMany (func );
@@ -2822,7 +2822,7 @@ public <R> Observable<R> flatMap(Func1<T, Observable<R>> func) {
2822
2822
* @return an Observable that emits a sequence that is the result of applying the transformation'
2823
2823
* function to each item in the input sequence and merging the results of the
2824
2824
* Observables obtained from this transformation.
2825
- * @see {@link #mapMany(Object)}
2825
+ * @see #mapMany(Object)
2826
2826
*/
2827
2827
public <R > Observable <R > flatMap (final Object callback ) {
2828
2828
return mapMany (callback );
@@ -2973,7 +2973,7 @@ public R call(T t1) {
2973
2973
* @return an Observable that emits a sequence that is the result of applying the transformation
2974
2974
* function to each item in the input sequence and merging the results of the
2975
2975
* Observables obtained from this transformation.
2976
- * @see {@link #flatMap(Func1)}
2976
+ * @see #flatMap(Func1)
2977
2977
*/
2978
2978
public <R > Observable <R > mapMany (Func1 <T , Observable <R >> func ) {
2979
2979
return mapMany (this , func );
@@ -2994,7 +2994,7 @@ public <R> Observable<R> mapMany(Func1<T, Observable<R>> func) {
2994
2994
* @return an Observable that emits a sequence that is the result of applying the transformation'
2995
2995
* function to each item in the input sequence and merging the results of the
2996
2996
* Observables obtained from this transformation.
2997
- * @see {@link #flatMap(Object))}
2997
+ * @see #flatMap(Object)
2998
2998
*/
2999
2999
public <R > Observable <R > mapMany (final Object callback ) {
3000
3000
@ SuppressWarnings ("rawtypes" )
@@ -3490,18 +3490,18 @@ public Observable<T> take(final int num) {
3490
3490
*
3491
3491
* @param predicate
3492
3492
* a function to test each source element for a condition
3493
- * @return
3493
+ * @return the values from the start of the given sequence
3494
3494
*/
3495
3495
public Observable <T > takeWhile (final Func1 <T , Boolean > predicate ) {
3496
3496
return takeWhile (this , predicate );
3497
3497
}
3498
3498
3499
3499
/**
3500
- * Returns a specified number of contiguous values from the start of an observable sequence .
3500
+ * Returns an Observable that items emitted by the source Observable as long as a specified condition is true .
3501
3501
*
3502
3502
* @param predicate
3503
3503
* a function to test each source element for a condition
3504
- * @return
3504
+ * @return the values from the start of the given sequence
3505
3505
*/
3506
3506
public Observable <T > takeWhile (final Object predicate ) {
3507
3507
return takeWhile (this , predicate );
@@ -3512,7 +3512,7 @@ public Observable<T> takeWhile(final Object predicate) {
3512
3512
*
3513
3513
* @param predicate
3514
3514
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
3515
- * @return
3515
+ * @return the values from the start of the given sequence
3516
3516
*/
3517
3517
public Observable <T > takeWhileWithIndex (final Func2 <T , Integer , Boolean > predicate ) {
3518
3518
return takeWhileWithIndex (this , predicate );
@@ -3523,7 +3523,7 @@ public Observable<T> takeWhileWithIndex(final Func2<T, Integer, Boolean> predica
3523
3523
*
3524
3524
* @param predicate
3525
3525
* a function to test each element for a condition; the second parameter of the function represents the index of the source element; otherwise, false.
3526
- * @return
3526
+ * @return the values from the start of the given sequence
3527
3527
*/
3528
3528
public Observable <T > takeWhileWithIndex (final Object predicate ) {
3529
3529
return takeWhileWithIndex (this , predicate );
@@ -3561,7 +3561,7 @@ public <E> Observable<T> takeUntil(Observable<E> other) {
3561
3561
* <p>
3562
3562
* This will throw an exception if the Observable emits more than 1 value. If more than 1 are expected then use <code>toList().toFuture()</code>.
3563
3563
*
3564
- * @returna Future that expects a single item emitted by the source Observable
3564
+ * @return a Future that expects a single item emitted by the source Observable
3565
3565
*/
3566
3566
public Future <T > toFuture () {
3567
3567
return toFuture (this );
@@ -3594,7 +3594,7 @@ public Observable<List<T>> toList() {
3594
3594
*
3595
3595
* @throws ClassCastException
3596
3596
* if T objects do not implement Comparable
3597
- * @return
3597
+ * @return an observable containing the sorted list
3598
3598
*/
3599
3599
public Observable <List <T >> toSortedList () {
3600
3600
return toSortedList (this );
@@ -3606,7 +3606,7 @@ public Observable<List<T>> toSortedList() {
3606
3606
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toSortedList.png">
3607
3607
*
3608
3608
* @param sortFunction
3609
- * @return
3609
+ * @return an observable containing the sorted list
3610
3610
*/
3611
3611
public Observable <List <T >> toSortedList (Func2 <T , T , Integer > sortFunction ) {
3612
3612
return toSortedList (this , sortFunction );
@@ -3618,7 +3618,7 @@ public Observable<List<T>> toSortedList(Func2<T, T, Integer> sortFunction) {
3618
3618
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toSortedList.png">
3619
3619
*
3620
3620
* @param sortFunction
3621
- * @return
3621
+ * @return an observable containing the sorted list
3622
3622
*/
3623
3623
public Observable <List <T >> toSortedList (final Object sortFunction ) {
3624
3624
return toSortedList (this , sortFunction );
@@ -3705,7 +3705,7 @@ public Iterable<T> mostRecent(T initialValue) {
3705
3705
* NOTE: If strong reasons for not depending on package names comes up then the implementation of this method can change to looking for a marker interface.
3706
3706
*
3707
3707
* @param f
3708
- * @return
3708
+ * @return {@code true} if the given function is an internal implementation, and {@code false} otherwise.
3709
3709
*/
3710
3710
private boolean isInternalImplementation (Object o ) {
3711
3711
if (o == null ) {
0 commit comments