Add Metadata.toString that prints the contents of entries

entries are used in .equals(), so it's good to have them printed in toString() too (for test failures) and it makes logging easier too.

PiperOrigin-RevId: 263335503
This commit is contained in:
ibaker 2019-08-14 14:13:32 +01:00 committed by Andrew Lewis
parent 5482bd05e4
commit 69965ddf26

View file

@ -122,6 +122,11 @@ public final class Metadata implements Parcelable {
return Arrays.hashCode(entries);
}
@Override
public String toString() {
return "entries=" + Arrays.toString(entries);
}
// Parcelable implementation.
@Override