T
- the value typeU
- the key typepublic final class OperatorDistinctUntilChanged<T,U> extends Object implements Observable.Operator<T,T>, Func2<U,U,Boolean>
Constructor and Description |
---|
OperatorDistinctUntilChanged(Func1<? super T,? extends U> keySelector) |
OperatorDistinctUntilChanged(Func2<? super U,? super U,Boolean> comparator) |
Modifier and Type | Method and Description |
---|---|
Subscriber<? super T> |
call(Subscriber<? super T> child) |
Boolean |
call(U t1,
U t2) |
static <T> OperatorDistinctUntilChanged<T,T> |
instance()
Returns a singleton instance of OperatorDistinctUntilChanged that was built using
the identity function for comparison (
new OperatorDistinctUntilChanged(UtilityFunctions.identity()) ). |
public OperatorDistinctUntilChanged(Func1<? super T,? extends U> keySelector)
public static <T> OperatorDistinctUntilChanged<T,T> instance()
new OperatorDistinctUntilChanged(UtilityFunctions.identity())
).T
- the value typepublic Subscriber<? super T> call(Subscriber<? super T> child)
call
in interface Func1<Subscriber<? super T>,Subscriber<? super T>>
Copyright © 2017. All rights reserved.