| Modifier and Type | Class and Description |
|---|---|
| public static class | ObservableScalarXMap.ScalarDisposable<
the value type T>Represents a Disposable that signals one onNext followed by an onComplete. |
| pack-priv static class | ObservableScalarXMap.ScalarXMapObservable<
the scalar value type T, the mapped ObservableSource's element type. R>Maps a scalar value to an ObservableSource and subscribes to it. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the scalar value type T, the output value type U> Observable | Returns: the new Observable instancethe scalar value to map value, Function<? super T, ? extends ObservableSource<? extends U>> the function that gets the scalar value and should return
an ObservableSource that gets streamed mapper)Maps a scalar value into an Observable and emits its values. |
| public static < the input value type T, the output value type R> boolean | Returns: true if successful, false if the caller should continue with the regular path.the source ObservableSource source, Observer<? super R> the subscriber observer, Function<? super T, ? extends ObservableSource<? extends R>> the function mapping a scalar value into an ObservableSource mapper)Tries to subscribe to a possibly Supplier source's mapped ObservableSource. |
| ObservableScalarXMap | back to summary |
|---|---|
| private ObservableScalarXMap() Utility class. | |
| scalarXMap | back to summary |
|---|---|
| public static <T, U> Observable Maps a scalar value into an Observable and emits its values.
| |
| tryScalarXMapSubscribe | back to summary |
|---|---|
| public static <T, R> boolean tryScalarXMapSubscribe(ObservableSource<T> source, Observer<? super R> observer, Function<? super T, ? extends ObservableSource<? extends R>> mapper) Tries to subscribe to a possibly Supplier source's mapped ObservableSource.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv final Observer | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final long | |
| pack-priv static final int | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements io. |
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public boolean | isEmpty()
Implements io. |
| public boolean | offer(T
the value to enqueue, not null value)Implements io. |
| public boolean | offer(T
the first value to enqueue, not null v1, T the second value to enqueue, not null v2)Implements io. |
| public T | poll()
Implements io. |
| public int | requestFusion(int mode)
Implements io. |
| public void |
| FUSED | back to summary |
|---|---|
| pack-priv static final int FUSED | |
| observer | back to summary |
|---|---|
| pack-priv final Observer<? super T> observer | |
| ON_COMPLETE | back to summary |
|---|---|
| pack-priv static final int ON_COMPLETE | |
| ON_NEXT | back to summary |
|---|---|
| pack-priv static final int ON_NEXT | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| START | back to summary |
|---|---|
| pack-priv static final int START | |
| value | back to summary |
|---|---|
| pack-priv final T value | |
| ScalarDisposable | back to summary |
|---|---|
| public ScalarDisposable(Observer<? super T> observer, T value) | |
| clear | back to summary |
|---|---|
| public void clear() Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| 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.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements io. Doc from io. Returns true if the queue is empty.
Note however that due to potential fused functions in
| |
| offer | back to summary |
|---|---|
| public boolean offer(T value) Implements io. Doc from io. Atomically enqueue a single value.
| |
| offer | back to summary |
|---|---|
| public boolean offer(T v1, T v2) Implements io. Doc from io. Atomically enqueue two values.
| |
| poll | back to summary |
|---|---|
| public T poll() Implements io. Doc from io. Tries to dequeue a value (non-null) or returns null if the queue is empty.
If the producer uses | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int mode) Implements io. Doc from io. Request a fusion mode from the upstream.
This should be called before
Calling this method multiple times or after
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Function | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, ? extends ObservableSource<? extends R>> mapper | |
| value | back to summary |
|---|---|
| pack-priv final T value | |
| ScalarXMapObservable | back to summary |
|---|---|
| pack-priv ScalarXMapObservable(T value, Function<? super T, ? extends ObservableSource<? extends R>> mapper) | |
| subscribeActual | back to summary |
|---|---|
public void subscribeActual(Observer<? super R> observer)
| |