--- jsr166/src/extra166y/ParallelDoubleArray.java 2009/01/06 14:30:58 1.1 +++ jsr166/src/extra166y/ParallelDoubleArray.java 2012/07/04 20:13:53 1.5 @@ -1,7 +1,7 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ package extra166y; @@ -137,19 +137,19 @@ public class ParallelDoubleArray extends * mapped ParallelDoubleArray. */ public static interface SummaryStatistics { - /** Return the number of elements */ + /** Returns the number of elements */ public int size(); - /** Return the minimum element, or Double.MAX_VALUE if empty */ + /** Returns the minimum element, or Double.MAX_VALUE if empty */ public double min(); - /** Return the maximum element, or -Double.MAX_VALUE if empty */ + /** Returns the maximum element, or -Double.MAX_VALUE if empty */ public double max(); - /** Return the index of the minimum element, or -1 if empty */ + /** Returns the index of the minimum element, or -1 if empty */ public int indexOfMin(); - /** Return the index of the maximum element, or -1 if empty */ + /** Returns the index of the maximum element, or -1 if empty */ public int indexOfMax(); - /** Return the sum of all elements */ + /** Returns the sum of all elements */ public double sum(); - /** Return the arithmetic average of all elements */ + /** Returns the arithmetic average of all elements */ public double average(); } @@ -191,7 +191,7 @@ public class ParallelDoubleArray extends * @param op the op * @return this (to simplify use in expressions) */ - public ParallelDoubleArray replaceWithMapping(DoubleOp op) { + public ParallelDoubleArray replaceWithMapping(DoubleOp op) { super.replaceWithMapping(op); return this; } @@ -922,7 +922,7 @@ public class ParallelDoubleArray extends } /** - * Make len slots available at index + * Makes len slots available at index. */ final void insertSlotsAt(int index, int len) { if (len <= 0) @@ -1164,4 +1164,3 @@ public class ParallelDoubleArray extends } } -