@Test void toStringMinMaxDelay() { assertEquals("{123ms/4000ms}", new BackoffDelay( Duration.ofSeconds(3), Duration.ofSeconds(4), Duration.ofMillis(123) ).toString()); }
@Override public String toString() { if (min == max && max == delay) { return "{" + delay.toMillis() + "ms}"; } else { return "{" + delay.toMillis() + "ms/" + max.toMillis() + "ms}"; } }
BackoffDelay { @Override public String toString() { if (min == max && max == delay) { return "{" + delay.toMillis() + "ms}"; } else { return "{" + delay.toMillis() + "ms/" + max.toMillis() + "ms}"; } } }
BackoffDelay { @Override public String toString() { if (min == max && max == delay) { return "{" + delay.toMillis() + "ms}"; } else { return "{" + delay.toMillis() + "ms/" + max.toMillis() + "ms}"; } } BackoffDelay(Duration fixedBackoff);  BackoffDelay(Duration min, Duration max, Duration delay); }
BackoffDelay { @Override public String toString() { if (min == max && max == delay) { return "{" + delay.toMillis() + "ms}"; } else { return "{" + delay.toMillis() + "ms/" + max.toMillis() + "ms}"; } } BackoffDelay(Duration fixedBackoff);  BackoffDelay(Duration min, Duration max, Duration delay); Duration minDelay(); Duration maxDelay(); Duration delay(); @Override String toString(); }
BackoffDelay { @Override public String toString() { if (min == max && max == delay) { return "{" + delay.toMillis() + "ms}"; } else { return "{" + delay.toMillis() + "ms/" + max.toMillis() + "ms}"; } } BackoffDelay(Duration fixedBackoff);  BackoffDelay(Duration min, Duration max, Duration delay); Duration minDelay(); Duration maxDelay(); Duration delay(); @Override String toString();  }