@@ -779,21 +779,6 @@ public static <T> Observable<T> empty() {
779
779
return toObservable (new ArrayList <T >());
780
780
}
781
781
782
- /**
783
- * Returns an Observable that returns no data to the {@link Observer} and immediately invokes its <code>onCompleted</code> method on the given {@link Scheduler}.
784
- * <p>
785
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/empty.png">
786
- *
787
- * @param <T>
788
- * the type of item emitted by the Observable
789
- * @param {@link Scheduler} The scheduler to send the termination ({@link Observer#onCompleted()} call.
790
- * @return an Observable that returns no data to the {@link Observer} and immediately invokes the {@link Observer}'s <code>onCompleted</code> method
791
- */
792
- @ SuppressWarnings ("unchecked" )
793
- public static <T > Observable <T > empty (Scheduler scheduler ) {
794
- return (Observable <T >) empty ().subscribeOn (scheduler );
795
- }
796
-
797
782
/**
798
783
* Returns an Observable that calls <code>onError</code> when an {@link Observer} subscribes to it.
799
784
* <p>
@@ -877,22 +862,6 @@ public static <T> Observable<T> from(Iterable<T> iterable) {
877
862
return toObservable (iterable );
878
863
}
879
864
880
- /**
881
- * Converts an {@link Iterable} sequence to an Observable sequence that is subscribed to on the given {@link Scheduler}.
882
- *
883
- * @param iterable
884
- * the source {@link Iterable} sequence
885
- * @param scheduler
886
- * The {@link Scheduler} that the sequence is subscribed to on.
887
- * @param <T>
888
- * the type of items in the {@link Iterable} sequence and the type emitted by the resulting Observable
889
- * @return an Observable that emits each item in the source {@link Iterable} sequence
890
- * @see {@link #toObservable(Iterable)}
891
- */
892
- public static <T > Observable <T > from (Iterable <T > iterable , Scheduler scheduler ) {
893
- return toObservable (iterable , scheduler );
894
- }
895
-
896
865
/**
897
866
* Converts an Array to an Observable sequence.
898
867
*
@@ -907,22 +876,6 @@ public static <T> Observable<T> from(T... items) {
907
876
return toObservable (items );
908
877
}
909
878
910
- /**
911
- * Converts an Array to an Observable sequence that is subscribed to on the given {@link Scheduler}.
912
- *
913
- * @param scheduler
914
- * The {@link Scheduler} that the sequence is subscribed to on.
915
- * @param items
916
- * the source Array
917
- * @param <T>
918
- * the type of items in the Array, and the type of items emitted by the resulting Observable
919
- * @return an Observable that emits each item in the source Array
920
- * @see {@link #toObservable(Object...)}
921
- */
922
- public static <T > Observable <T > from (Scheduler scheduler , T ... items ) {
923
- return toObservable (scheduler , items );
924
- }
925
-
926
879
/**
927
880
* Generates an observable sequence of integral numbers within a specified range.
928
881
*
@@ -1302,25 +1255,6 @@ public static <T> Observable<T> merge(List<Observable<T>> source) {
1302
1255
return create (OperationMerge .merge (source ));
1303
1256
}
1304
1257
1305
- /**
1306
- * Flattens the Observable sequences from a list of Observables into one Observable sequence
1307
- * without any transformation. You can combine the output of multiple Observables so that they
1308
- * act like a single Observable, by using the <code>merge</code> method.
1309
- * <p>
1310
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/merge.png">
1311
- *
1312
- * @param source
1313
- * a list of Observables that emit sequences of items
1314
- * @param scheduler
1315
- * The {@link Scheduler} that the sequence is subscribed to on.
1316
- * @return an Observable that emits a sequence of elements that are the result of flattening the
1317
- * output from the <code>source</code> list of Observables
1318
- * @see <a href="http://msdn.microsoft.com/en-us/library/hh229099(v=vs.103).aspx">MSDN: Observable.Merge</a>
1319
- */
1320
- public static <T > Observable <T > merge (List <Observable <T >> source , Scheduler scheduler ) {
1321
- return merge (source ).subscribeOn (scheduler );
1322
- }
1323
-
1324
1258
/**
1325
1259
* Flattens the Observable sequences emitted by a sequence of Observables that are emitted by a
1326
1260
* Observable into one Observable sequence without any transformation. You can combine the output
@@ -1338,25 +1272,6 @@ public static <T> Observable<T> merge(Observable<Observable<T>> source) {
1338
1272
return create (OperationMerge .merge (source ));
1339
1273
}
1340
1274
1341
- /**
1342
- * Flattens the Observable sequences emitted by a sequence of Observables that are emitted by a
1343
- * Observable into one Observable sequence without any transformation. You can combine the output
1344
- * of multiple Observables so that they act like a single Observable, by using the <code>merge</code> method.
1345
- * <p>
1346
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/merge.png">
1347
- *
1348
- * @param source
1349
- * an Observable that emits Observables
1350
- * @param scheduler
1351
- * The {@link Scheduler} that the sequence is subscribed to on.
1352
- * @return an Observable that emits a sequence of elements that are the result of flattening the
1353
- * output from the Observables emitted by the <code>source</code> Observable
1354
- * @see <a href="http://msdn.microsoft.com/en-us/library/hh229099(v=vs.103).aspx">MSDN: Observable.Merge Method</a>
1355
- */
1356
- public static <T > Observable <T > merge (Observable <Observable <T >> source , Scheduler scheduler ) {
1357
- return merge (source ).subscribeOn (scheduler );
1358
- }
1359
-
1360
1275
/**
1361
1276
* Flattens the Observable sequences from a series of Observables into one Observable sequence
1362
1277
* without any transformation. You can combine the output of multiple Observables so that they
@@ -1374,25 +1289,6 @@ public static <T> Observable<T> merge(Observable<T>... source) {
1374
1289
return create (OperationMerge .merge (source ));
1375
1290
}
1376
1291
1377
- /**
1378
- * Flattens the Observable sequences from a series of Observables into one Observable sequence
1379
- * without any transformation. You can combine the output of multiple Observables so that they
1380
- * act like a single Observable, by using the <code>merge</code> method.
1381
- * <p>
1382
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/merge.png">
1383
- *
1384
- * @param scheduler
1385
- * The {@link Scheduler} that the sequence is subscribed to on.
1386
- * @param source
1387
- * a series of Observables that emit sequences of items
1388
- * @return an Observable that emits a sequence of elements that are the result of flattening the
1389
- * output from the <code>source</code> Observables
1390
- * @see <a href="http://msdn.microsoft.com/en-us/library/hh229099(v=vs.103).aspx">MSDN: Observable.Merge Method</a>
1391
- */
1392
- public static <T > Observable <T > merge (Scheduler scheduler , Observable <T >... source ) {
1393
- return merge (source ).subscribeOn (scheduler );
1394
- }
1395
-
1396
1292
/**
1397
1293
* Returns the values from the source observable sequence until the other observable sequence produces a value.
1398
1294
*
@@ -2316,27 +2212,6 @@ public static <T> Observable<T> toObservable(Iterable<T> iterable) {
2316
2212
return create (OperationToObservableIterable .toObservableIterable (iterable ));
2317
2213
}
2318
2214
2319
- /**
2320
- * Converts an Iterable sequence to an Observable sequence which is subscribed to on the given {@link Scheduler}.
2321
- *
2322
- * Any object that supports the Iterable interface can be converted into an Observable that emits
2323
- * each iterable item in the object, by passing the object into the <code>toObservable</code> method.
2324
- * <p>
2325
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toObservable.png">
2326
- *
2327
- * @param iterable
2328
- * the source Iterable sequence
2329
- * @param scheduler
2330
- * The {@link Scheduler} that the sequence is subscribed to on.
2331
- * @param <T>
2332
- * the type of items in the iterable sequence and the type emitted by the resulting
2333
- * Observable
2334
- * @return an Observable that emits each item in the source Iterable sequence
2335
- */
2336
- public static <T > Observable <T > toObservable (Iterable <T > iterable , Scheduler scheduler ) {
2337
- return toObservable (iterable ).subscribeOn (scheduler );
2338
- }
2339
-
2340
2215
/**
2341
2216
* Converts an Future to an Observable sequence.
2342
2217
*
@@ -2356,27 +2231,6 @@ public static <T> Observable<T> toObservable(Future<T> future) {
2356
2231
return create (OperationToObservableFuture .toObservableFuture (future ));
2357
2232
}
2358
2233
2359
- /**
2360
- * Converts an Future to an Observable sequence that is subscribed to on the given {@link Scheduler}.
2361
- *
2362
- * Any object that supports the {@link Future} interface can be converted into an Observable that emits
2363
- * the return value of the get() method in the object, by passing the object into the <code>toObservable</code> method.
2364
- * <p>
2365
- * This is blocking so the Subscription returned when calling {@link #subscribe(Observer)} does nothing.
2366
- *
2367
- * @param future
2368
- * the source {@link Future}
2369
- * @param scheduler
2370
- * The {@link Scheduler} to wait for the future on.
2371
- * @param <T>
2372
- * the type of of object that the future's returns and the type emitted by the resulting
2373
- * Observable
2374
- * @return an Observable that emits the item from the source Future
2375
- */
2376
- public static <T > Observable <T > toObservable (Future <T > future , Scheduler scheduler ) {
2377
- return toObservable (future ).subscribeOn (scheduler );
2378
- }
2379
-
2380
2234
/**
2381
2235
* Converts an Future to an Observable sequence.
2382
2236
*
@@ -2401,32 +2255,6 @@ public static <T> Observable<T> toObservable(Future<T> future, long timeout, Tim
2401
2255
return create (OperationToObservableFuture .toObservableFuture (future , timeout , unit ));
2402
2256
}
2403
2257
2404
- /**
2405
- * Converts an Future to an Observable sequence that is subscribed to on the given {@link Scheduler}.
2406
- *
2407
- * Any object that supports the {@link Future} interface can be converted into an Observable that emits
2408
- * the return value of the get() method in the object, by passing the object into the <code>toObservable</code> method.
2409
- * The subscribe method on this synchronously so the Subscription returned doesn't nothing.
2410
- * <p>
2411
- * This is blocking so the Subscription returned when calling {@link #subscribe(Observer)} does nothing.
2412
- *
2413
- * @param future
2414
- * the source {@link Future}
2415
- * @param timeout
2416
- * the maximum time to wait
2417
- * @param unit
2418
- * the time unit of the time argument
2419
- * @param scheduler
2420
- * The {@link Scheduler} to wait for the future on.
2421
- * @param <T>
2422
- * the type of of object that the future's returns and the type emitted by the resulting
2423
- * Observable
2424
- * @return an Observable that emits the item from the source Future
2425
- */
2426
- public static <T > Observable <T > toObservable (Future <T > future , long timeout , TimeUnit unit , Scheduler scheduler ) {
2427
- return toObservable (future , timeout , unit ).subscribeOn (scheduler );
2428
- }
2429
-
2430
2258
/**
2431
2259
* Converts an Array sequence to an Observable sequence.
2432
2260
*
@@ -2446,27 +2274,6 @@ public static <T> Observable<T> toObservable(T... items) {
2446
2274
return toObservable (Arrays .asList (items ));
2447
2275
}
2448
2276
2449
- /**
2450
- * Converts an Array sequence to an Observable sequence which is subscribed to on the given {@link Scheduler}.
2451
- *
2452
- * An Array can be converted into an Observable that emits each item in the Array, by passing the
2453
- * Array into the <code>toObservable</code> method.
2454
- * <p>
2455
- * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/toObservable.png">
2456
- *
2457
- * @param scheduler
2458
- * The {@link Scheduler} that the sequence is subscribed to on.
2459
- * @param items
2460
- * the source Array
2461
- * @param <T>
2462
- * the type of items in the Array, and the type of items emitted by the resulting
2463
- * Observable
2464
- * @return an Observable that emits each item in the source Array
2465
- */
2466
- public static <T > Observable <T > toObservable (Scheduler scheduler , T ... items ) {
2467
- return toObservable (items ).subscribeOn (scheduler );
2468
- }
2469
-
2470
2277
/**
2471
2278
* Sort T objects by their natural order (object must implement Comparable).
2472
2279
* <p>
0 commit comments