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.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| is | back to summary |
|---|---|
| pack-priv final Iterable<? extends T> is | |
| OnSubscribeFromIterable | back to summary |
|---|---|
| public OnSubscribeFromIterable(Iterable<? extends T> iterable) | |
| call | back to summary |
|---|---|
| public void call(final Subscriber<? super T> o) Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private final Subscriber | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | request(long
the maximum number of items you want this Producer to produce, or n)Long.MAX_VALUE if you
want the Producer to produce items at its own paceImplements rx. |
| pack-priv void |
| it | back to summary |
|---|---|
| private final Iterator<? extends T> it | |
| o | back to summary |
|---|---|
| private final Subscriber<? super T> o | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| IterableProducer | back to summary |
|---|---|
| pack-priv IterableProducer(Subscriber<? super T> o, Iterator<? extends T> it) | |
| fastPath | back to summary |
|---|---|
| pack-priv void fastPath() | |
| request | back to summary |
|---|---|
| public void request(long n) Implements rx. Doc from rx. Request a certain maximum number of items from this Producer. This is a way of requesting backpressure.
To disable backpressure, pass
Requests are additive but if a sequence of requests totals more than request(100); request(Long.MAX_VALUE-1);
| |
| slowPath | back to summary |
|---|---|
| pack-priv void slowPath(long n) | |