T
- the element type@FunctionalInterface public interface MaybeSource<T>
Maybe
source base interface,
consumable via an MaybeObserver
.
This class also serves the base type for custom operators wrapped into
Maybe via Maybe.create(MaybeOnSubscribe)
.
Modifier and Type | Method and Description |
---|---|
void |
subscribe(@NonNull MaybeObserver<? super T> observer)
Subscribes the given
MaybeObserver to this MaybeSource instance. |
void subscribe(@NonNull @NonNull MaybeObserver<? super T> observer)
MaybeObserver
to this MaybeSource
instance.observer
- the MaybeObserver
, not null
NullPointerException
- if observer
is null