Skip to content

Commit d853038

Browse files
committed
Operator Switch
1 parent 95e0636 commit d853038

File tree

4 files changed

+252
-193
lines changed

4 files changed

+252
-193
lines changed

rxjava-core/src/main/java/rx/Observable.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
import rx.operators.OperationSequenceEqual;
6767
import rx.operators.OperationSkip;
6868
import rx.operators.OperationSkipUntil;
69-
import rx.operators.OperationSwitch;
7069
import rx.operators.OperationTakeLast;
7170
import rx.operators.OperationTakeTimed;
7271
import rx.operators.OperationTakeUntil;
@@ -120,6 +119,7 @@
120119
import rx.operators.OperatorSkipLastTimed;
121120
import rx.operators.OperatorSkipWhile;
122121
import rx.operators.OperatorSubscribeOn;
122+
import rx.operators.OperatorSwitch;
123123
import rx.operators.OperatorTake;
124124
import rx.operators.OperatorTimeout;
125125
import rx.operators.OperatorTimeoutWithSelector;
@@ -2494,9 +2494,11 @@ public final static <T> Observable<Boolean> sequenceEqual(Observable<? extends T
24942494
* @return an Observable that emits the items emitted by the Observable most recently emitted by the source
24952495
* Observable
24962496
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#wiki-switchonnext">RxJava Wiki: switchOnNext()</a>
2497+
*
2498+
* @param <T> the element type
24972499
*/
24982500
public final static <T> Observable<T> switchOnNext(Observable<? extends Observable<? extends T>> sequenceOfSequences) {
2499-
return create(OperationSwitch.switchDo(sequenceOfSequences));
2501+
return sequenceOfSequences.lift(new OperatorSwitch<T>());
25002502
}
25012503

25022504
/**

rxjava-core/src/main/java/rx/operators/OperationSwitch.java

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)