--- jsr166/src/extra166y/ParallelDoubleArray.java 2012/12/30 02:05:53 1.8 +++ jsr166/src/extra166y/ParallelDoubleArray.java 2013/01/16 00:51:11 1.9 @@ -222,7 +222,7 @@ public class ParallelDoubleArray extends * Replaces elements with the results of applying the given * generator. For example, to fill the array with uniform random * values, use - * replaceWithGeneratedValue(Ops.doubleRandom()). + * {@code replaceWithGeneratedValue(Ops.doubleRandom())}. * @param generator the generator * @return this (to simplify use in expressions) */ @@ -243,7 +243,7 @@ public class ParallelDoubleArray extends /** * Replaces elements with results of applying - * op(thisElement, otherElement). + * {@code op(thisElement, otherElement)}. * @param other the other array * @param combiner the combiner * @return this (to simplify use in expressions) @@ -258,7 +258,7 @@ public class ParallelDoubleArray extends /** * Replaces elements with results of applying - * op(thisElement, otherElement). + * {@code op(thisElement, otherElement)}. * @param other the other array * @param combiner the combiner * @return this (to simplify use in expressions) @@ -362,9 +362,9 @@ public class ParallelDoubleArray extends /** * Replaces each element with the running cumulation of applying * the given reducer. For example, if the contents are the numbers - * 1, 2, 3, and the reducer operation adds numbers, then - * after invocation of this method, the contents would be 1, - * 3, 6 (that is, 1, 1+2, 1+2+3); + * {@code 1, 2, 3}, and the reducer operation adds numbers, then + * after invocation of this method, the contents would be {@code 1, + * 3, 6} (that is, {@code 1, 1+2, 1+2+3}); * @param reducer the reducer * @param base the result for an empty array * @return this (to simplify use in expressions) @@ -377,11 +377,11 @@ public class ParallelDoubleArray extends /** * Replaces each element with the cumulation of applying the given * reducer to all previous values, and returns the total - * reduction. For example, if the contents are the numbers 1, - * 2, 3, and the reducer operation adds numbers, then after - * invocation of this method, the contents would be 0, 1, - * 3 (that is, 0, 0+1, 0+1+2, and the return value - * would be 6 (that is, 1+2+3); + * reduction. For example, if the contents are the numbers {@code 1, + * 2, 3}, and the reducer operation adds numbers, then after + * invocation of this method, the contents would be {@code 0, 1, + * 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value + * would be 6 (that is, {@code 1+2+3}); * @param reducer the reducer * @param base the result for an empty array * @return the total reduction @@ -439,7 +439,7 @@ public class ParallelDoubleArray extends } /** - * Equivalent to asList().addAll but specialized for + * Equivalent to {@code asList().addAll} but specialized for * array arguments and likely to be more efficient. * @param other the elements to add * @return this (to simplify use in expressions) @@ -797,7 +797,7 @@ public class ParallelDoubleArray extends * Returns an iterator stepping through each element of the array * up to the current limit. This iterator does not * support the remove operation. However, a full - * ListIterator supporting add, remove, and set + * {@code ListIterator} supporting add, remove, and set * operations is available via {@link #asList}. * @return an iterator stepping through each element */ @@ -872,7 +872,7 @@ public class ParallelDoubleArray extends public void set(int i, double x) { array[i] = x; } /** - * Equivalent to asList().toString(). + * Equivalent to {@code asList().toString()}. * @return a string representation */ public String toString() {