Package rx.internal.operators
Class OperatorSampleWithObservable<T,U>
- java.lang.Object
-
- rx.internal.operators.OperatorSampleWithObservable<T,U>
-
- Type Parameters:
T
- the source and result value typeU
- the element type of the sampler Observable
- All Implemented Interfaces:
Func1<Subscriber<? super T>,Subscriber<? super T>>
,Function
,Observable.Operator<T,T>
public final class OperatorSampleWithObservable<T,U> extends java.lang.Object implements Observable.Operator<T,T>
Sample with the help of another observable.- See Also:
- MSDN: Observable.Sample
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.Object
EMPTY_TOKEN
Indicates that no value is available.(package private) Observable<U>
sampler
-
Constructor Summary
Constructors Constructor Description OperatorSampleWithObservable(Observable<U> sampler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscriber<? super T>
call(Subscriber<? super T> child)
-
-
-
Field Detail
-
sampler
final Observable<U> sampler
-
EMPTY_TOKEN
static final java.lang.Object EMPTY_TOKEN
Indicates that no value is available.
-
-
Constructor Detail
-
OperatorSampleWithObservable
public OperatorSampleWithObservable(Observable<U> sampler)
-
-
Method Detail
-
call
public Subscriber<? super T> call(Subscriber<? super T> child)
-
-