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