Skip to content

Commit 520ab9f

Browse files
author
jmhofer
committed
Added toString to Timestamped
1 parent 32b674d commit 520ab9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rxjava-core/src/main/java/rx/util/Timestamped.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,9 @@ public int hashCode() {
5353
result = prime * result + ((value == null) ? 0 : value.hashCode());
5454
return result;
5555
}
56+
57+
@Override
58+
public String toString() {
59+
return String.format("Timestamped(timestampMillis = %d, value = %s)", timestampMillis, value.toString());
60+
}
5661
}

0 commit comments

Comments
 (0)