Skip to content

Commit

Permalink
Operator Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd committed Apr 29, 2014
1 parent 95e0636 commit d853038
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 193 deletions.
6 changes: 4 additions & 2 deletions rxjava-core/src/main/java/rx/Observable.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
import rx.operators.OperationSequenceEqual;
import rx.operators.OperationSkip;
import rx.operators.OperationSkipUntil;
import rx.operators.OperationSwitch;
import rx.operators.OperationTakeLast;
import rx.operators.OperationTakeTimed;
import rx.operators.OperationTakeUntil;
Expand Down Expand Up @@ -120,6 +119,7 @@
import rx.operators.OperatorSkipLastTimed;
import rx.operators.OperatorSkipWhile;
import rx.operators.OperatorSubscribeOn;
import rx.operators.OperatorSwitch;
import rx.operators.OperatorTake;
import rx.operators.OperatorTimeout;
import rx.operators.OperatorTimeoutWithSelector;
Expand Down Expand Up @@ -2494,9 +2494,11 @@ public final static <T> Observable<Boolean> sequenceEqual(Observable<? extends T
* @return an Observable that emits the items emitted by the Observable most recently emitted by the source
* Observable
* @see <a href="https://github.com/Netflix/RxJava/wiki/Combining-Observables#wiki-switchonnext">RxJava Wiki: switchOnNext()</a>
*
* @param <T> the element type
*/
public final static <T> Observable<T> switchOnNext(Observable<? extends Observable<? extends T>> sequenceOfSequences) {
return create(OperationSwitch.switchDo(sequenceOfSequences));
return sequenceOfSequences.lift(new OperatorSwitch<T>());
}

/**
Expand Down
175 changes: 0 additions & 175 deletions rxjava-core/src/main/java/rx/operators/OperationSwitch.java

This file was deleted.

Loading

0 comments on commit d853038

Please sign in to comment.