public final class OnSubscribeFromIterable<T> extends java.lang.Object implements Observable.OnSubscribe<T>
Iterable
sequence into an Observable
.
You can convert any object that supports the Iterable interface into an Observable that emits each item in
the object, with the toObservable
operation.
Constructor and Description |
---|
OnSubscribeFromIterable(java.lang.Iterable<? extends T> iterable) |
Modifier and Type | Method and Description |
---|---|
void |
call(Subscriber<? super T> o) |
public OnSubscribeFromIterable(java.lang.Iterable<? extends T> iterable)
public void call(Subscriber<? super T> o)
call
in interface Action1<Subscriber<? super T>>