Package rx.internal.operators
Class OnSubscribeCollect.CollectSubscriber<T,R>
java.lang.Object
rx.Subscriber<T>
rx.internal.operators.DeferredScalarSubscriber<T,R>
rx.internal.operators.OnSubscribeCollect.CollectSubscriber<T,R>
- All Implemented Interfaces:
Observer<T>,Subscription
- Enclosing class:
OnSubscribeCollect<T,R>
-
Nested Class Summary
Nested classes/interfaces inherited from class rx.internal.operators.DeferredScalarSubscriber
DeferredScalarSubscriber.InnerProducer -
Field Summary
FieldsFields inherited from class rx.internal.operators.DeferredScalarSubscriber
actual, HAS_REQUEST_HAS_VALUE, HAS_REQUEST_NO_VALUE, hasValue, NO_REQUEST_HAS_VALUE, NO_REQUEST_NO_VALUE, state, value -
Constructor Summary
ConstructorsConstructorDescriptionCollectSubscriber(Subscriber<? super R> actual, R initialValue, Action2<R, ? super T> collector) -
Method Summary
Methods inherited from class rx.internal.operators.DeferredScalarSubscriber
complete, complete, downstreamRequest, onCompleted, onError, setProducer, setupDownstream, subscribeToMethods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, unsubscribe
-
Field Details
-
collector
-
-
Constructor Details
-
CollectSubscriber
-
-
Method Details
-
onNext
Description copied from interface:ObserverProvides the Observer with a new item to observe.The
Observablemay call this method 0 or more times.The
Observablewill not call this method again after it calls eitherObserver.onCompleted()orObserver.onError(java.lang.Throwable).- Parameters:
t- the item emitted by the Observable
-