Top Description Fields Constructors Methods
io.reactivex.internal.operators.observable

public final Class ObservableLift<R, T>

extends AbstractObservableWithUpstream<T, R>
Class Inheritance
Type Parameters
<R>
the downstream parameter type
<T>
the upstream value type
Imports
io.reactivex.*, io.reactivex.exceptions.Exceptions, io.reactivex.internal.functions.ObjectHelper, io.reactivex.plugins.RxJavaPlugins

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.

Field Summary

Modifier and TypeField and Description
pack-priv final ObservableOperator<? extends R, ? super T>
operator

The actual operator.

Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
ObservableLift(ObservableSource<T> source, ObservableOperator<? extends R, ? super T> operator)

Method Summary

Modifier and TypeMethod and Description
public void
subscribeActual(Observer<? super R>
the incoming Observer, never null
observer
)

Implements abstract io.reactivex.Observable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.
Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Field Detail

operatorback to summary
pack-priv final ObservableOperator<? extends R, ? super T> operator

The actual operator.

Constructor Detail

ObservableLiftback to summary
public ObservableLift(ObservableSource<T> source, ObservableOperator<? extends R, ? super T> operator)

Method Detail

subscribeActualback to summary
public void subscribeActual(Observer<? super R> observer)

Implements abstract io.reactivex.Observable.subscribeActual.

Doc from io.reactivex.Observable.subscribeActual.

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 subscribe(Observer) before this method gets called.

Parameters
observer:Observer<? super R>

the incoming Observer, never null

Annotations
@Override