Observable that emits a single item, a list composed of all the items emitted by the
source Observable.
Normally, an Observable that returns multiple items will do so by invoking its subscriber's
onNext method for each such item. You can change this behavior, instructing the
Observable to compose a list of all of these multiple items and then to invoke the subscriber's
onNext method once, passing it the entire list, by using this operator.
Be careful not to use this operator on Observables that emit infinite or very large numbers of items,
as you do not have the option to unsubscribe.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | OperatorToObservableList.Holder
Lazy initialization via inner-class holder. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber | |
| public static < the value type of the input and the output list's items T> OperatorToObservableList |
| OperatorToObservableList | back to summary |
|---|---|
| pack-priv OperatorToObservableList() | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| instance | back to summary |
|---|---|
public static <T> OperatorToObservableList
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final OperatorToObservableList | INSTANCE
A singleton instance. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final OperatorToObservableList<Object> INSTANCE A singleton instance. | |
| Holder | back to summary |
|---|---|
| pack-priv Holder() | |