| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final BiFunction | |
| pack-priv final Callable |
| Access | Constructor and Description |
|---|---|
| public | ObservableGenerate(Callable<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | subscribeActual(Observer<? super T>
the incoming Observer, never null observer)Implements abstract io. Observers.
|
| disposeState | back to summary |
|---|---|
| pack-priv final Consumer<? super S> disposeState | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, Emitter<T>, S> generator | |
| stateSupplier | back to summary |
|---|---|
| pack-priv final Callable<S> stateSupplier | |
| ObservableGenerate | back to summary |
|---|---|
| public ObservableGenerate(Callable<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState) | |
| subscribeActual | back to summary |
|---|---|
| public void subscribeActual(Observer<? super T> observer) Implements abstract io. Doc from io. Operator implementations (both source and intermediate) should implement this method that
performs the necessary business logic and handles the incoming There is no need to call any of the plugin hooks on the current | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final Consumer | |
| pack-priv final Observer | |
| pack-priv final BiFunction | |
| pack-priv boolean | |
| pack-priv S | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | GeneratorDisposable(Observer<? super T> actual, BiFunction<S, ? super Emitter<T>, S> generator, Consumer<? super S> disposeState, S initialState)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | |
| public void | onError(Throwable
the Throwable to signal, not null t)Implements io. |
| public void | onNext(T
the value to signal, not null t)Implements io. |
| public void |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| disposeState | back to summary |
|---|---|
| pack-priv final Consumer<? super S> disposeState | |
| downstream | back to summary |
|---|---|
| pack-priv final Observer<? super T> downstream | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, ? super Emitter<T>, S> generator | |
| hasNext | back to summary |
|---|---|
| pack-priv boolean hasNext | |
| state | back to summary |
|---|---|
| pack-priv S state | |
| terminate | back to summary |
|---|---|
| pack-priv boolean terminate | |
| GeneratorDisposable | back to summary |
|---|---|
| pack-priv GeneratorDisposable(Observer<? super T> actual, BiFunction<S, ? super Emitter<T>, S> generator, Consumer<? super S> disposeState, S initialState) | |
| dispose | back to summary |
|---|---|
| private void dispose(S s) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Signal a completion.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements io. Doc from io. Signal a Throwable exception. | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements io. Doc from io. Signal a normal value.
| |
| run | back to summary |
|---|---|
| public void run() | |