RxJava



rx.util
Class Timestamped<T>

java.lang.Object
  extended by rx.util.Timestamped<T>

public final class Timestamped<T>
extends java.lang.Object

Composite class that takes a value and a timestamp and wraps them.


Constructor Summary
Timestamped(long timestampMillis, T value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getTimestampMillis()
          Returns time timestamp, in milliseconds.
 T getValue()
          Returns the value.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timestamped

public Timestamped(long timestampMillis,
                   T value)
Method Detail

getTimestampMillis

public long getTimestampMillis()
Returns time timestamp, in milliseconds.

Returns:
timestamp in milliseconds

getValue

public T getValue()
Returns the value.

Returns:
the value

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object