RxJava



rx.operators
Class OperatorTimestamp<T>

java.lang.Object
  extended by rx.operators.OperatorTimestamp<T>
All Implemented Interfaces:
Func1<Subscriber<? super Timestamped<T>>,Subscriber<? super T>>, Function, Observable.Operator<Timestamped<T>,T>

public final class OperatorTimestamp<T>
extends java.lang.Object
implements Observable.Operator<Timestamped<T>,T>

Wraps each item emitted by a source Observable in a Timestamped object.


Constructor Summary
OperatorTimestamp(Scheduler scheduler)
           
 
Method Summary
 Subscriber<? super T> call(Subscriber<? super Timestamped<T>> o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorTimestamp

public OperatorTimestamp(Scheduler scheduler)
Method Detail

call

public Subscriber<? super T> call(Subscriber<? super Timestamped<T>> o)
Specified by:
call in interface Func1<Subscriber<? super Timestamped<T>>,Subscriber<? super T>>
Returns:
a sequence of timestamped values created by adding timestamps to each item in the input sequence.