| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Supplier | |
| pack-priv final Function |
| Access | Constructor and Description |
|---|---|
| public | ObservableDistinct(ObservableSource<T> source, Function<? super T, K> keySelector, Supplier<? extends Collection<? super K>> collectionSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| collectionSupplier | back to summary |
|---|---|
| pack-priv final Supplier<? 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, Supplier<? extends Collection<? super K>> collectionSupplier) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(Observer<? super T> observer)
| |
| 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. Observer that the Observable has finished sending push-based notifications.
|
| public void | |
| public void | onNext(T
the item emitted by the Observable value)Implements io. Observer with a new item to observe.
|
| 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
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Overrides io.
| |
| onNext | back to summary |
|---|---|
| public void onNext(T value) Implements io. Doc from io. Provides the
The
The
| |
| poll | back to summary |
|---|---|
| public T poll() throws Throwable 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
| |