equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
240 public final double getAverage() { |
240 public final double getAverage() { |
241 return getCount() > 0 ? getSum() / getCount() : 0.0d; |
241 return getCount() > 0 ? getSum() / getCount() : 0.0d; |
242 } |
242 } |
243 |
243 |
244 /** |
244 /** |
245 * {@inheritDoc} |
|
246 * |
|
247 * Returns a non-empty string representation of this object suitable for |
245 * Returns a non-empty string representation of this object suitable for |
248 * debugging. The exact presentation format is unspecified and may vary |
246 * debugging. The exact presentation format is unspecified and may vary |
249 * between implementations and versions. |
247 * between implementations and versions. |
250 */ |
248 */ |
251 @Override |
249 @Override |