@@ -205,7 +205,8 @@ public static interface Transformer<T, R> extends Func1<Observable<T>, Observabl
205
205
*/
206
206
207
207
/**
208
- * Mirrors the one Observable in an Iterable of several Observables that first emits an item.
208
+ * Mirrors the one Observable in an Iterable of several Observables that first either emits an item or sends
209
+ * a termination notification.
209
210
* <p>
210
211
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
211
212
* <dl>
@@ -215,16 +216,17 @@ public static interface Transformer<T, R> extends Func1<Observable<T>, Observabl
215
216
*
216
217
* @param sources
217
218
* an Iterable of Observable sources competing to react first
218
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
219
- * emitted an item
219
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
220
+ * emitted an item or sent a termination notification
220
221
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
221
222
*/
222
223
public final static <T > Observable <T > amb (Iterable <? extends Observable <? extends T >> sources ) {
223
224
return create (OnSubscribeAmb .amb (sources ));
224
225
}
225
226
226
227
/**
227
- * Given two Observables, mirrors the one that first emits an item.
228
+ * Given two Observables, mirrors the one that first either emits an item or sends a termination
229
+ * notification.
228
230
* <p>
229
231
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
230
232
* <dl>
@@ -236,16 +238,17 @@ public final static <T> Observable<T> amb(Iterable<? extends Observable<? extend
236
238
* an Observable competing to react first
237
239
* @param o2
238
240
* an Observable competing to react first
239
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
240
- * emitted an item
241
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
242
+ * emitted an item or sent a termination notification
241
243
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
242
244
*/
243
245
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 ) {
244
246
return create (OnSubscribeAmb .amb (o1 , o2 ));
245
247
}
246
248
247
249
/**
248
- * Given three Observables, mirrors the one that first emits an item.
250
+ * Given three Observables, mirrors the one that first either emits an item or sends a termination
251
+ * notification.
249
252
* <p>
250
253
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
251
254
* <dl>
@@ -259,16 +262,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
259
262
* an Observable competing to react first
260
263
* @param o3
261
264
* an Observable competing to react first
262
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
263
- * emitted an item
265
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
266
+ * emitted an item or sent a termination notification
264
267
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
265
268
*/
266
269
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 ) {
267
270
return create (OnSubscribeAmb .amb (o1 , o2 , o3 ));
268
271
}
269
272
270
273
/**
271
- * Given four Observables, mirrors the one that first emits an item.
274
+ * Given four Observables, mirrors the one that first either emits an item or sends a termination
275
+ * notification.
272
276
* <p>
273
277
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
274
278
* <dl>
@@ -284,16 +288,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
284
288
* an Observable competing to react first
285
289
* @param o4
286
290
* an Observable competing to react first
287
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
288
- * emitted an item
291
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
292
+ * emitted an item or sent a termination notification
289
293
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
290
294
*/
291
295
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 ) {
292
296
return create (OnSubscribeAmb .amb (o1 , o2 , o3 , o4 ));
293
297
}
294
298
295
299
/**
296
- * Given five Observables, mirrors the one that first emits an item.
300
+ * Given five Observables, mirrors the one that first either emits an item or sends a termination
301
+ * notification.
297
302
* <p>
298
303
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
299
304
* <dl>
@@ -311,16 +316,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
311
316
* an Observable competing to react first
312
317
* @param o5
313
318
* an Observable competing to react first
314
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
315
- * emitted an item
319
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
320
+ * emitted an item or sent a termination notification
316
321
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
317
322
*/
318
323
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 , Observable <? extends T > o5 ) {
319
324
return create (OnSubscribeAmb .amb (o1 , o2 , o3 , o4 , o5 ));
320
325
}
321
326
322
327
/**
323
- * Given six Observables, mirrors the one that first emits an item.
328
+ * Given six Observables, mirrors the one that first either emits an item or sends a termination
329
+ * notification.
324
330
* <p>
325
331
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
326
332
* <dl>
@@ -340,16 +346,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
340
346
* an Observable competing to react first
341
347
* @param o6
342
348
* an Observable competing to react first
343
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
344
- * emitted an item
349
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
350
+ * emitted an item or sent a termination notification
345
351
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
346
352
*/
347
353
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 , Observable <? extends T > o5 , Observable <? extends T > o6 ) {
348
354
return create (OnSubscribeAmb .amb (o1 , o2 , o3 , o4 , o5 , o6 ));
349
355
}
350
356
351
357
/**
352
- * Given seven Observables, mirrors the one that first emits an item.
358
+ * Given seven Observables, mirrors the one that first either emits an item or sends a termination
359
+ * notification.
353
360
* <p>
354
361
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
355
362
* <dl>
@@ -371,16 +378,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
371
378
* an Observable competing to react first
372
379
* @param o7
373
380
* an Observable competing to react first
374
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
375
- * emitted an item
381
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
382
+ * emitted an item or sent a termination notification
376
383
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
377
384
*/
378
385
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 , Observable <? extends T > o5 , Observable <? extends T > o6 , Observable <? extends T > o7 ) {
379
386
return create (OnSubscribeAmb .amb (o1 , o2 , o3 , o4 , o5 , o6 , o7 ));
380
387
}
381
388
382
389
/**
383
- * Given eight Observables, mirrors the one that first emits an item.
390
+ * Given eight Observables, mirrors the one that first either emits an item or sends a termination
391
+ * notification.
384
392
* <p>
385
393
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
386
394
* <dl>
@@ -404,16 +412,17 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
404
412
* an Observable competing to react first
405
413
* @param o8
406
414
* an observable competing to react first
407
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
408
- * emitted an item
415
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
416
+ * emitted an item or sent a termination notification
409
417
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
410
418
*/
411
419
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 , Observable <? extends T > o5 , Observable <? extends T > o6 , Observable <? extends T > o7 , Observable <? extends T > o8 ) {
412
420
return create (OnSubscribeAmb .amb (o1 , o2 , o3 , o4 , o5 , o6 , o7 , o8 ));
413
421
}
414
422
415
423
/**
416
- * Given nine Observables, mirrors the one that first emits an item.
424
+ * Given nine Observables, mirrors the one that first either emits an item or sends a termination
425
+ * notification.
417
426
* <p>
418
427
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
419
428
* <dl>
@@ -439,8 +448,8 @@ public final static <T> Observable<T> amb(Observable<? extends T> o1, Observable
439
448
* an Observable competing to react first
440
449
* @param o9
441
450
* an Observable competing to react first
442
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
443
- * emitted an item
451
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
452
+ * emitted an item or sent a termination notification
444
453
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
445
454
*/
446
455
public final static <T > Observable <T > amb (Observable <? extends T > o1 , Observable <? extends T > o2 , Observable <? extends T > o3 , Observable <? extends T > o4 , Observable <? extends T > o5 , Observable <? extends T > o6 , Observable <? extends T > o7 , Observable <? extends T > o8 , Observable <? extends T > o9 ) {
@@ -2974,7 +2983,8 @@ public final Observable<Boolean> all(Func1<? super T, Boolean> predicate) {
2974
2983
}
2975
2984
2976
2985
/**
2977
- * Mirrors the first Observable (current or provided) that emits an item.
2986
+ * Mirrors the Observable (current or provided) that first either emits an item or sends a termination
2987
+ * notification.
2978
2988
* <p>
2979
2989
* <img width="640" height="385" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/amb.png" alt="">
2980
2990
* <dl>
@@ -2984,8 +2994,8 @@ public final Observable<Boolean> all(Func1<? super T, Boolean> predicate) {
2984
2994
*
2985
2995
* @param t1
2986
2996
* an Observable competing to react first
2987
- * @return an Observable that emits the same sequence of items as whichever of the source Observables first
2988
- * emitted an item
2997
+ * @return an Observable that emits the same sequence as whichever of the source Observables first
2998
+ * emitted an item or sent a termination notification
2989
2999
* @see <a href="http://reactivex.io/documentation/operators/amb.html">ReactiveX operators documentation: Amb</a>
2990
3000
*/
2991
3001
public final Observable <T > ambWith (Observable <? extends T > t1 ) {
0 commit comments