Package rx.internal.operators
Class OnSubscribeTakeLastOne.TakeLastOneSubscriber<T>
java.lang.Object
rx.Subscriber<T>
rx.internal.operators.DeferredScalarSubscriber<T,T>
rx.internal.operators.OnSubscribeTakeLastOne.TakeLastOneSubscriber<T>
- All Implemented Interfaces:
Observer<T>,Subscription
- Enclosing class:
OnSubscribeTakeLastOne<T>
static final class OnSubscribeTakeLastOne.TakeLastOneSubscriber<T>
extends DeferredScalarSubscriber<T,T>
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies the Observer that theObservablehas finished sending push-based notifications.voidProvides the Observer with a new item to observe.Methods inherited from class rx.internal.operators.DeferredScalarSubscriber
complete, complete, downstreamRequest, onError, setProducer, setupDownstream, subscribeToMethods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, unsubscribe
-
Field Details
-
EMPTY
-
-
Constructor Details
-
TakeLastOneSubscriber
-
-
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
-
onCompleted
public void onCompleted()Description copied from interface:ObserverNotifies the Observer that theObservablehas finished sending push-based notifications.The
Observablewill not call this method if it callsObserver.onError(java.lang.Throwable).- Specified by:
onCompletedin interfaceObserver<T>- Overrides:
onCompletedin classDeferredScalarSubscriber<T,T>
-