Top Description Fields Constructors Methods
io.reactivex.rxjava3.internal.jdk8

public final Class ObservableLastStageObserver<T>

extends ObservableStageObserver<T>
Class Inheritance
Type Parameters
<T>
the element type
Imports
java.util.NoSuchElementException

Signals the last element of the source via the underlying CompletableFuture, signals the a default item if the upstream is empty or signals NoSuchElementException.
Since
3.0.0

Field Summary

Modifier and TypeField and Description
pack-priv final T
pack-priv final boolean
Inherited from io.reactivex.rxjava3.internal.jdk8.ObservableStageObserver:
upstreamvalue

Constructor Summary

AccessConstructor and Description
public
ObservableLastStageObserver(boolean hasDefault, T defaultItem)

Method Summary

Modifier and TypeMethod and Description
public void
onComplete()

Implements io.reactivex.rxjava3.core.Observer.onComplete.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onNext(T
the item emitted by the Observable
t
)

Implements io.reactivex.rxjava3.core.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from io.reactivex.rxjava3.internal.jdk8.ObservableStageObserver:
cancelclearcompletecompleteExceptionallydisposeUpstreamonErroronSubscribe

Field Detail

defaultItemback to summary
pack-priv final T defaultItem
hasDefaultback to summary
pack-priv final boolean hasDefault

Constructor Detail

ObservableLastStageObserverback to summary
public ObservableLastStageObserver(boolean hasDefault, T defaultItem)

Method Detail

onCompleteback to summary
public void onComplete()

Implements io.reactivex.rxjava3.core.Observer.onComplete.

Doc from io.reactivex.rxjava3.core.Observer.onComplete.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements io.reactivex.rxjava3.core.Observer.onNext.

Doc from io.reactivex.rxjava3.core.Observer.onNext.

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 either onComplete or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override