46474849505152
} @Test(expected = NullPointerException.class) public void test_unitNull_invalid() { new SamplingAggregator("sum", 1, null); }
32333435363738
* @param unit unit of time * @return min aggregator */ public static SamplingAggregator createMinAggregator(int value, TimeUnit unit) { return new SamplingAggregator("min", value, unit); }
45464748495051
* @param unit unit of time * @return max aggregator */ public static SamplingAggregator createMaxAggregator(int value, TimeUnit unit) { return new SamplingAggregator("max", value, unit); }
58596061626364
* @param unit unit of time * @return average aggregator */ public static SamplingAggregator createAverageAggregator(int value, TimeUnit unit) { return new SamplingAggregator("avg", value, unit); }
71727374757677
* @param unit unit of time * @return standard deviation aggregator */ public static SamplingAggregator createStandardDeviationAggregator(int value, TimeUnit unit) { return new SamplingAggregator("dev", value, unit); }
84858687888990
* @param unit unit of time * @return sum aggregator */ public static SamplingAggregator createSumAggregator(int value, TimeUnit unit) { return new SamplingAggregator("sum", value, unit); }
979899100101102103
* @param unit unit of time * @return count aggregator */ public static SamplingAggregator createCountAggregator(int value, TimeUnit unit) { return new SamplingAggregator("count", value, unit); }