T
- the element typepublic 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(MaybeObserver<? super T> observer)
Subscribes the given MaybeObserver to this MaybeSource instance.
|
void subscribe(@NonNull MaybeObserver<? super T> observer)
observer
- the MaybeObserver, not nulljava.lang.NullPointerException
- if observer
is null