Package rx.internal.operators
Class OperatorDistinct<T,U>
java.lang.Object
rx.internal.operators.OperatorDistinct<T,U>
- Type Parameters:
T
- the value typeU
- the key type
- All Implemented Interfaces:
Func1<Subscriber<? super T>,
,Subscriber<? super T>> Function
,Observable.Operator<T,
T>
Returns an Observable that emits all distinct items emitted by the source.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubscriber
<? super T> call
(Subscriber<? super T> child) 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())
).
-
Field Details
-
keySelector
-
-
Constructor Details
-
OperatorDistinct
-
-
Method Details
-
instance
Returns a singleton instance of OperatorDistinct that was built using the identity function for comparison (new OperatorDistinct(UtilityFunctions.identity())
).- Type Parameters:
T
- the value type- Returns:
- Operator that emits distinct values only (regardless of order) using the identity function for comparison
-
call
-