T - the value type held along with the timestamppublic final classTimestamped<T>extends java.lang.Object| Constructor and Description |
|---|
Timestamped(long timestampMillis,T value) |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(java.lang.Object obj) |
long | getTimestampMillis()Returns the timestamp, expressed in milliseconds. |
T | getValue()Returns the value embedded in the Timestamped object. |
int | hashCode() |
java.lang.String | toString() |
public Timestamped(long timestampMillis,T value)
public long getTimestampMillis()
public T getValue()
Timestamped object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object