Package org.apache.kafka.streams.state
Class ValueAndTimestamp<V>
- java.lang.Object
-
- org.apache.kafka.streams.state.ValueAndTimestamp<V>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static <V> VgetValueOrNull(ValueAndTimestamp<V> valueAndTimestamp)Return the wrappedvalueof the givenvalueAndTimestampparameter if the parameter is notnull.inthashCode()static <V> ValueAndTimestamp<V>make(V value, long timestamp)longtimestamp()StringtoString()Vvalue()
-
-
-
Method Detail
-
make
public static <V> ValueAndTimestamp<V> make(V value, long timestamp)
- Type Parameters:
V- the type of the value- Parameters:
value- the valuetimestamp- the timestamp- Returns:
- a new
ValueAndTimestampinstance if the providevalueis notnull; otherwisenullis returned
-
getValueOrNull
public static <V> V getValueOrNull(ValueAndTimestamp<V> valueAndTimestamp)
Return the wrappedvalueof the givenvalueAndTimestampparameter if the parameter is notnull.- Type Parameters:
V- the type of the value- Parameters:
valueAndTimestamp- aValueAndTimestampinstance; can benull- Returns:
- the wrapped
valueofvalueAndTimestampif notnull; otherwisenull
-
value
public V value()
-
timestamp
public long timestamp()
-
-