@NonNull open static fun <B : Any!> ofNullable(@Nullable value: B?): Maybe<B>
Creates a Maybe
from a given value. If the value is null a Nothing
will be created.
value
- B?: value from which Maybe
is created.
Return
Maybe<B>: instance of Just
or Nothing
if value is null.