Top Description Methods
io.reactivex.rxjava3.core

public Interface SingleTransformer<Upstream, Downstream>

Annotations
@FunctionalInterface
Type Parameters
<Upstream>
the upstream value type
<Downstream>
the downstream value type
Imports
io.reactivex.rxjava3.annotations.NonNull

Interface to compose Singles.

Method Summary

Modifier and TypeMethod and Description
public @NonNull SingleSource<Downstream>

Returns:

the transformed SingleSource instance
apply
(@NonNull Single<Upstream>
the upstream Single instance
upstream
)

Applies a function to the upstream Single and returns a SingleSource with optionally different element type.

Method Detail

applyback to summary
public @NonNull SingleSource<Downstream> apply(@NonNull Single<Upstream> upstream)

Applies a function to the upstream Single and returns a SingleSource with optionally different element type.

Parameters
upstream:@NonNull Single<Upstream>

the upstream Single instance

Returns:@NonNull SingleSource<Downstream>

the transformed SingleSource instance

Annotations
@NonNull