Top Description Inners Constructors Methods
rx.internal.operators

public final Class OperatorToObservableList<T>

extends Object
implements Observable.Operator<List<T>, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Type Parameters
<T>
the value type of the input and the output list's items
Imports
java.util.*, rx.Observable.Operator, .Subscriber, rx.exceptions.Exceptions, rx.internal.producers.SingleDelayedProducer

Returns an 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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
OperatorToObservableList.Holder

Lazy initialization via inner-class holder.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(final Subscriber<? super List<T>> o)

Implements rx.functions.Func1.call.

public static <
the value type of the input and the output list's items
T
>
OperatorToObservableList<T>

Returns:

a singleton instance of this stateless operator.
instance
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OperatorToObservableListback to summary
pack-priv OperatorToObservableList()

Method Detail

callback to summary
public Subscriber<? super T> call(final Subscriber<? super List<T>> o)

Implements rx.functions.Func1.call.

Annotations
@Override
instanceback to summary
public static <T> OperatorToObservableList<T> instance()
Parameters
<T>
the value type of the input and the output list's items
Returns:OperatorToObservableList<T>

a singleton instance of this stateless operator.

Annotations
@SuppressWarnings:unchecked
rx.internal.operators back to summary

pack-priv final Class OperatorToObservableList.Holder

extends Object
Class Inheritance

Lazy initialization via inner-class holder.

Field Summary

Modifier and TypeField and Description
pack-priv static final OperatorToObservableList<Object>
INSTANCE

A singleton instance.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final OperatorToObservableList<Object> INSTANCE

A singleton instance.

Constructor Detail

Holderback to summary
pack-priv Holder()