T - the element typepublic interface ObservableSource<T>
Observable source base interface,
consumable via an Observer.| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(Observer<? super T> observer)
Subscribes the given Observer to this ObservableSource instance.
|
void subscribe(@NonNull Observer<? super T> observer)
observer - the Observer, not nullNullPointerException - if observer is null