@@ -1692,7 +1692,7 @@ public final static <T> Observable<T> from(T[] items, Scheduler scheduler) {
16921692 * @see <a href="http://msdn.microsoft.com/en-us/library/hh229027.aspx">MSDN: Observable.Interval</a>
16931693 */
16941694 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());
16961696 }
16971697
16981698 /**
@@ -3716,7 +3716,7 @@ public final <TClosing> Observable<List<T>> buffer(Func0<? extends Observable<?
37163716 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
37173717 */
37183718 public final Observable<List<T>> buffer(int count) {
3719- return lift(new OperatorBufferWithSize<T>( count, count) );
3719+ return buffer( count, count);
37203720 }
37213721
37223722 /**
@@ -3774,7 +3774,7 @@ public final Observable<List<T>> buffer(int count, int skip) {
37743774 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
37753775 */
37763776 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());
37783778 }
37793779
37803780 /**
@@ -3836,7 +3836,7 @@ public final Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit
38363836 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
38373837 */
38383838 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());
38403840 }
38413841
38423842 /**
@@ -3937,7 +3937,7 @@ public final Observable<List<T>> buffer(long timespan, TimeUnit unit, int count,
39373937 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
39383938 */
39393939 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);
39413941 }
39423942
39433943 /**
@@ -3996,7 +3996,7 @@ public final <TOpening, TClosing> Observable<List<T>> buffer(Observable<? extend
39963996 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.buffer.aspx">MSDN: Observable.Buffer</a>
39973997 */
39983998 public final <B> Observable<List<T>> buffer(Observable<B> boundary) {
3999- return lift(new OperatorBufferWithSingleObservable<T, B>( boundary, 16) );
3999+ return buffer( boundary, 16);
40004000 }
40014001
40024002 /**
@@ -4320,7 +4320,7 @@ public final <U> Observable<T> debounce(Func1<? super T, ? extends Observable<U>
43204320 * @see #throttleWithTimeout(long, TimeUnit)
43214321 */
43224322 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());
43244324 }
43254325
43264326 /**
@@ -4469,7 +4469,7 @@ public final <U> Observable<T> delay(Func1<? super T, ? extends Observable<U>> i
44694469 * @see <a href="http://msdn.microsoft.com/en-us/library/hh229810.aspx">MSDN: Observable.Delay</a>
44704470 */
44714471 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());
44734473 }
44744474
44754475 /**
@@ -6261,7 +6261,7 @@ public final Observable<T> onExceptionResumeNext(final Observable<? extends T> r
62616261 * @see <a href="http://www.grahamlea.com/2014/07/rxjava-threading-examples/">RxJava Threading Examples</a>
62626262 */
62636263 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());
62656265 }
62666266
62676267 /**
@@ -7463,7 +7463,7 @@ public final Observable<T> retryWhen(Func1<? super Observable<? extends Notifica
74637463 * @see #throttleLast(long, TimeUnit)
74647464 */
74657465 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());
74677467 }
74687468
74697469 /**
@@ -9116,7 +9116,7 @@ public final Observable<T> takeWhileWithIndex(final Func2<? super T, ? super Int
91169116 * @see <a href="https://github.com/Netflix/RxJava/wiki/Backpressure">RxJava wiki: Backpressure</a>
91179117 */
91189118 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());
91209120 }
91219121
91229122 /**
@@ -9309,7 +9309,7 @@ public final Observable<T> throttleWithTimeout(long timeout, TimeUnit unit, Sche
93099309 * @see <a href="http://msdn.microsoft.com/en-us/library/hh212107.aspx">MSDN: Observable.TimeInterval</a>
93109310 */
93119311 public final Observable<TimeInterval<T>> timeInterval() {
9312- return lift(new OperatorTimeInterval<T>( Schedulers.immediate() ));
9312+ return timeInterval( Schedulers.immediate());
93139313 }
93149314
93159315 /**
@@ -9961,7 +9961,7 @@ public final <TClosing> Observable<Observable<T>> window(Func0<? extends Observa
99619961 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
99629962 */
99639963 public final Observable<Observable<T>> window(int count) {
9964- return lift(new OperatorWindowWithSize<T>( count, count) );
9964+ return window( count, count);
99659965 }
99669966
99679967 /**
@@ -10077,7 +10077,7 @@ public final Observable<Observable<T>> window(long timespan, long timeshift, Tim
1007710077 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
1007810078 */
1007910079 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());
1008110081 }
1008210082
1008310083 /**
@@ -10109,7 +10109,7 @@ public final Observable<Observable<T>> window(long timespan, TimeUnit unit) {
1010910109 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
1011010110 */
1011110111 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());
1011310113 }
1011410114
1011510115 /**
@@ -10173,7 +10173,7 @@ public final Observable<Observable<T>> window(long timespan, TimeUnit unit, int
1017310173 * @see <a href="http://msdn.microsoft.com/en-us/library/system.reactive.linq.observable.window.aspx">MSDN: Observable.Window</a>
1017410174 */
1017510175 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);
1017710177 }
1017810178
1017910179 /**
0 commit comments