--- jsr166/src/extra166y/ParallelDoubleArrayWithBounds.java 2009/01/06 14:30:58 1.1
+++ jsr166/src/extra166y/ParallelDoubleArrayWithBounds.java 2013/01/16 00:51:11 1.6
@@ -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;
@@ -28,9 +28,9 @@ public abstract class ParallelDoubleArra
* only on the elements of the array between firstIndex
* (inclusive) and upperBound (exclusive). The bound
* arguments are relative to the current bounds. For example
- * pa.withBounds(2, 8).withBounds(3, 5) indexes the
+ * {@code pa.withBounds(2, 8).withBounds(3, 5)} indexes the
* 5th (= 2+3) and 6th elements of pa. However, indices
- * returned by methods such as indexOf are
+ * returned by methods such as {@code indexOf} are
* with respect to the underlying ParallelDoubleArray.
* @param firstIndex the lower bound (inclusive)
* @param upperBound the upper bound (exclusive)
@@ -41,7 +41,7 @@ public abstract class ParallelDoubleArra
/**
* Returns the index of some element equal to given target,
- * or -1 if not present
+ * or -1 if not present.
* @param target the element to search for
* @return the index or -1 if not present
*/
@@ -78,7 +78,7 @@ public abstract class ParallelDoubleArra
public abstract ParallelDoubleArrayWithBounds cumulate(DoubleReducer reducer, double base);
/**
- * Replaces each element with the running sum
+ * Replaces each element with the running sum.
* @return this (to simplify use in expressions)
*/
public abstract ParallelDoubleArrayWithBounds cumulateSum();
@@ -94,7 +94,7 @@ public abstract class ParallelDoubleArra
public abstract double precumulate(DoubleReducer reducer, double base);
/**
- * Replaces each element with its prefix sum
+ * Replaces each element with its prefix sum.
* @return the total sum
*/
public abstract double precumulateSum();
@@ -114,9 +114,8 @@ public abstract class ParallelDoubleArra
* Comparable. Unlike Arrays.sort, this sort does not
* guarantee that elements with equal keys maintain their relative
* position in the array.
- * @throws ClassCastException if any element is not Comparable.
+ * @throws ClassCastException if any element is not Comparable
* @return this (to simplify use in expressions)
*/
public abstract ParallelDoubleArrayWithBounds sort();
}
-