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 TypeMethodDescriptionvoid
Notifies the Observer that theObservable
has finished sending push-based notifications.void
Provides the Observer with a new item to observe.Methods inherited from class rx.internal.operators.DeferredScalarSubscriber
complete, complete, downstreamRequest, onError, setProducer, setupDownstream, subscribeTo
Methods inherited from class rx.Subscriber
add, isUnsubscribed, onStart, request, unsubscribe
-
Field Details
-
EMPTY
-
-
Constructor Details
-
TakeLastOneSubscriber
-
-
Method Details
-
onNext
Description copied from interface:Observer
Provides the Observer with a new item to observe.The
Observable
may call this method 0 or more times.The
Observable
will 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:Observer
Notifies the Observer that theObservable
has finished sending push-based notifications.The
Observable
will not call this method if it callsObserver.onError(java.lang.Throwable)
.- Specified by:
onCompleted
in interfaceObserver<T>
- Overrides:
onCompleted
in classDeferredScalarSubscriber<T,
T>
-