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.Object
EMPTY
-
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 void
onCompleted()
Notifies the Observer that theObservable
has finished sending push-based notifications.void
onNext(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: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>
-
-