RxJava



rx.operators
Class OperationTimestamp

java.lang.Object
  extended by rx.operators.OperationTimestamp

public final class OperationTimestamp
extends java.lang.Object

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


Constructor Summary
OperationTimestamp()
           
 
Method Summary
static
<T> Observable.OnSubscribeFunc<Timestamped<T>>
timestamp(Observable<? extends T> sequence)
          Accepts a sequence and adds timestamps to each item in it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationTimestamp

public OperationTimestamp()
Method Detail

timestamp

public static <T> Observable.OnSubscribeFunc<Timestamped<T>> timestamp(Observable<? extends T> sequence)
Accepts a sequence and adds timestamps to each item in it.

Type Parameters:
T - the type of the input sequence.
Parameters:
sequence - the input sequence.
Returns:
a sequence of timestamped values created by adding timestamps to each item in the input sequence.