@@ -1103,6 +1103,8 @@ public static <T> Observable<T> just(T value) {
1103
1103
* Returns an Observable that emits a single item and then completes on a
1104
1104
* specified scheduler.
1105
1105
* <p>
1106
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/just.s.png">
1107
+ * <p>
1106
1108
* This is a scheduler version of {@link Observable#just(Object)}.
1107
1109
*
1108
1110
* @param value the item to pass to the {@link Observer}'s
@@ -1387,7 +1389,6 @@ public static <T> Observable<T> concat(Observable<? extends T> t1, Observable<?
1387
1389
* @param t1 an Observable to be concatenated
1388
1390
* @param t2 an Observable to be concatenated
1389
1391
* @param t3 an Observable to be concatenated
1390
- *
1391
1392
* @return an Observable that emits items that are the result of combining
1392
1393
* the items emitted by the {@code source} Observables, one after
1393
1394
* the other
@@ -1972,7 +1973,7 @@ public static Observable<Long> interval(long interval, TimeUnit unit) {
1972
1973
/**
1973
1974
* Emits an item each time interval (containing a sequential number).
1974
1975
* <p>
1975
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/interval.png">
1976
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/interval.s. png">
1976
1977
*
1977
1978
* @param interval interval size in time units (see below)
1978
1979
* @param unit time units to use for the interval size
@@ -2021,7 +2022,7 @@ public Observable<T> debounce(long timeout, TimeUnit unit) {
2021
2022
* Note: If events keep firing faster than the timeout then no data will be
2022
2023
* emitted.
2023
2024
* <p>
2024
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/debounce.png">
2025
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/debounce.s. png">
2025
2026
* <p>
2026
2027
* Information on debounce vs throttle:
2027
2028
* <p>
@@ -2081,7 +2082,7 @@ public Observable<T> throttleWithTimeout(long timeout, TimeUnit unit) {
2081
2082
* Note: If events keep firing faster than the timeout then no data will be
2082
2083
* emitted.
2083
2084
* <p>
2084
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleWithTimeout.png">
2085
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleWithTimeout.s. png">
2085
2086
* <p>
2086
2087
* Information on debounce vs throttle:
2087
2088
* <p>
@@ -2131,7 +2132,7 @@ public Observable<T> throttleFirst(long windowDuration, TimeUnit unit) {
2131
2132
* This differs from {@link #throttleLast} in that this only tracks passage
2132
2133
* of time whereas {@link #throttleLast} ticks at scheduled intervals.
2133
2134
* <p>
2134
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleFirst.png">
2135
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleFirst.s. png">
2135
2136
*
2136
2137
* @param skipDuration time to wait before sending another item after
2137
2138
* emitting the last item
@@ -2174,11 +2175,13 @@ public Observable<T> throttleLast(long intervalDuration, TimeUnit unit) {
2174
2175
* scheduled interval whereas {@link #throttleFirst} does not tick, it just
2175
2176
* tracks passage of time.
2176
2177
* <p>
2177
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleLast.png">
2178
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/throttleLast.s. png">
2178
2179
*
2179
2180
* @param intervalDuration duration of windows within which the last item
2180
2181
* will be emitted
2181
2182
* @param unit the unit of time for the specified interval
2183
+ * @param scheduler the {@link Scheduler} to use internally to manage the
2184
+ * timers that handle timeout for each event
2182
2185
* @return an Observable that performs the throttle operation
2183
2186
* @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#takelast">RxJava Wiki: throttleLast()</a>
2184
2187
* @see #sample(long, TimeUnit, Scheduler)
@@ -2227,7 +2230,7 @@ public static <T> Observable<T> from(Future<? extends T> future) {
2227
2230
/**
2228
2231
* Converts a {@link Future} into an Observable.
2229
2232
* <p>
2230
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/from.Future.png">
2233
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/from.Future.s. png">
2231
2234
* <p>
2232
2235
* You can convert any object that supports the {@link Future} interface
2233
2236
* into an Observable that emits the return value of the {@link Future#get}
@@ -2913,7 +2916,7 @@ public Observable<List<T>> buffer(long timespan, TimeUnit unit) {
2913
2916
/**
2914
2917
* Creates an Observable that produces buffers of collected values.
2915
2918
* <p>
2916
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer5.png">
2919
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer5.s. png">
2917
2920
* <p>
2918
2921
* This Observable produces connected, non-overlapping buffers, each of a
2919
2922
* fixed duration specified by the <code>timespan</code> argument. When the
@@ -2966,7 +2969,7 @@ public Observable<List<T>> buffer(long timespan, TimeUnit unit, int count) {
2966
2969
* first). When the source Observable completes or encounters an error, the
2967
2970
* current buffer is emitted and the event is propagated.
2968
2971
* <p>
2969
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer6.png">
2972
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer6.s. png">
2970
2973
*
2971
2974
* @param timespan the period of time each buffer collects values before it
2972
2975
* should be emitted and replaced with a new buffer
@@ -3016,7 +3019,7 @@ public Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit unit)
3016
3019
* source Observable completes or encounters an error, the current buffer is
3017
3020
* emitted and the event is propagated.
3018
3021
* <p>
3019
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer7.png">
3022
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/buffer7.s. png">
3020
3023
*
3021
3024
* @param timespan the period of time each buffer collects values before it
3022
3025
* should be emitted
@@ -3153,7 +3156,7 @@ public Observable<Observable<T>> window(long timespan, TimeUnit unit) {
3153
3156
* source Observable completes or encounters an error, the current window is
3154
3157
* emitted and the event is propagated.
3155
3158
* <p>
3156
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window5.png">
3159
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window5.s. png">
3157
3160
*
3158
3161
* @param timespan the period of time each window collects items before it
3159
3162
* should be emitted and replaced with a new window
@@ -3201,7 +3204,7 @@ public Observable<Observable<T>> window(long timespan, TimeUnit unit, int count)
3201
3204
* first). When the source Observable completes or encounters an error, the
3202
3205
* current window is emitted and the event is propagated.
3203
3206
* <p>
3204
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window6.png">
3207
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window6.s. png">
3205
3208
*
3206
3209
* @param timespan the period of time each window collects values before it
3207
3210
* should be emitted and replaced with a new window
@@ -3251,7 +3254,7 @@ public Observable<Observable<T>> window(long timespan, long timeshift, TimeUnit
3251
3254
* source Observable completes or encounters an error, the current window is
3252
3255
* emitted and the event is propagated.
3253
3256
* <p>
3254
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window7.png">
3257
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/window7.s. png">
3255
3258
*
3256
3259
* @param timespan the period of time each window collects values before it
3257
3260
* should be emitted
@@ -4239,7 +4242,6 @@ public <R> Observable<R> parallel(Func1<Observable<T>, Observable<R>> f) {
4239
4242
* {@link Scheduler}
4240
4243
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#parallel">RxJava Wiki: parallel()</a>
4241
4244
*/
4242
-
4243
4245
public <R > Observable <R > parallel (final Func1 <Observable <T >, Observable <R >> f , final Scheduler s ) {
4244
4246
return OperationParallel .parallel (this , f , s );
4245
4247
}
@@ -4288,6 +4290,7 @@ public static <T> Observable<Observable<T>> parallelMerge(Observable<Observable<
4288
4290
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/parallelMerge.png">
4289
4291
*
4290
4292
* @param parallelObservables the number of Observables to merge into
4293
+ * @param scheduler
4291
4294
* @return an Observable of Observables constrained to number defined by
4292
4295
* <code>parallelObservables</code>.
4293
4296
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#parallelmerge">RxJava Wiki: parallelMerge()</a>
@@ -4427,7 +4430,7 @@ public Observable<T> sample(long period, TimeUnit unit) {
4427
4430
* Returns an Observable that emits the results of sampling the items
4428
4431
* emitted by the source Observable at a specified time interval.
4429
4432
* <p>
4430
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/sample.png">
4433
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/sample.s. png">
4431
4434
*
4432
4435
* @param period the sampling rate
4433
4436
* @param unit the {@link TimeUnit} in which <code>period</code> is defined
@@ -5233,7 +5236,7 @@ public Observable<T> timeout(long timeout, TimeUnit timeUnit, Observable<? exten
5233
5236
* isn't received within the specified timeout duration starting from its
5234
5237
* predecessor, a TimeoutException is propagated to the observer.
5235
5238
* <p>
5236
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeout.1 .png">
5239
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeout.1s .png">
5237
5240
*
5238
5241
* @param timeout maximum duration between values before a timeout occurs
5239
5242
* @param timeUnit the unit of time which applies to the
@@ -5255,7 +5258,7 @@ public Observable<T> timeout(long timeout, TimeUnit timeUnit, Scheduler schedule
5255
5258
* predecessor, the other observable sequence is used to produce future
5256
5259
* messages from that point on.
5257
5260
* <p>
5258
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeout.2 .png">
5261
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeout.2s .png">
5259
5262
*
5260
5263
* @param timeout maximum duration between values before a timeout occurs
5261
5264
* @param timeUnit the unit of time which applies to the
@@ -5289,7 +5292,7 @@ public Observable<TimeInterval<T>> timeInterval() {
5289
5292
* Records the time interval between consecutive items emitted by an
5290
5293
* Observable, using the specified Scheduler to compute time intervals.
5291
5294
* <p>
5292
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeInterval.png">
5295
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/timeInterval.s. png">
5293
5296
*
5294
5297
* @param scheduler Scheduler used to compute time intervals
5295
5298
* @return an Observable that emits time interval information items
@@ -5595,6 +5598,8 @@ public void onNext(T args) { }
5595
5598
5596
5599
/**
5597
5600
* Invokes an action for each item emitted by an Observable.
5601
+ * <p>
5602
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnEach.e.png">
5598
5603
*
5599
5604
* @param onNext the action to invoke for each item in the source sequence
5600
5605
* @param onError the action to invoke when the source Observable calls
@@ -5626,6 +5631,8 @@ public void onNext(T args) {
5626
5631
5627
5632
/**
5628
5633
* Invokes an action for each item emitted by an Observable.
5634
+ * <p>
5635
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnEach.ce.png">
5629
5636
*
5630
5637
* @param onNext the action to invoke for each item in the source sequence
5631
5638
* @param onError the action to invoke when the source Observable calls
@@ -5655,7 +5662,6 @@ public void onNext(T args) {
5655
5662
5656
5663
};
5657
5664
5658
-
5659
5665
return create (OperationDoOnEach .doOnEach (this , observer ));
5660
5666
}
5661
5667
0 commit comments