Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca97b343 authored by Neil Fuller's avatar Neil Fuller
Browse files

Add TimestampedValue.toString()

To make debug logging useful.

Bug: 78217059
Test: Build
Change-Id: I710b56d189afeb26ac50f55d9286d04219779ee7
parent 5392d799
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -72,6 +72,14 @@ public final class TimestampedValue<T> {
        return Objects.hash(mReferenceTimeMillis, mValue);
        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
     * Read a {@link TimestampedValue} from a parcel that was stored using
     * {@link #writeToParcel(Parcel, TimestampedValue)}.
     * {@link #writeToParcel(Parcel, TimestampedValue)}.