介绍
java.util.IntSummaryStatistics
public class IntSummaryStatistics implements IntConsumer
- 统计的指标:count, sum, min, average, max
API
构造器
- IntSummaryStatistics()
- IntSummaryStatistics(long count, int min, int max, long sum)
public
- combine
void combine(IntSummaryStatistics other)
- 与 other 的指标相加
- getCount
- getSum
- getMin
- getMax
- getAverage