Add toString() implementation to LogDiff
@@ -30,6 +30,14 @@ public class LogDiff<D> {
public int compareTo(LogPositionDiff o) {
return this.to.compareTo(o.to);
}
+
+ @Override
+ public String toString() {
+ return "LogPositionDiff{" +
+ "from=" + from +
+ ", to=" + to +
+ '}';
+ }
}
public final Map<String, LogPositionDiff> positions;
@@ -55,4 +63,12 @@ public class LogDiff<D> {
public static <D> LogDiff<D> forCurrentPosition(D diff) {
return forCurrentPosition(singletonList(diff));
}
+
+ @Override
+ public String toString() {
+ return "LogDiff{" +
+ "positions=" + positions +
+ ", diffs=" + diffs +
+ '}';
+ }
}
