@Test public void to_string() { Metric m = new SimpleMetric(MetricName.valueOf("foobar"), MetricValue.fromIntValue(19)); assertThat(m.toString(), Matchers.allOf(containsString("foobar"), containsString("19"))); }
@Override public String toString() { return "SimpleMetric{" + name_ + "=" + value_ + '}'; }
SimpleMetric implements Metric { @Override public String toString() { return "SimpleMetric{" + name_ + "=" + value_ + '}'; } }
SimpleMetric implements Metric { @Override public String toString() { return "SimpleMetric{" + name_ + "=" + value_ + '}'; } SimpleMetric(MetricName name, Boolean value);  SimpleMetric(MetricName name, Number value);  SimpleMetric(MetricName name, String value); @ConstructorProperties({ "name", "value" })  SimpleMetric(MetricName name, MetricValue value); }
SimpleMetric implements Metric { @Override public String toString() { return "SimpleMetric{" + name_ + "=" + value_ + '}'; } SimpleMetric(MetricName name, Boolean value);  SimpleMetric(MetricName name, Number value);  SimpleMetric(MetricName name, String value); @ConstructorProperties({ "name", "value" })  SimpleMetric(MetricName name, MetricValue value); @Override MetricName getName(); @Override MetricValue getValue(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
SimpleMetric implements Metric { @Override public String toString() { return "SimpleMetric{" + name_ + "=" + value_ + '}'; } SimpleMetric(MetricName name, Boolean value);  SimpleMetric(MetricName name, Number value);  SimpleMetric(MetricName name, String value); @ConstructorProperties({ "name", "value" })  SimpleMetric(MetricName name, MetricValue value); @Override MetricName getName(); @Override MetricValue getValue(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }