@@ -1692,7 +1692,7 @@ public final static <T> Observable<T> from(T[] items, Scheduler scheduler) {
1692
1692
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229027.aspx">MSDN: Observable.Interval</a>
1693
1693
*/
1694
1694
public final static Observable<Long> interval(long interval, TimeUnit unit) {
1695
- return create(new OnSubscribeTimerPeriodically( interval, interval, unit, Schedulers.computation() ));
1695
+ return interval( interval, unit, Schedulers.computation());
1696
1696
}
1697
1697
1698
1698
/**
@@ -3716,7 +3716,7 @@ public final <TClosing> Observable<List<T>> buffer(Func0<? extends Observable<?
3716
3716
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
3717
3717
*/
3718
3718
public final Observable<List<T>> buffer(int count) {
3719
- return lift(new OperatorBufferWithSize<T>( count, count) );
3719
+ return buffer( count, count);
3720
3720
}
3721
3721
3722
3722
/**
@@ -3774,7 +3774,7 @@ public final Observable<List<T>> buffer(int count, int skip) {
3774
3774
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
3775
3775
*/
3776
3776
public final Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit unit) {
3777
- return lift(new OperatorBufferWithTime<T>( timespan, timeshift, unit, Integer.MAX_VALUE, Schedulers.computation() ));
3777
+ return buffer( timespan, timeshift, unit, Schedulers.computation());
3778
3778
}
3779
3779
3780
3780
/**
@@ -3836,7 +3836,7 @@ public final Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit
3836
3836
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
3837
3837
*/
3838
3838
public final Observable<List<T>> buffer(long timespan, TimeUnit unit) {
3839
- return lift(new OperatorBufferWithTime<T>( timespan, timespan, unit, Integer.MAX_VALUE, Schedulers.computation() ));
3839
+ return buffer( timespan, unit, Integer.MAX_VALUE, Schedulers.computation());
3840
3840
}
3841
3841
3842
3842
/**
@@ -3937,7 +3937,7 @@ public final Observable<List<T>> buffer(long timespan, TimeUnit unit, int count,
3937
3937
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
3938
3938
*/
3939
3939
public final Observable<List<T>> buffer(long timespan, TimeUnit unit, Scheduler scheduler) {
3940
- return lift(new OperatorBufferWithTime<T>( timespan, timespan, unit, Integer.MAX_VALUE, scheduler) );
3940
+ return buffer( timespan, timespan, unit, scheduler);
3941
3941
}
3942
3942
3943
3943
/**
@@ -3996,7 +3996,7 @@ public final <TOpening, TClosing> Observable<List<T>> buffer(Observable<? extend
3996
3996
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
3997
3997
*/
3998
3998
public final <B> Observable<List<T>> buffer(Observable<B> boundary) {
3999
- return lift(new OperatorBufferWithSingleObservable<T, B>( boundary, 16) );
3999
+ return buffer( boundary, 16);
4000
4000
}
4001
4001
4002
4002
/**
@@ -4320,7 +4320,7 @@ public final <U> Observable<T> debounce(Func1<? super T, ? extends Observable<U>
4320
4320
* @see #throttleWithTimeout(long, TimeUnit)
4321
4321
*/
4322
4322
public final Observable<T> debounce(long timeout, TimeUnit unit) {
4323
- return lift(new OperatorDebounceWithTime<T>( timeout, unit, Schedulers.computation() ));
4323
+ return debounce( timeout, unit, Schedulers.computation());
4324
4324
}
4325
4325
4326
4326
/**
@@ -4469,7 +4469,7 @@ public final <U> Observable<T> delay(Func1<? super T, ? extends Observable<U>> i
4469
4469
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229810.aspx">MSDN: Observable.Delay</a>
4470
4470
*/
4471
4471
public final Observable<T> delay(long delay, TimeUnit unit) {
4472
- return create(new OnSubscribeDelay<T>(this, delay, unit, Schedulers.computation() ));
4472
+ return delay( delay, unit, Schedulers.computation());
4473
4473
}
4474
4474
4475
4475
/**
@@ -6261,7 +6261,7 @@ public final Observable<T> onExceptionResumeNext(final Observable<? extends T> r
6261
6261
* @see <a href="http://www.grahamlea.com/2014/07/rxjava-threading-examples/">RxJava Threading Examples</a>
6262
6262
*/
6263
6263
public final <R> Observable<R> parallel(Func1<Observable<T>, Observable<R>> f) {
6264
- return lift(new OperatorParallel<T, R>( f, Schedulers.computation() ));
6264
+ return parallel( f, Schedulers.computation());
6265
6265
}
6266
6266
6267
6267
/**
@@ -7463,7 +7463,7 @@ public final Observable<T> retryWhen(Func1<? super Observable<? extends Notifica
7463
7463
* @see #throttleLast(long, TimeUnit)
7464
7464
*/
7465
7465
public final Observable<T> sample(long period, TimeUnit unit) {
7466
- return lift(new OperatorSampleWithTime<T>( period, unit, Schedulers.computation() ));
7466
+ return sample( period, unit, Schedulers.computation());
7467
7467
}
7468
7468
7469
7469
/**
@@ -9116,7 +9116,7 @@ public final Observable<T> takeWhileWithIndex(final Func2<? super T, ? super Int
9116
9116
* @see <a href="https://github.com/Netflix/RxJava/wiki/Backpressure">RxJava wiki: Backpressure</a>
9117
9117
*/
9118
9118
public final Observable<T> throttleFirst(long windowDuration, TimeUnit unit) {
9119
- return lift(new OperatorThrottleFirst<T>( windowDuration, unit, Schedulers.computation() ));
9119
+ return throttleFirst( windowDuration, unit, Schedulers.computation());
9120
9120
}
9121
9121
9122
9122
/**
@@ -9309,7 +9309,7 @@ public final Observable<T> throttleWithTimeout(long timeout, TimeUnit unit, Sche
9309
9309
* @see <a href="http://msdn.microsoft.com/en-us/library/hh212107.aspx">MSDN: Observable.TimeInterval</a>
9310
9310
*/
9311
9311
public final Observable<TimeInterval<T>> timeInterval() {
9312
- return lift(new OperatorTimeInterval<T>( Schedulers.immediate() ));
9312
+ return timeInterval( Schedulers.immediate());
9313
9313
}
9314
9314
9315
9315
/**
@@ -9961,7 +9961,7 @@ public final <TClosing> Observable<Observable<T>> window(Func0<? extends Observa
9961
9961
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
9962
9962
*/
9963
9963
public final Observable<Observable<T>> window(int count) {
9964
- return lift(new OperatorWindowWithSize<T>( count, count) );
9964
+ return window( count, count);
9965
9965
}
9966
9966
9967
9967
/**
@@ -10077,7 +10077,7 @@ public final Observable<Observable<T>> window(long timespan, long timeshift, Tim
10077
10077
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
10078
10078
*/
10079
10079
public final Observable<Observable<T>> window(long timespan, TimeUnit unit) {
10080
- return lift(new OperatorWindowWithTime<T>( timespan, timespan, unit, Integer.MAX_VALUE, Schedulers.computation() ));
10080
+ return window( timespan, timespan, unit, Schedulers.computation());
10081
10081
}
10082
10082
10083
10083
/**
@@ -10109,7 +10109,7 @@ public final Observable<Observable<T>> window(long timespan, TimeUnit unit) {
10109
10109
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
10110
10110
*/
10111
10111
public final Observable<Observable<T>> window(long timespan, TimeUnit unit, int count) {
10112
- return lift(new OperatorWindowWithTime<T>( timespan, timespan, unit, count, Schedulers.computation() ));
10112
+ return window( timespan, unit, count, Schedulers.computation());
10113
10113
}
10114
10114
10115
10115
/**
@@ -10173,7 +10173,7 @@ public final Observable<Observable<T>> window(long timespan, TimeUnit unit, int
10173
10173
* @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
10174
10174
*/
10175
10175
public final Observable<Observable<T>> window(long timespan, TimeUnit unit, Scheduler scheduler) {
10176
- return lift(new OperatorWindowWithTime<T>( timespan, timespan, unit, Integer.MAX_VALUE, scheduler) );
10176
+ return window( timespan, unit, Integer.MAX_VALUE, scheduler);
10177
10177
}
10178
10178
10179
10179
/**
0 commit comments