Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorDistinct<T, U>

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

Returns an Observable that emits all 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 Func1<? super T, ? extends U>

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(final Subscriber<? super T> child)

Implements rx.functions.Func1.call.

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

Returns:

Operator that emits distinct values only (regardless of order) using the identity function for comparison
instance
()

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

OperatorDistinctback to summary
public OperatorDistinct(Func1<? super T, ? extends U> keySelector)

Method Detail

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> OperatorDistinct<T, T> instance()

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

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

Operator that emits distinct values only (regardless of order) using the identity function for comparison

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

pack-priv final Class OperatorDistinct.Holder

extends Object
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

Holderback to summary
pack-priv Holder()