@Test public void testToString() { DefaultLoad load = new DefaultLoad(20, 10); String s = load.toString(); assertThat(s, containsString("Load{rate=1, latest=20}")); }
@Override public String toString() { return MoreObjects.toStringHelper("Load").add("rate", rate()) .add("latest", latest()).toString(); }
DefaultLoad implements Load { @Override public String toString() { return MoreObjects.toStringHelper("Load").add("rate", rate()) .add("latest", latest()).toString(); } }
DefaultLoad implements Load { @Override public String toString() { return MoreObjects.toStringHelper("Load").add("rate", rate()) .add("latest", latest()).toString(); } DefaultLoad();  DefaultLoad(long current, long previous);  DefaultLoad(long current, long previous, long interval); }
DefaultLoad implements Load { @Override public String toString() { return MoreObjects.toStringHelper("Load").add("rate", rate()) .add("latest", latest()).toString(); } DefaultLoad();  DefaultLoad(long current, long previous);  DefaultLoad(long current, long previous, long interval); static void setPollInterval(long newPollInterval); @Override long rate(); @Override long latest(); @Override boolean isValid(); @Override long time(); @Override String toString(); }
DefaultLoad implements Load { @Override public String toString() { return MoreObjects.toStringHelper("Load").add("rate", rate()) .add("latest", latest()).toString(); } DefaultLoad();  DefaultLoad(long current, long previous);  DefaultLoad(long current, long previous, long interval); static void setPollInterval(long newPollInterval); @Override long rate(); @Override long latest(); @Override boolean isValid(); @Override long time(); @Override String toString();  }