equal
deleted
inserted
replaced
82 * @author Doug Lea |
82 * @author Doug Lea |
83 */ |
83 */ |
84 public class DoubleAccumulator extends Striped64 implements Serializable { |
84 public class DoubleAccumulator extends Striped64 implements Serializable { |
85 private static final long serialVersionUID = 7249069246863182397L; |
85 private static final long serialVersionUID = 7249069246863182397L; |
86 |
86 |
|
87 @SuppressWarnings("serial") // Not statically typed as Serializable |
87 private final DoubleBinaryOperator function; |
88 private final DoubleBinaryOperator function; |
88 private final long identity; // use long representation |
89 private final long identity; // use long representation |
89 |
90 |
90 /** |
91 /** |
91 * Creates a new instance using the given accumulator function |
92 * Creates a new instance using the given accumulator function |
243 |
244 |
244 /** |
245 /** |
245 * The function used for updates. |
246 * The function used for updates. |
246 * @serial |
247 * @serial |
247 */ |
248 */ |
|
249 @SuppressWarnings("serial") // Not statically typed as Serializable |
248 private final DoubleBinaryOperator function; |
250 private final DoubleBinaryOperator function; |
249 |
251 |
250 /** |
252 /** |
251 * The identity value, represented as a long, as converted by |
253 * The identity value, represented as a long, as converted by |
252 * {@link Double#doubleToRawLongBits}. The original identity |
254 * {@link Double#doubleToRawLongBits}. The original identity |