Package org.apache.kafka.streams.state
Class ValueAndTimestamp<V>
java.lang.Object
org.apache.kafka.streams.state.ValueAndTimestamp<V>
- Type Parameters:
- V-
Combines a value from a 
KeyValue with a timestamp.- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic <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) longtoString()value()
- 
Method Details- 
make- Type Parameters:
- V- the type of the value
- Parameters:
- value- the value
- timestamp- the timestamp
- Returns:
- a new ValueAndTimestampinstance if the providevalueis notnull; otherwisenullis returned
 
- 
getValueOrNullReturn the wrappedvalueof the givenvalueAndTimestampparameter if the parameter is notnull.- Type Parameters:
- V- the type of the value
- Parameters:
- valueAndTimestamp- a- ValueAndTimestampinstance; can be- null
- Returns:
- the wrapped valueofvalueAndTimestampif notnull; otherwisenull
 
- 
value
- 
timestamppublic long timestamp()
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-