@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || !getClass().equals(o.getClass())) return false;

    TimestampedValue<?> that = (TimestampedValue<?>) o;

    if (timestamp != that.timestamp) return false;
    return value != null ? value.equals(that.value) : (that.value == null);
  }
An immutable pair of a value, and its corresponding timestamp.

@param <V> the type of the value
samza-api/src/main/java/org/apache/samza/util/TimestampedValue.java