@Test public void testRemove() { metric.labels("a"); assertNotNull(getValue("a")); assertNull(getValue("b")); metric.labels("b").set(7); assertNotNull(getValue("a")); assertNotNull(getValue("b")); metric.remove("b"); assertNotNull(getValue("a")); assertNull(getValue("b")); metric.labels("b").inc(); assertEquals(1.0, getValue("b").doubleValue(), .001); }
public void remove(String... labelValues) { children.remove(Arrays.asList(labelValues)); initializeNoLabelsChild(); }
SimpleCollector extends Collector { public void remove(String... labelValues) { children.remove(Arrays.asList(labelValues)); initializeNoLabelsChild(); } }
SimpleCollector extends Collector { public void remove(String... labelValues) { children.remove(Arrays.asList(labelValues)); initializeNoLabelsChild(); } protected  SimpleCollector(Builder b); }
SimpleCollector extends Collector { public void remove(String... labelValues) { children.remove(Arrays.asList(labelValues)); 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 remove(String... labelValues) { children.remove(Arrays.asList(labelValues)); initializeNoLabelsChild(); } protected  SimpleCollector(Builder b); Child labels(String... labelValues); void remove(String... labelValues); void clear(); T setChild(Child child, String... labelValues);  }