Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorDistinctUntilChanged<T, U>

extends Object
implements Observable.Operator<T, T>, Func2<U, U, Boolean>
Class Inheritance
All Implemented Interfaces
rx.functions.Func2, rx.functions.Function, rx.Observable.Operator, rx.functions.Func1
Type Parameters
<T>
the value type
<U>
the key type
Imports
rx.Observable.Operator, .Subscriber, rx.exceptions.Exceptions, rx.functions.*, rx.internal.util.UtilityFunctions

Returns an Observable that emits all sequentially distinct items emitted by the source.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Func2<? super U, ? super U, Boolean>
pack-priv final Func1<? super T, ? extends U>

Constructor Summary

AccessConstructor and Description
public
OperatorDistinctUntilChanged(Func1<? super T, ? extends U> keySelector)

public
OperatorDistinctUntilChanged(Func2<? super U, ? super U, Boolean> comparator)

Method Summary

Modifier and TypeMethod and Description
public Boolean
call(U t1, U t2)

Implements rx.functions.Func2.call.

public Subscriber<? super T>
call(final Subscriber<? super T> child)

Implements rx.functions.Func1.call.

public static <
the value type
T
>
OperatorDistinctUntilChanged<T, T>

Returns:

Operator that emits sequentially distinct values only using the identity function for comparison
instance
()

Returns a singleton instance of OperatorDistinctUntilChanged that was built using the identity function for comparison (new OperatorDistinctUntilChanged(UtilityFunctions.identity())).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

comparatorback to summary
pack-priv final Func2<? super U, ? super U, Boolean> comparator
keySelectorback to summary
pack-priv final Func1<? super T, ? extends U> keySelector

Constructor Detail

OperatorDistinctUntilChangedback to summary
public OperatorDistinctUntilChanged(Func1<? super T, ? extends U> keySelector)
OperatorDistinctUntilChangedback to summary
public OperatorDistinctUntilChanged(Func2<? super U, ? super U, Boolean> comparator)
Annotations
@SuppressWarnings:unchecked, rawtypes

Method Detail

callback to summary
public Boolean call(U t1, U t2)

Implements rx.functions.Func2.call.

Annotations
@Override
callback to summary
public Subscriber<? super T> call(final Subscriber<? super T> child)

Implements rx.functions.Func1.call.

Annotations
@Override
instanceback to summary
public 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())).

Parameters
<T>
the value type
Returns:OperatorDistinctUntilChanged<T, T>

Operator that emits sequentially distinct values only using the identity function for comparison

Annotations
@SuppressWarnings:unchecked
rx.internal.operators back to summary

pack-priv final Class OperatorDistinctUntilChanged.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final OperatorDistinctUntilChanged<?, ?>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final OperatorDistinctUntilChanged<?, ?> INSTANCE

Constructor Detail

Holderback to summary
pack-priv Holder()