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)
|
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 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 null
value
of valueAndTimestamp
if not null
; otherwise null
public V value()
public long timestamp()