Package io.reactivex.rxjava3.core
Interface SingleConverter<T,R>
- Type Parameters:
T
- the upstream typeR
- the output type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Convenience interface and callback used by the
Single.to(io.reactivex.rxjava3.core.SingleConverter<T, ? extends R>)
operator to turn a Single
into another
value fluently.
History: 2.1.7 - experimental
- Since:
- 2.2
-
Method Summary
-
Method Details
-
apply
Applies a function to the upstreamSingle
and returns a converted value of typeR
.- Parameters:
upstream
- the upstreamSingle
instance- Returns:
- the converted value
-