Package rx.schedulers
Class Timestamped<T>
java.lang.Object
rx.schedulers.Timestamped<T>
- Type Parameters:
T
- the value type held along with the timestamp
Composite class that takes a value and a timestamp and wraps them.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timestampMillis
private final long timestampMillis -
value
-
-
Constructor Details
-
Timestamped
-
-
Method Details
-
getTimestampMillis
public long getTimestampMillis()Returns the timestamp, expressed in milliseconds.- Returns:
- timestamp in milliseconds
-
getValue
Returns the value embedded in theTimestamped
object.- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-