V - public final class ValueAndTimestamp<V>
extends java.lang.Object
KeyValue with a timestamp.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static <V> V |
getValueOrNull(ValueAndTimestamp<V> valueAndTimestamp)
Return the wrapped
value of the given valueAndTimestamp parameter
if the parameter is not null. |
int |
hashCode() |
static <V> ValueAndTimestamp<V> |
make(V value,
long timestamp)
|
long |
timestamp() |
java.lang.String |
toString() |
V |
value() |
public static <V> ValueAndTimestamp<V> make(V value, long timestamp)
V - the type of the valuevalue - the valuetimestamp - the timestampValueAndTimestamp instance if the provide value is not null;
otherwise null is returnedpublic static <V> V getValueOrNull(ValueAndTimestamp<V> valueAndTimestamp)
value of the given valueAndTimestamp parameter
if the parameter is not null.V - the type of the valuevalueAndTimestamp - a ValueAndTimestamp instance; can be nullvalue of valueAndTimestamp if not null; otherwise nullpublic V value()
public long timestamp()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object