Class ObservableLift<R,​T>

  • Type Parameters:
    T - the upstream value type
    R - the downstream parameter type
    All Implemented Interfaces:
    ObservableSource<R>, HasUpstreamObservableSource<T>

    public final class ObservableLift<R,​T>
    extends AbstractObservableWithUpstream<T,​R>
    Allows lifting operators into a chain of Observables.

    By having a concrete ObservableSource as lift, operator fusing can now identify both the source and the operation inside it via casting, unlike the lambda version of this.

    • Method Detail

      • subscribeActual

        public void subscribeActual​(Observer<? super R> observer)
        Description copied from class: Observable
        Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.

        There is no need to call any of the plugin hooks on the current Observable instance or the Observer; all hooks and basic safeguards have been applied by Observable.subscribe(Observer) before this method gets called.

        Specified by:
        subscribeActual in class Observable<R>
        Parameters:
        observer - the incoming Observer, never null