Add TimestampedValue.toString()

To make debug logging useful.

Bug: 78217059
Test: Build
Change-Id: I710b56d189afeb26ac50f55d9286d04219779ee7
This commit is contained in:
Neil Fuller
2018-06-13 15:23:32 +01:00
parent 5392d799ab
commit ca97b34330

View File

@@ -72,6 +72,14 @@ public final class TimestampedValue<T> {
return Objects.hash(mReferenceTimeMillis, mValue);
}
@Override
public String toString() {
return "TimestampedValue{"
+ "mReferenceTimeMillis=" + mReferenceTimeMillis
+ ", mValue=" + mValue
+ '}';
}
/**
* Read a {@link TimestampedValue} from a parcel that was stored using
* {@link #writeToParcel(Parcel, TimestampedValue)}.