Skip to content

Commit caeaf58

Browse files
Merge pull request #691 from Netflix/docs
javadoc improvements:
2 parents 2952598 + 866ddd3 commit caeaf58

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ public static <T> Observable<T> switchOnNext(Observable<? extends Observable<? e
19361936
* emits the items emitted by the most recently emitted of those
19371937
* Observables.
19381938
* <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">
19401940
*
19411941
* @param sequenceOfSequences the source Observable that emits Observables
19421942
* @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,
19761976
*
19771977
* @param <K> the case key type
19781978
* @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
19801981
* @param mapOfCases a map that maps a case key to an Observable
19811982
* @param scheduler the scheduler where the empty observable is observed
19821983
* @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
39453946
* Observable, and then merging those resulting Observables and emitting the
39463947
* results of this merger.
39473948
* <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">
39513950
*
39523951
* @param func a function that, when applied to an item emitted by the
39533952
* source Observable, returns an Observable
@@ -3965,9 +3964,10 @@ public <R> Observable<R> mergeMap(Func1<? super T, ? extends Observable<? extend
39653964
/**
39663965
* Creates a new Observable by applying a function that you supply to each
39673966
* 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.
39703969
* <p>
3970+
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/concatMap.png">
39713971
*
39723972
* @param func a function that, when applied to an item emitted by the
39733973
* source Observable, returns an Observable
@@ -3982,9 +3982,11 @@ public <R> Observable<R> concatMap(Func1<? super T, ? extends Observable<? exten
39823982

39833983
/**
39843984
* 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.
39863988
* <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">
39883990
*
39893991
* @param func a function that, when applied to an item emitted by the
39903992
* source Observable, returns an Observable
@@ -4035,7 +4037,7 @@ public <R> Observable<R> map(Func1<? super T, ? extends R> func) {
40354037
* emitted by an Observable and emits the results of these function
40364038
* applications.
40374039
* <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">
40394041
*
40404042
* @param func a function to apply to each item emitted by the Observable
40414043
* 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) {
40444046
* transformed by the given function
40454047
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#mapwithindex">RxJava Wiki: mapWithIndex()</a>
40464048
* @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)}
40484050
*/
40494051
public <R> Observable<R> mapWithIndex(Func2<? super T, Integer, ? extends R> func) {
40504052
return create(OperationMap.mapWithIndex(this, func));
@@ -4285,8 +4287,8 @@ public Observable<T> onErrorReturn(Func1<Throwable, ? extends T> resumeFunction)
42854287
* <p>
42864288
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/reduce.png">
42874289
* <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
42904292
* programming contexts. Groovy, for instance, has an <code>inject</code>
42914293
* method that does a similar operation on lists.
42924294
*
@@ -5184,7 +5186,7 @@ public ConnectableObservable<T> publishLast() {
51845186
*
51855187
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#reduce-or-aggregate">RxJava Wiki: aggregate()</a>
51865188
* @see #reduce(Func2)
5187-
* @deprecated
5189+
* @deprecated use #reduce(Func2)
51885190
*/
51895191
public Observable<T> aggregate(Func2<T, T, T> accumulator) {
51905192
return reduce(accumulator);
@@ -5200,8 +5202,8 @@ public Observable<T> aggregate(Func2<T, T, T> accumulator) {
52005202
* <p>
52015203
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/reduceSeed.png">
52025204
* <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
52055207
* programming contexts. Groovy, for instance, has an <code>inject</code>
52065208
* method that does a similar operation on lists.
52075209
*
@@ -5227,7 +5229,7 @@ public <R> Observable<R> reduce(R initialValue, Func2<R, ? super T, R> accumulat
52275229
*
52285230
* @see <a href="https://github.com/Netflix/RxJava/wiki/Transforming-Observables#reduce-or-aggregate">RxJava Wiki: aggregate()</a>
52295231
* @see #reduce(Object, Func2)
5230-
* @deprecated
5232+
* @deprecated use #reduce(Object, Func2)
52315233
*/
52325234
public <R> Observable<R> aggregate(R initialValue, Func2<R, ? super T, R> accumulator) {
52335235
return reduce(initialValue, accumulator);
@@ -6785,7 +6787,7 @@ public void onNext(T args) { }
67856787
* Invokes an action when the source Observable calls
67866788
* <code>onNext</code>.
67876789
* <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">
67896791
*
67906792
* @param onCompleted the action to invoke when the source Observable calls
67916793
* <code>onCompleted</code>

rxjava-core/src/main/java/rx/subjects/ReplaySubject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Subject that retains all events and will replay them to an {@link Observer} that subscribes.
3131
* <p>
32-
* <img src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/S.ReplaySubject.png">
32+
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/S.ReplaySubject.png">
3333
* <p>
3434
* Example usage:
3535
* <p>

0 commit comments

Comments
 (0)