--- jsr166/src/extra166y/ParallelArray.java 2011/03/15 19:47:02 1.2 +++ jsr166/src/extra166y/ParallelArray.java 2012/10/21 06:14:11 1.5 @@ -139,7 +139,6 @@ import java.lang.reflect.Array; * static final GpaField gpaField = new GpaField(); * } * - * */ public class ParallelArray extends AbstractParallelAnyArray.OUPap implements Iterable { /* @@ -273,20 +272,20 @@ public class ParallelArray extends Ab * mapped ParallelArray. */ public static interface SummaryStatistics { - /** Return the number of elements */ + /** Returns the number of elements */ public int size(); - /** Return the minimum element, or null if empty */ + /** Returns the minimum element, or null if empty */ public T min(); - /** Return the maximum element, or null if empty */ + /** Returns the maximum element, or null if empty */ public T 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(); } /** - * Returns the executor used for computations + * Returns the executor used for computations. * @return the executor */ public ForkJoinPool getExecutor() { return ex; } @@ -663,7 +662,7 @@ public class ParallelArray extends Ab * @param other the elements to add * @return this (to simplify use in expressions) */ - public ParallelArray addAll(T[] other) { + public ParallelArray addAll(T[] other) { int csize = other.length; int end = fence; insertSlotsAt(end, csize); @@ -1096,7 +1095,7 @@ public class ParallelArray extends Ab } /** - * Make len slots available at index + * Makes len slots available at index. */ final void insertSlotsAt(int index, int len) { if (len <= 0)