Top Description Fields Constructors Methods
rx.internal.operators

public final Class OperatorSampleWithObservable<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 source and result value type
<U>
the element type of the sampler Observable
Imports
java.util.concurrent.atomic.AtomicReference, rx.*, .Observable.Operator, rx.observers.SerializedSubscriber

Sample with the help of another observable.
See Also
MSDN: Observable.Sample

Field Summary

Modifier and TypeField and Description
pack-priv static final Object
EMPTY_TOKEN

Indicates that no value is available.

pack-priv final Observable<U>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_TOKENback to summary
pack-priv static final Object EMPTY_TOKEN

Indicates that no value is available.

samplerback to summary
pack-priv final Observable<U> sampler

Constructor Detail

OperatorSampleWithObservableback to summary
public OperatorSampleWithObservable(Observable<U> sampler)

Method Detail

callback to summary
public Subscriber<? super T> call(Subscriber<? super T> child)

Implements rx.functions.Func1.call.

Annotations
@Override