T
- the value type held along with the timestamppublic final class Timestamped<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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object