ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/extra166y/ParallelLongArray.java
(Generate patch)

Comparing jsr166/src/extra166y/ParallelLongArray.java (file contents):
Revision 1.9 by jsr166, Sun Dec 30 02:05:53 2012 UTC vs.
Revision 1.10 by jsr166, Wed Jan 16 00:51:11 2013 UTC

# Line 262 | Line 262 | public class ParallelLongArray extends A
262       * Replaces elements with the results of applying the given
263       * generator. For example, to fill the array with uniform random
264       * values, use
265 <     * <tt>replaceWithGeneratedValue(Ops.longRandom())</tt>.
265 >     * {@code replaceWithGeneratedValue(Ops.longRandom())}.
266       * @param generator the generator
267       * @return this (to simplify use in expressions)
268       */
# Line 283 | Line 283 | public class ParallelLongArray extends A
283  
284      /**
285       * Replaces elements with results of applying
286 <     * <tt>op(thisElement, otherElement)</tt>.
286 >     * {@code op(thisElement, otherElement)}.
287       * @param other the other array
288       * @param combiner the combiner
289       * @return this (to simplify use in expressions)
# Line 297 | Line 297 | public class ParallelLongArray extends A
297  
298      /**
299       * Replaces elements with results of applying
300 <     * <tt>op(thisElement, otherElement)</tt>.
300 >     * {@code op(thisElement, otherElement)}.
301       * @param other the other array
302       * @param combiner the combiner
303       * @return this (to simplify use in expressions)
# Line 401 | Line 401 | public class ParallelLongArray extends A
401      /**
402       * Replaces each element with the running cumulation of applying
403       * the given reducer. For example, if the contents are the numbers
404 <     * <tt>1, 2, 3</tt>, and the reducer operation adds numbers, then
405 <     * after invocation of this method, the contents would be <tt>1,
406 <     * 3, 6</tt> (that is, <tt>1, 1+2, 1+2+3</tt>);
404 >     * {@code 1, 2, 3}, and the reducer operation adds numbers, then
405 >     * after invocation of this method, the contents would be {@code 1,
406 >     * 3, 6} (that is, {@code 1, 1+2, 1+2+3});
407       * @param reducer the reducer
408       * @param base the result for an empty array
409       * @return this (to simplify use in expressions)
# Line 416 | Line 416 | public class ParallelLongArray extends A
416      /**
417       * Replaces each element with the cumulation of applying the given
418       * reducer to all previous values, and returns the total
419 <     * reduction. For example, if the contents are the numbers <tt>1,
420 <     * 2, 3</tt>, and the reducer operation adds numbers, then after
421 <     * invocation of this method, the contents would be <tt>0, 1,
422 <     * 3</tt> (that is, <tt>0, 0+1, 0+1+2</tt>, and the return value
423 <     * would be 6 (that is, <tt> 1+2+3</tt>);
419 >     * reduction. For example, if the contents are the numbers {@code 1,
420 >     * 2, 3}, and the reducer operation adds numbers, then after
421 >     * invocation of this method, the contents would be {@code 0, 1,
422 >     * 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value
423 >     * would be 6 (that is, {@code  1+2+3});
424       * @param reducer the reducer
425       * @param base the result for an empty array
426       * @return the total reduction
# Line 478 | Line 478 | public class ParallelLongArray extends A
478      }
479  
480      /**
481 <     * Equivalent to <tt>asList().addAll</tt> but specialized for array
481 >     * Equivalent to {@code asList().addAll} but specialized for array
482       * arguments and likely to be more efficient.
483       * @param other the elements to add
484       * @return this (to simplify use in expressions)
# Line 835 | Line 835 | public class ParallelLongArray extends A
835       * Returns an iterator stepping through each element of the array
836       * up to the current limit. This iterator does <em>not</em>
837       * support the remove operation. However, a full
838 <     * <tt>ListIterator</tt> supporting add, remove, and set
838 >     * {@code ListIterator} supporting add, remove, and set
839       * operations is available via {@link #asList}.
840       * @return an iterator stepping through each element
841       */
# Line 909 | Line 909 | public class ParallelLongArray extends A
909      public void set(int i, long x) { array[i] = x; }
910  
911      /**
912 <     * Equivalent to <tt>asList().toString()</tt>
912 >     * Equivalent to {@code asList().toString()}
913       * @return a string representation
914       */
915      public String toString() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines