@Test public void testClear() { assertNull(getValue("a")); metric.labels("a").set(7); assertNotNull(getValue("a")); metric.clear(); assertNull(getValue("a")); metric.labels("a").inc(); assertEquals(1.0, getValue("a").doubleValue(), .001); }
public void clear() { children.clear(); initializeNoLabelsChild(); }
SimpleCollector extends Collector { public void clear() { children.clear(); initializeNoLabelsChild(); } }
SimpleCollector extends Collector { public void clear() { children.clear(); initializeNoLabelsChild(); } protected  SimpleCollector(Builder b); }
SimpleCollector extends Collector { public void clear() { children.clear(); initializeNoLabelsChild(); } protected  SimpleCollector(Builder b); Child labels(String... labelValues); void remove(String... labelValues); void clear(); T setChild(Child child, String... labelValues); }
SimpleCollector extends Collector { public void clear() { children.clear(); initializeNoLabelsChild(); } protected  SimpleCollector(Builder b); Child labels(String... labelValues); void remove(String... labelValues); void clear(); T setChild(Child child, String... labelValues);  }