@Test public void testNegativeIncrementFails() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Amount to increment must be non-negative."); noLabels.inc(-1); }
public void inc() { inc(1); }
Counter extends SimpleCollector<Counter.Child> implements Collector.Describable { public void inc() { inc(1); } }
Counter extends SimpleCollector<Counter.Child> implements Collector.Describable { public void inc() { inc(1); } Counter(Builder b); }
Counter extends SimpleCollector<Counter.Child> implements Collector.Describable { public void inc() { inc(1); } Counter(Builder b); static Builder build(String name, String help); static Builder build(); void inc(); void inc(double amt); double get(); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe(); }
Counter extends SimpleCollector<Counter.Child> implements Collector.Describable { public void inc() { inc(1); } Counter(Builder b); static Builder build(String name, String help); static Builder build(); void inc(); void inc(double amt); double get(); @Override List<MetricFamilySamples> collect(); @Override List<MetricFamilySamples> describe();  }