T - Type of the result of the Single this operator is applied.R - Type of the result of this operator.public interface SingleOperator<T,R>
extends Function<SingleSource.Subscriber<? super R>,SingleSource.Subscriber<? super T>>
Single.
Logically an operator sits between a Single and a SingleSource.Subscriber and hence it has two responsibilities:
Single on which this operator is applied.SingleSource.Subscriber that subscribes to this operator.Function that takes a SingleSource.Subscriber and returns a
SingleSource.Subscriber.
The SingleSource.Subscriber that is passed to this Function is the one that has subscribed to this operator.
The SingleSource.Subscriber that is returned by this Function is the one that should be used to subscribe to the
Single on which this operator is applied.| Modifier and Type | Method and Description |
|---|---|
SingleSource.Subscriber<? super T> |
apply(SingleSource.Subscriber<? super R> subscriber)
Implementation of this operator.
|
SingleSource.Subscriber<? super T> apply(SingleSource.Subscriber<? super R> subscriber)
SingleOperator for definition of an operator.apply in interface Function<SingleSource.Subscriber<? super R>,SingleSource.Subscriber<? super T>>subscriber - SingleSource.Subscriber that subscribed to this operator.SingleSource.Subscriber that is used to subscribe to the Single that this operator is applied to.