| 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 Supplier |
| Access | Constructor and Description |
|---|---|
| public | ObservableGenerate(Supplier<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState)
|
| Modifier and Type | Method and Description |
|---|---|
| public void |
| 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 Supplier<S> stateSupplier | |
| ObservableGenerate | back to summary |
|---|---|
| public ObservableGenerate(Supplier<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState) | |
| subscribeActual | back to summary |
|---|---|
public void subscribeActual(Observer<? super T> observer)
| |
| 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 | |
| public void | onNext(T
the value to signal, not t)nullImplements 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)
| |
| 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() | |