@@ -1936,7 +1936,7 @@ public static <T> Observable<T> switchOnNext(Observable<? extends Observable<? e
1936
1936
* emits the items emitted by the most recently emitted of those
1937
1937
* Observables.
1938
1938
* <p>
1939
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/switchDo .png">
1939
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/switchLatest .png">
1940
1940
*
1941
1941
* @param sequenceOfSequences the source Observable that emits Observables
1942
1942
* @return an Observable that emits only the items emitted by the Observable
@@ -1976,7 +1976,8 @@ public static <K, R> Observable<R> switchCase(Func0<? extends K> caseSelector,
1976
1976
*
1977
1977
* @param <K> the case key type
1978
1978
* @param <R> the result value type
1979
- * @param caseSelector the function that produces a case key when an Observer subscribes
1979
+ * @param caseSelector the function that produces a case key when an
1980
+ * Observer subscribes
1980
1981
* @param mapOfCases a map that maps a case key to an Observable
1981
1982
* @param scheduler the scheduler where the empty observable is observed
1982
1983
* @return a particular Observable chosen by key from the map of
@@ -3945,9 +3946,7 @@ public <R> Observable<R> flatMap(Func1<? super T, ? extends Observable<? extends
3945
3946
* Observable, and then merging those resulting Observables and emitting the
3946
3947
* results of this merger.
3947
3948
* <p>
3948
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/flatMap.png">
3949
- * <p>
3950
- * Note: {@code mapMany} and {@code flatMap} are equivalent.
3949
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/mergeMap.png">
3951
3950
*
3952
3951
* @param func a function that, when applied to an item emitted by the
3953
3952
* source Observable, returns an Observable
@@ -3965,9 +3964,10 @@ public <R> Observable<R> mergeMap(Func1<? super T, ? extends Observable<? extend
3965
3964
/**
3966
3965
* Creates a new Observable by applying a function that you supply to each
3967
3966
* item emitted by the source Observable, where that function returns an
3968
- * Observable, and then concatting those resulting Observables and emitting the
3969
- * results of this concat.
3967
+ * Observable, and then concatting those resulting Observables and emitting
3968
+ * the results of this concat.
3970
3969
* <p>
3970
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concatMap.png">
3971
3971
*
3972
3972
* @param func a function that, when applied to an item emitted by the
3973
3973
* source Observable, returns an Observable
@@ -3982,9 +3982,11 @@ public <R> Observable<R> concatMap(Func1<? super T, ? extends Observable<? exten
3982
3982
3983
3983
/**
3984
3984
* Creates a new Observable by applying a function that you supply to each
3985
- * item emitted by the source Observable resulting in an Observable of Observables.
3985
+ * item emitted by the source Observable resulting in an Observable of
3986
+ * Observables. Then a {@link #switchLatest(Observable)} /
3987
+ * {@link #switchOnNext(Observable)} is applied.
3986
3988
* <p>
3987
- * Then a {@link #switchLatest(Observable)} / {@link #switchOnNext(Observable)} is applied.
3989
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/switchMap.png">
3988
3990
*
3989
3991
* @param func a function that, when applied to an item emitted by the
3990
3992
* source Observable, returns an Observable
@@ -4035,7 +4037,7 @@ public <R> Observable<R> map(Func1<? super T, ? extends R> func) {
4035
4037
* emitted by an Observable and emits the results of these function
4036
4038
* applications.
4037
4039
* <p>
4038
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/map .png">
4040
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/mapWithIndex .png">
4039
4041
*
4040
4042
* @param func a function to apply to each item emitted by the Observable
4041
4043
* that takes the index of the emitted item as additional
@@ -4044,7 +4046,7 @@ public <R> Observable<R> map(Func1<? super T, ? extends R> func) {
4044
4046
* transformed by the given function
4045
4047
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#mapwithindex">RxJava Wiki: mapWithIndex()</a>
4046
4048
* @see <a href="http://msdn.microsoft.com/en-us/library/hh244311.aspx">MSDN: Observable.Select</a>
4047
- * @deprecate just use zip with {@link Observable#range(int)}
4049
+ * @deprecated just use zip with {@link Observable#range(int)}
4048
4050
*/
4049
4051
public <R > Observable <R > mapWithIndex (Func2 <? super T , Integer , ? extends R > func ) {
4050
4052
return create (OperationMap .mapWithIndex (this , func ));
@@ -4285,8 +4287,8 @@ public Observable<T> onErrorReturn(Func1<Throwable, ? extends T> resumeFunction)
4285
4287
* <p>
4286
4288
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/reduce.png">
4287
4289
* <p>
4288
- * This technique, which is called "reduce" or "aggregate" here, is
4289
- * sometimes called "fold," "accumulate," "compress," or "inject" in other
4290
+ * This technique, which is called "reduce" here, is sometimes called
4291
+ * "aggregate," "fold," "accumulate," "compress," or "inject" in other
4290
4292
* programming contexts. Groovy, for instance, has an <code>inject</code>
4291
4293
* method that does a similar operation on lists.
4292
4294
*
@@ -5184,7 +5186,7 @@ public ConnectableObservable<T> publishLast() {
5184
5186
*
5185
5187
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#reduce-or-aggregate">RxJava Wiki: aggregate()</a>
5186
5188
* @see #reduce(Func2)
5187
- * @deprecated
5189
+ * @deprecated use #reduce(Func2)
5188
5190
*/
5189
5191
public Observable <T > aggregate (Func2 <T , T , T > accumulator ) {
5190
5192
return reduce (accumulator );
@@ -5200,8 +5202,8 @@ public Observable<T> aggregate(Func2<T, T, T> accumulator) {
5200
5202
* <p>
5201
5203
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/reduceSeed.png">
5202
5204
* <p>
5203
- * This technique, which is called "reduce" or "aggregate" here, is
5204
- * sometimes called "fold," "accumulate," "compress," or "inject" in other
5205
+ * This technique, which is called "reduce" here, is sometimec called
5206
+ * "aggregate," "fold," "accumulate," "compress," or "inject" in other
5205
5207
* programming contexts. Groovy, for instance, has an <code>inject</code>
5206
5208
* method that does a similar operation on lists.
5207
5209
*
@@ -5227,7 +5229,7 @@ public <R> Observable<R> reduce(R initialValue, Func2<R, ? super T, R> accumulat
5227
5229
*
5228
5230
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#reduce-or-aggregate">RxJava Wiki: aggregate()</a>
5229
5231
* @see #reduce(Object, Func2)
5230
- * @deprecated
5232
+ * @deprecated use #reduce(Object, Func2)
5231
5233
*/
5232
5234
public <R > Observable <R > aggregate (R initialValue , Func2 <R , ? super T , R > accumulator ) {
5233
5235
return reduce (initialValue , accumulator );
@@ -6785,7 +6787,7 @@ public void onNext(T args) { }
6785
6787
* Invokes an action when the source Observable calls
6786
6788
* <code>onNext</code>.
6787
6789
* <p>
6788
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnCompleted .png">
6790
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnNext .png">
6789
6791
*
6790
6792
* @param onCompleted the action to invoke when the source Observable calls
6791
6793
* <code>onCompleted</code>
0 commit comments