From 9940193eb04526525e18208828e83353aa1d83c1 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 17 Aug 2024 22:52:19 -0400 Subject: [PATCH] toString --- .../io/src/main/java/com/rusefi/io/can/PCanIoStream.java | 7 +++++++ .../io/src/main/java/com/rusefi/io/serial/RateCounter.java | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/java_console/io/src/main/java/com/rusefi/io/can/PCanIoStream.java b/java_console/io/src/main/java/com/rusefi/io/can/PCanIoStream.java index b58c8fa3f5..6279649cd1 100644 --- a/java_console/io/src/main/java/com/rusefi/io/can/PCanIoStream.java +++ b/java_console/io/src/main/java/com/rusefi/io/can/PCanIoStream.java @@ -135,4 +135,11 @@ public class PCanIoStream extends AbstractIoStream { public IncomingDataBuffer getDataBuffer() { return dataBuffer; } + + @Override + public String toString() { + return "PCanIoStream{" + PCanHelper.CHANNEL + ", " + + "totalCounter=" + totalCounter + + '}'; + } } diff --git a/java_console/io/src/main/java/com/rusefi/io/serial/RateCounter.java b/java_console/io/src/main/java/com/rusefi/io/serial/RateCounter.java index 8fad5a926c..437f2ed695 100644 --- a/java_console/io/src/main/java/com/rusefi/io/serial/RateCounter.java +++ b/java_console/io/src/main/java/com/rusefi/io/serial/RateCounter.java @@ -40,6 +40,13 @@ public class RateCounter { timeStamps.add(new Pair(timestamp, 1)); } + @Override + public String toString() { + return "RateCounter{" + + getSizeForUnitTest() + + '}'; + } + private static class Pair { private final long timestamp; private final int value;