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
Fields Modifier and Type Field Description (package private) static java.lang.ObjectEMPTY-
Fields 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 Constructor Description TakeLastOneSubscriber(Subscriber<? super T> actual)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCompleted()Notifies the Observer that theObservablehas finished sending push-based notifications.voidonNext(T t)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
-
-
-
-
Constructor Detail
-
TakeLastOneSubscriber
public TakeLastOneSubscriber(Subscriber<? super T> actual)
-
-
Method Detail
-
onNext
public void onNext(T t)
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>
-
-