equal
deleted
inserted
replaced
80 * @author Doug Lea |
80 * @author Doug Lea |
81 */ |
81 */ |
82 public class LongAccumulator extends Striped64 implements Serializable { |
82 public class LongAccumulator extends Striped64 implements Serializable { |
83 private static final long serialVersionUID = 7249069246863182397L; |
83 private static final long serialVersionUID = 7249069246863182397L; |
84 |
84 |
|
85 @SuppressWarnings("serial") // Not statically typed as Serializable |
85 private final LongBinaryOperator function; |
86 private final LongBinaryOperator function; |
86 private final long identity; |
87 private final long identity; |
87 |
88 |
88 /** |
89 /** |
89 * Creates a new instance using the given accumulator function |
90 * Creates a new instance using the given accumulator function |
237 |
238 |
238 /** |
239 /** |
239 * The function used for updates. |
240 * The function used for updates. |
240 * @serial |
241 * @serial |
241 */ |
242 */ |
|
243 @SuppressWarnings("serial") // Not statically typed as Serializable |
242 private final LongBinaryOperator function; |
244 private final LongBinaryOperator function; |
243 |
245 |
244 /** |
246 /** |
245 * The identity value. |
247 * The identity value. |
246 * @serial |
248 * @serial |