|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.OperationDistinct
public final class OperationDistinct
Returns an Observable that emits all distinct items emitted by the source. Be careful with this operation when using infinite or very large observables as it has to store all distinct values it has received.
| Constructor Summary | |
|---|---|
OperationDistinct()
|
|
| Method Summary | ||
|---|---|---|
static
|
distinct(Observable<? extends T> source)
Returns an Observable that emits all distinct items emitted by the source |
|
static
|
distinct(Observable<? extends T> source,
java.util.Comparator<T> equalityComparator)
Returns an Observable that emits all distinct items emitted by the source |
|
static
|
distinct(Observable<? extends T> source,
Func1<? super T,? extends U> keySelector)
Returns an Observable that emits all distinct items emitted by the source |
|
static
|
distinct(Observable<? extends T> source,
Func1<? super T,? extends U> keySelector,
java.util.Comparator<U> equalityComparator)
Returns an Observable that emits all distinct items emitted by the source |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationDistinct()
| Method Detail |
|---|
public static <T,U> Observable.OnSubscribeFunc<T> distinct(Observable<? extends T> source,
Func1<? super T,? extends U> keySelector)
source - The source Observable to emit the distinct items for.
public static <T> Observable.OnSubscribeFunc<T> distinct(Observable<? extends T> source,
java.util.Comparator<T> equalityComparator)
source - The source Observable to emit the distinct items for.equalityComparator - The comparator to use for deciding whether to consider two items as equal or not.
public static <T,U> Observable.OnSubscribeFunc<T> distinct(Observable<? extends T> source,
Func1<? super T,? extends U> keySelector,
java.util.Comparator<U> equalityComparator)
source - The source Observable to emit the distinct items for.equalityComparator - The comparator to use for deciding whether to consider the two item keys as equal or not.
public static <T> Observable.OnSubscribeFunc<T> distinct(Observable<? extends T> source)
source - The source Observable to emit the distinct items for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||