| 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 | ObservableDistinct(ObservableSource<T> source, Function<? super T, K> keySelector, Callable<? extends Collection<? super K>> collectionSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | subscribeActual(Observer<? super T>
the incoming Observer, never null observer)Implements abstract io. Observers.
|
| 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 | |
| ObservableDistinct | back to summary |
|---|---|
| public ObservableDistinct(ObservableSource<T> source, Function<? super T, K> keySelector, Callable<? extends Collection<? super K>> collectionSupplier) | |
| subscribeActual | back to summary |
|---|---|
| protected 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 final Collection | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv | DistinctObserver(Observer<? 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 io. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Overrides io. Implements io. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable value)Implements io. |
| 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 | |
| DistinctObserver | back to summary |
|---|---|
| pack-priv DistinctObserver(Observer<? 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 io. Doc from io. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Overrides io. Implements io. Doc from io. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T value) Implements io. Doc from io. Provides the Observer with a new item to observe.
The
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
| |