| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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)
|
static <V> ValueAndTimestamp<V> |
makeAllowNullable(V value,
long timestamp)
Create a new
ValueAndTimestamp instance. |
long |
timestamp() |
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 provided value is not null;
otherwise null is returnedpublic static <V> ValueAndTimestamp<V> makeAllowNullable(V value, long timestamp)
V - the type of the valuevalue - the valuetimestamp - the timestampValueAndTimestamp instancepublic 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()