@@ -352,6 +352,7 @@ public void onNext(T args) {
352
352
*
353
353
* @param onNext
354
354
* @return
355
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
355
356
*/
356
357
public Subscription subscribe (final Action1 <? super T > onNext ) {
357
358
if (onNext == null ) {
@@ -391,6 +392,7 @@ public void onNext(T args) {
391
392
* @param onNext
392
393
* @param scheduler
393
394
* @return
395
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
394
396
*/
395
397
public Subscription subscribe (final Action1 <? super T > onNext , Scheduler scheduler ) {
396
398
return subscribeOn (scheduler ).subscribe (onNext );
@@ -403,6 +405,7 @@ public Subscription subscribe(final Action1<? super T> onNext, Scheduler schedul
403
405
* @param onNext
404
406
* @param onError
405
407
* @return
408
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
406
409
*/
407
410
public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <Throwable > onError ) {
408
411
if (onNext == null ) {
@@ -447,6 +450,7 @@ public void onNext(T args) {
447
450
* @param onError
448
451
* @param scheduler
449
452
* @return
453
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
450
454
*/
451
455
public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <Throwable > onError , Scheduler scheduler ) {
452
456
return subscribeOn (scheduler ).subscribe (onNext , onError );
@@ -460,6 +464,7 @@ public Subscription subscribe(final Action1<? super T> onNext, final Action1<Thr
460
464
* @param onError
461
465
* @param onComplete
462
466
* @return
467
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
463
468
*/
464
469
public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <Throwable > onError , final Action0 onComplete ) {
465
470
if (onNext == null ) {
@@ -507,6 +512,7 @@ public void onNext(T args) {
507
512
* @param onComplete
508
513
* @param scheduler
509
514
* @return
515
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Observable#onnext-oncompleted-and-onerror">RxJava Wiki: onNext, onCompleted, and onError</a>
510
516
*/
511
517
public Subscription subscribe (final Action1 <? super T > onNext , final Action1 <Throwable > onError , final Action0 onComplete , Scheduler scheduler ) {
512
518
return subscribeOn (scheduler ).subscribe (onNext , onError , onComplete );
@@ -519,7 +525,7 @@ public Subscription subscribe(final Action1<? super T> onNext, final Action1<Thr
519
525
public Observable <T > asObservable () {
520
526
return create (new OperationAsObservable <T >(this ));
521
527
}
522
-
528
+
523
529
/**
524
530
* Returns a {@link ConnectableObservable} that upon connection causes the
525
531
* source Observable to push results into the specified subject.
@@ -641,6 +647,7 @@ public Subscription onSubscribe(Observer<? super T> observer) {
641
647
* @return an Observable that, when an {@link Observer} subscribes to it,
642
648
* will execute the given function
643
649
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#create">RxJava Wiki: create()</a>
650
+ * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.create.aspx">MSDN: Observable.Create</a>
644
651
*/
645
652
public static <T > Observable <T > create (OnSubscribeFunc <T > func ) {
646
653
return new Observable <T >(func );
@@ -1074,7 +1081,7 @@ public static <T> Observable<T> from(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T
1074
1081
* @param count the number of sequential Integers to generate
1075
1082
* @return an Observable that emits a range of sequential Integers
1076
1083
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#range">RxJava Wiki: range()</a>
1077
- * @see MSDN: <a href="http://msdn.microsoft.com/en-us/library/hh229460.aspx">Observable.Range Method (Int32, Int32) </a>
1084
+ * @see <a href="http://msdn.microsoft.com/en-us/library/hh229460.aspx">MSDN: Observable.Range</a>
1078
1085
*/
1079
1086
public static Observable <Integer > range (int start , int count ) {
1080
1087
return from (Range .createWithCount (start , count ));
@@ -1091,7 +1098,7 @@ public static Observable<Integer> range(int start, int count) {
1091
1098
* @param scheduler the scheduler to run the generator loop on
1092
1099
* @return an Observable that emits a range of sequential Integers
1093
1100
* @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#range">RxJava Wiki: range()</a>
1094
- * @see MSDN: <a href="http://msdn.microsoft.com/en-us/library/hh211896.aspx">Observable.Range Method (Int32, Int32, IScheduler) </a>
1101
+ * @see <a href="http://msdn.microsoft.com/en-us/library/hh211896.aspx">MSDN: Observable.Range</a>
1095
1102
*/
1096
1103
public static Observable <Integer > range (int start , int count , Scheduler scheduler ) {
1097
1104
return from (Range .createWithCount (start , count ), scheduler );
@@ -5382,29 +5389,30 @@ public Observable<T> skip(int num) {
5382
5389
5383
5390
/**
5384
5391
* Create an Observable that skips values before the given time ellapses.
5392
+ * <p>
5393
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/skip.t.png">
5385
5394
*
5386
- * @param time
5387
- * the length of the time window
5388
- * @param unit
5389
- * the time unit
5395
+ * @param time the length of the time window
5396
+ * @param unit the time unit
5390
5397
* @return an Observable that skips values before the given time ellapses
5398
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#skip">RxJava Wiki: skip()</a>
5391
5399
*/
5392
5400
public Observable <T > skip (long time , TimeUnit unit ) {
5393
5401
return skip (time , unit , Schedulers .threadPoolForComputation ());
5394
5402
}
5395
5403
5396
5404
/**
5397
- * Create an Observable that skips values before the given time
5398
- * elapses while waiting on the given scheduler.
5405
+ * Create an Observable that skips values before the given time elapses
5406
+ * while waiting on the given scheduler.
5407
+ * <p>
5408
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/skip.ts.png">
5399
5409
*
5400
- * @param time
5401
- * the length of the time window
5402
- * @param unit
5403
- * the time unit
5404
- * @param scheduler
5405
- * the scheduler where the timed wait happens
5406
- * @return an Observable that skips values before the given time
5407
- * elapses while waiting on the given scheduler
5410
+ * @param time the length of the time window
5411
+ * @param unit the time unit
5412
+ * @param scheduler the scheduler where the timed wait happens
5413
+ * @return an Observable that skips values before the given time elapses
5414
+ * while waiting on the given scheduler
5415
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#skip">RxJava Wiki: skip()</a>
5408
5416
*/
5409
5417
public Observable <T > skip (long time , TimeUnit unit , Scheduler scheduler ) {
5410
5418
return create (new OperationSkip .SkipTimed <T >(this , time , unit , scheduler ));
@@ -5414,12 +5422,13 @@ public Observable<T> skip(long time, TimeUnit unit, Scheduler scheduler) {
5414
5422
* If the Observable completes after emitting a single item, return an
5415
5423
* Observable containing that item. If it emits more than one item or no
5416
5424
* item, throw an IllegalArgumentException.
5425
+ * <p>
5426
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/single.png">
5417
5427
*
5418
5428
* @return an Observable that emits the single item emitted by the source
5419
5429
* Observable that matches the predicate
5420
- * @throws IllegalArgumentException
5421
- * if the source emits more than one item
5422
- * or no items
5430
+ * @throws IllegalArgumentException if the source emits more than one item
5431
+ * or no items
5423
5432
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#single-and-singleordefault">RxJava Wiki: single()</a>
5424
5433
* @see MSDN: <code>Observable.singleAsync()</code>
5425
5434
*/
@@ -5605,29 +5614,38 @@ public Observable<T> take(final int num) {
5605
5614
}
5606
5615
5607
5616
/**
5608
- * Create an Observable that takes the emitted values of the source
5609
- * Observable before the time runs out.
5610
- * @param time the length of the time window
5611
- * @param unit the time unit
5612
- * @return an Observable that takes the emitted values of the source
5613
- * Observable before the time runs out.
5614
- */
5615
- public Observable <T > take (long time , TimeUnit unit ) {
5616
- return take (time , unit , Schedulers .threadPoolForComputation ());
5617
- }
5617
+ * Create an Observable that emits the emitted items from the source
5618
+ * Observable before the time runs out.
5619
+ * <p>
5620
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/take.t.png">
5621
+ *
5622
+ * @param time the length of the time window
5623
+ * @param unit the time unit
5624
+ * @return an Observable that emits the emitted items from the source
5625
+ * Observable before the time runs out
5626
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#take">RxJava Wiki: take()</a>
5627
+ */
5628
+ public Observable <T > take (long time , TimeUnit unit ) {
5629
+ return take (time , unit , Schedulers .threadPoolForComputation ());
5630
+ }
5618
5631
5619
- /**
5620
- * Create an Observable that takes the emitted values of the source
5621
- * Observable before the time runs out, waiting on the given scheduler.
5622
- * @param time the length of the time window
5623
- * @param unit the time unit
5624
- * @param scheduler the scheduler used for time source
5625
- * @return an Observable that takes the emitted values of the source
5626
- * Observable before the time runs out, waiting on the given scheduler.
5627
- */
5628
- public Observable <T > take (long time , TimeUnit unit , Scheduler scheduler ) {
5629
- return create (new OperationTake .TakeTimed <T >(this , time , unit , scheduler ));
5630
- }
5632
+ /**
5633
+ * Create an Observable that emits the emitted items from the source
5634
+ * Observable before the time runs out, waiting on the given scheduler.
5635
+ * <p>
5636
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/take.ts.png">
5637
+ *
5638
+ * @param time the length of the time window
5639
+ * @param unit the time unit
5640
+ * @param scheduler the scheduler used for time source
5641
+ * @return an Observable that emits the emitted items from the source
5642
+ * Observable before the time runs out, waiting on the given
5643
+ * scheduler
5644
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#take">RxJava Wiki: take()</a>
5645
+ */
5646
+ public Observable <T > take (long time , TimeUnit unit , Scheduler scheduler ) {
5647
+ return create (new OperationTake .TakeTimed <T >(this , time , unit , scheduler ));
5648
+ }
5631
5649
5632
5650
/**
5633
5651
* Returns an Observable that emits items emitted by the source Observable
@@ -5972,25 +5990,35 @@ public Observable<T> skipLast(int count) {
5972
5990
}
5973
5991
5974
5992
/**
5975
- * Create an observable which skips values emitted in a time window
5976
- * before the source completes.
5993
+ * Create an Observable that skips values emitted in a time window before
5994
+ * the source completes.
5995
+ * <p>
5996
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/skipLast.t.png">
5997
+ *
5977
5998
* @param time the length of the time window
5978
5999
* @param unit the time unit
5979
- * @return an observable which skips values emitted in a time window
5980
- * before the source completes
6000
+ * @return an Observable that skips values emitted in a time window before
6001
+ * the source completes
6002
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#skiplast">RxJava Wiki: skipLast()</a>
6003
+ * @see <a href="http://msdn.microsoft.com/en-us/library/hh211750.aspx">MSDN: Observable.SkipLast</a>
5981
6004
*/
5982
6005
public Observable <T > skipLast (long time , TimeUnit unit ) {
5983
6006
return skipLast (time , unit , Schedulers .threadPoolForComputation ());
5984
6007
}
5985
6008
5986
6009
/**
5987
- * Create an observable which skips values emitted in a time window
5988
- * before the source completes by using the given scheduler as time source.
6010
+ * Create an Observable that skips values emitted in a time window before
6011
+ * the source completes by using the given scheduler as time source.
6012
+ * <p>
6013
+ * <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/skipLast.ts.png">
6014
+ *
5989
6015
* @param time the length of the time window
5990
6016
* @param unit the time unit
5991
6017
* @param scheduler the scheduler used for time source
5992
- * @return an observable which skips values emitted in a time window
5993
- * before the source completes by using the given scheduler as time source
6018
+ * @return an Observable that skips values emitted in a time window before
6019
+ * the source completes by using the given scheduler as time source
6020
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#skiplast">RxJava Wiki: skipLast()</a>
6021
+ * @see <a href="http://msdn.microsoft.com/en-us/library/hh211750.aspx">MSDN: Observable.SkipLast</a>
5994
6022
*/
5995
6023
public Observable <T > skipLast (long time , TimeUnit unit , Scheduler scheduler ) {
5996
6024
return create (new OperationSkipLast .SkipLastTimed <T >(this , time , unit , scheduler ));
@@ -6894,8 +6922,8 @@ public void onNext(T args) { }
6894
6922
* <p>
6895
6923
* <img width="640" src="https://raw.github.com/wiki/Netflix/RxJava/images/rx-operators/doOnNext.png">
6896
6924
*
6897
- * @param onCompleted the action to invoke when the source Observable calls
6898
- * <code>onCompleted </code>
6925
+ * @param onNext the action to invoke when the source Observable calls
6926
+ * <code>onNext </code>
6899
6927
* @return the source Observable with the side-effecting behavior applied
6900
6928
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#dooneach">RxJava Wiki: doOnNext()</a>
6901
6929
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229804.aspx">MSDN: Observable.Do</a>
@@ -6958,7 +6986,7 @@ public void onNext(T v) {
6958
6986
* For why this is being used see
6959
6987
* https://github.com/Netflix/RxJava/issues/216 for discussion on
6960
6988
* "Guideline 6.4: Protect calls to user code from within an operator"
6961
- *
6989
+ * <p>
6962
6990
* Note: If strong reasons for not depending on package names comes up then
6963
6991
* the implementation of this method can change to looking for a marker
6964
6992
* interface.
0 commit comments