DoubleAccumulator

Class DoubleAccumulator

All Implemented Interfaces:
Serializable
public class DoubleAccumulator
extends Number
implements Serializable

One or more variables that together maintain a running double value updated using a supplied function. When updates (method accumulate(double)) are contended across threads, the set of variables may grow dynamically to reduce contention. Method 登录查看完整内容