Top Description Methods
io.reactivex.rxjava3.core

public Interface MaybeConverter<T, R>

Annotations
@FunctionalInterface
Type Parameters
<T>
the upstream type
<R>
the output type
Imports
io.reactivex.rxjava3.annotations.NonNull

Convenience interface and callback used by the Maybe#to operator to turn a Maybe into another value fluently.

History: 2.1.7 - experimental

Since
2.2

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the converted value
apply
(@NonNull Maybe<T>
the upstream Maybe instance
upstream
)

Applies a function to the upstream Maybe and returns a converted value of type R.

Method Detail

applyback to summary
public R apply(@NonNull Maybe<T> upstream)

Applies a function to the upstream Maybe and returns a converted value of type R.

Parameters
upstream:@NonNull Maybe<T>

the upstream Maybe instance

Returns:R

the converted value

Annotations
@NonNull