| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Callable | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public | FlowableDistinct(Flowable<T> source, Function<? super T, K> keySelector, Callable<? extends Collection<? super K>> collectionSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | subscribeActual(Subscriber<? super T>
the incoming Subscriber, never null subscriber)Implements abstract io. Subscribers.
|
| collectionSupplier | back to summary |
|---|---|
| pack-priv final Callable<? extends Collection<? super K>> collectionSupplier | |
| keySelector | back to summary |
|---|---|
| pack-priv final Function<? super T, K> keySelector | |
| FlowableDistinct | back to summary |
|---|---|
| public FlowableDistinct(Flowable<T> source, Function<? super T, K> keySelector, Callable<? extends Collection<? super K>> collectionSupplier) | |
| subscribeActual | back to summary |
|---|---|
| protected void subscribeActual(Subscriber<? super T> subscriber) 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 final Collection | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv | DistinctSubscriber(Subscriber<? super T> actual, Function<? super T, K> keySelector, Collection<? super K> collection)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides io. Implements io. |
| public void | onComplete()
Overrides io. Implements org. |
| public void | onError(Throwable
the throwable signaled e)Overrides io. Implements org. |
| public void | onNext(T
the element signaled value)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public T | poll()
Implements io. |
| public int | requestFusion(int mode)
Implements io. |
| collection | back to summary |
|---|---|
| pack-priv final Collection<? super K> collection | |
| keySelector | back to summary |
|---|---|
| pack-priv final Function<? super T, K> keySelector | |
| DistinctSubscriber | back to summary |
|---|---|
| pack-priv DistinctSubscriber(Subscriber<? super T> actual, Function<? super T, K> keySelector, Collection<? super K> collection) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides io. Implements io. Doc from io. Removes all enqueued items from this queue.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Overrides io. Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Overrides io. Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(T value) Implements org. Doc from org. Data notification sent by the
| |
| poll | back to summary |
|---|---|
| public T poll() throws Exception 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
| |